Removed useless lines, added comments. gsoc2008_iphone
authorHolmes Futrell <hfutrell@umail.ucsb.edu>
Fri, 15 Aug 2008 18:26:48 +0000
branchgsoc2008_iphone
changeset 2436d7b41796713e
parent 2435 775e061e9440
child 2437 83cf833940ba
Removed useless lines, added comments.
include/SDL_config_iphoneos.h
     1.1 --- a/include/SDL_config_iphoneos.h	Fri Aug 15 18:22:12 2008 +0000
     1.2 +++ b/include/SDL_config_iphoneos.h	Fri Aug 15 18:26:48 2008 +0000
     1.3 @@ -24,11 +24,6 @@
     1.4  #define _SDL_config_iphoneos_h
     1.5  
     1.6  #include "SDL_platform.h"
     1.7 -#include "stdio.h" // contains def for size_t
     1.8 -
     1.9 -/* This is the minimal configuration that can be used to build SDL */
    1.10 -
    1.11 -#include <stdarg.h>
    1.12  
    1.13  typedef signed char int8_t;
    1.14  typedef unsigned char uint8_t;
    1.15 @@ -36,28 +31,23 @@
    1.16  typedef unsigned short uint16_t;
    1.17  typedef signed int int32_t;
    1.18  typedef unsigned int uint32_t;
    1.19 -
    1.20 -#ifndef size_t
    1.21 -typedef unsigned int size_t;
    1.22 -#endif
    1.23 -
    1.24  typedef unsigned long uintptr_t;
    1.25  
    1.26 -/* enable keyboard support */
    1.27 +/* enable iPhone keyboard support */
    1.28  #define SDL_IPHONE_KEYBOARD 1
    1.29  
    1.30  /* enable OpenGL ES */
    1.31  #define SDL_VIDEO_OPENGL_ES	1
    1.32 -
    1.33  #define SDL_VIDEO_RENDER_OGL_ES	1
    1.34  
    1.35 -#define SDL_HAS_64BIT_TYPE	0
    1.36 +#define SDL_HAS_64BIT_TYPE	1
    1.37  
    1.38  /* Enable various timer systems */
    1.39  #define SDL_TIMER_UNIX	1
    1.40  
    1.41 +/* enable iPhone version of Core Audio driver */
    1.42 +#define SDL_AUDIO_DRIVER_COREAUDIOIPHONE 1
    1.43  /* Enable the dummy audio driver (src/audio/dummy/\*.c) */
    1.44 -#define SDL_AUDIO_DRIVER_COREAUDIOIPHONE 1
    1.45  #define SDL_AUDIO_DRIVER_DUMMY	1
    1.46  
    1.47  /* Enable Unix style SO loading */
    1.48 @@ -66,25 +56,17 @@
    1.49  /* Enable the stub cdrom driver (src/cdrom/dummy/\*.c) */
    1.50  #define SDL_CDROM_DISABLED	1
    1.51  
    1.52 -/* Set max recognized G-force from acceleromter
    1.53 -   (necessary for mapping floating point accelerometer
    1.54 -    data to Sint16 joystick data)
    1.55 +/* 
    1.56 +	Set max recognized G-force from acceleromter
    1.57 +	See src/joystick/uikit/SDLUIAccelerationDelegate.m for notes on why this is needed
    1.58   */
    1.59  #define SDL_IPHONE_MAX_GFORCE 5.0
    1.60 -/*
    1.61 -	Enable (or disable) emulation of multiple mice through multi-touch
    1.62 -*/
    1.63 +/* Enable emulation of multiple mice through multi-touch */
    1.64  #define SDL_IPHONE_MULTIPLE_MICE 1
    1.65  /* Enable the stub shared object loader (src/loadso/dummy/\*.c) */
    1.66  #define SDL_LOADSO_DISABLED	1
    1.67  
    1.68 -/* Enable the stub thread support (src/thread/generic/\*.c) */
    1.69 -//#define SDL_THREADS_DISABLED	0
    1.70 -
    1.71 -/* Enable the stub timer support (src/timer/dummy/\*.c) */
    1.72 -//#define SDL_TIMERS_DISABLED	0
    1.73 -
    1.74 -/* supported video drivers */
    1.75 +/* Supported video drivers */
    1.76  #define SDL_VIDEO_DRIVER_UIKIT	1
    1.77  #define SDL_VIDEO_DRIVER_DUMMY	1
    1.78