include/SDL_config_iphoneos.h
changeset 2771 15e69dc6fded
parent 2765 f55c87ae336b
child 2859 99210400e8b9
     1.1 --- a/include/SDL_config_iphoneos.h	Tue Oct 14 18:28:28 2008 +0000
     1.2 +++ b/include/SDL_config_iphoneos.h	Thu Oct 16 12:22:56 2008 +0000
     1.3 @@ -32,48 +32,8 @@
     1.4  typedef signed int int32_t;
     1.5  typedef unsigned int uint32_t;
     1.6  typedef unsigned long uintptr_t;
     1.7 -
     1.8 -/* enable iPhone keyboard support */
     1.9 -#define SDL_IPHONE_KEYBOARD 1
    1.10 -
    1.11 -/* enable OpenGL ES */
    1.12 -#define SDL_VIDEO_OPENGL_ES	1
    1.13 -#define SDL_VIDEO_RENDER_OGL_ES	1
    1.14 -
    1.15  #define SDL_HAS_64BIT_TYPE	1
    1.16  
    1.17 -/* Enable various timer systems */
    1.18 -#define SDL_TIMER_UNIX	1
    1.19 -
    1.20 -/* enable iPhone version of Core Audio driver */
    1.21 -#define SDL_AUDIO_DRIVER_COREAUDIOIPHONE 1
    1.22 -/* Enable the dummy audio driver (src/audio/dummy/\*.c) */
    1.23 -#define SDL_AUDIO_DRIVER_DUMMY	1
    1.24 -
    1.25 -/* Enable Unix style SO loading */
    1.26 -#define SDL_LOADSO_DLOPEN 1
    1.27 -
    1.28 -/* Enable the stub cdrom driver (src/cdrom/dummy/\*.c) */
    1.29 -#define SDL_CDROM_DISABLED	1
    1.30 -
    1.31 -/* 
    1.32 -	Set max recognized G-force from acceleromter
    1.33 -	See src/joystick/uikit/SDLUIAccelerationDelegate.m for notes on why this is needed
    1.34 - */
    1.35 -#define SDL_IPHONE_MAX_GFORCE 5.0
    1.36 -/* Enable emulation of multiple mice through multi-touch */
    1.37 -#define SDL_IPHONE_MULTIPLE_MICE 1
    1.38 -/* Enable the stub shared object loader (src/loadso/dummy/\*.c) */
    1.39 -#define SDL_LOADSO_DISABLED	1
    1.40 -
    1.41 -/* Supported video drivers */
    1.42 -#define SDL_VIDEO_DRIVER_UIKIT	1
    1.43 -#define SDL_VIDEO_DRIVER_DUMMY	1
    1.44 -
    1.45 -/* Enable various threading systems */
    1.46 -#define SDL_THREAD_PTHREAD	1
    1.47 -#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX	1
    1.48 -
    1.49  #define HAVE_ALLOCA_H		1
    1.50  #define HAVE_SYS_TYPES_H	1
    1.51  #define HAVE_STDIO_H	1
    1.52 @@ -126,4 +86,51 @@
    1.53  #define HAVE_SETJMP	1
    1.54  #define HAVE_NANOSLEEP	1
    1.55  
    1.56 +/* enable iPhone version of Core Audio driver */
    1.57 +#define SDL_AUDIO_DRIVER_COREAUDIOIPHONE 1
    1.58 +/* Enable the dummy audio driver (src/audio/dummy/\*.c) */
    1.59 +#define SDL_AUDIO_DRIVER_DUMMY	1
    1.60 +
    1.61 +/* Enable the stub cdrom driver (src/cdrom/dummy/\*.c) */
    1.62 +#define SDL_CDROM_DISABLED	1
    1.63 +
    1.64 +/* Enable the stub joystick driver (src/joystick/dummy/\*.c) */
    1.65 +#define SDL_JOYSTICK_DISABLED	1
    1.66 +
    1.67 +/* Enable the stub haptic driver (src/haptic/dummy/\*.c) */
    1.68 +#define SDL_HAPTIC_DISABLED	1
    1.69 +
    1.70 +/* Enable Unix style SO loading */
    1.71 +/* Technically this works, but it violates the iPhone developer agreement */
    1.72 +/* #define SDL_LOADSO_DLOPEN 1 */
    1.73 +
    1.74 +/* Enable the stub shared object loader (src/loadso/dummy/\*.c) */
    1.75 +#define SDL_LOADSO_DISABLED	1
    1.76 +
    1.77 +/* Enable various threading systems */
    1.78 +#define SDL_THREAD_PTHREAD	1
    1.79 +#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX	1
    1.80 +
    1.81 +/* Enable various timer systems */
    1.82 +#define SDL_TIMER_UNIX	1
    1.83 +
    1.84 +/* Supported video drivers */
    1.85 +#define SDL_VIDEO_DRIVER_UIKIT	1
    1.86 +#define SDL_VIDEO_DRIVER_DUMMY	1
    1.87 +
    1.88 +/* enable OpenGL ES */
    1.89 +#define SDL_VIDEO_OPENGL_ES	1
    1.90 +#define SDL_VIDEO_RENDER_OGL_ES	1
    1.91 +
    1.92 +/* enable iPhone keyboard support */
    1.93 +#define SDL_IPHONE_KEYBOARD 1
    1.94 +
    1.95 +/* Enable emulation of multiple mice through multi-touch */
    1.96 +#define SDL_IPHONE_MULTIPLE_MICE 1
    1.97 +
    1.98 +/* Set max recognized G-force from acceleromter
    1.99 +   See src/joystick/uikit/SDLUIAccelerationDelegate.m for notes on why this is needed
   1.100 + */
   1.101 +#define SDL_IPHONE_MAX_GFORCE 5.0
   1.102 +
   1.103  #endif /* _SDL_config_iphoneos_h */