include/SDL_config_iphoneos.h
branchgsoc2008_iphone
changeset 2436 d7b41796713e
parent 2435 775e061e9440
equal deleted inserted replaced
2435:775e061e9440 2436:d7b41796713e
    22 
    22 
    23 #ifndef _SDL_config_iphoneos_h
    23 #ifndef _SDL_config_iphoneos_h
    24 #define _SDL_config_iphoneos_h
    24 #define _SDL_config_iphoneos_h
    25 
    25 
    26 #include "SDL_platform.h"
    26 #include "SDL_platform.h"
    27 #include "stdio.h" // contains def for size_t
       
    28 
       
    29 /* This is the minimal configuration that can be used to build SDL */
       
    30 
       
    31 #include <stdarg.h>
       
    32 
    27 
    33 typedef signed char int8_t;
    28 typedef signed char int8_t;
    34 typedef unsigned char uint8_t;
    29 typedef unsigned char uint8_t;
    35 typedef signed short int16_t;
    30 typedef signed short int16_t;
    36 typedef unsigned short uint16_t;
    31 typedef unsigned short uint16_t;
    37 typedef signed int int32_t;
    32 typedef signed int int32_t;
    38 typedef unsigned int uint32_t;
    33 typedef unsigned int uint32_t;
    39 
       
    40 #ifndef size_t
       
    41 typedef unsigned int size_t;
       
    42 #endif
       
    43 
       
    44 typedef unsigned long uintptr_t;
    34 typedef unsigned long uintptr_t;
    45 
    35 
    46 /* enable keyboard support */
    36 /* enable iPhone keyboard support */
    47 #define SDL_IPHONE_KEYBOARD 1
    37 #define SDL_IPHONE_KEYBOARD 1
    48 
    38 
    49 /* enable OpenGL ES */
    39 /* enable OpenGL ES */
    50 #define SDL_VIDEO_OPENGL_ES	1
    40 #define SDL_VIDEO_OPENGL_ES	1
    51 
       
    52 #define SDL_VIDEO_RENDER_OGL_ES	1
    41 #define SDL_VIDEO_RENDER_OGL_ES	1
    53 
    42 
    54 #define SDL_HAS_64BIT_TYPE	0
    43 #define SDL_HAS_64BIT_TYPE	1
    55 
    44 
    56 /* Enable various timer systems */
    45 /* Enable various timer systems */
    57 #define SDL_TIMER_UNIX	1
    46 #define SDL_TIMER_UNIX	1
    58 
    47 
       
    48 /* enable iPhone version of Core Audio driver */
       
    49 #define SDL_AUDIO_DRIVER_COREAUDIOIPHONE 1
    59 /* Enable the dummy audio driver (src/audio/dummy/\*.c) */
    50 /* Enable the dummy audio driver (src/audio/dummy/\*.c) */
    60 #define SDL_AUDIO_DRIVER_COREAUDIOIPHONE 1
       
    61 #define SDL_AUDIO_DRIVER_DUMMY	1
    51 #define SDL_AUDIO_DRIVER_DUMMY	1
    62 
    52 
    63 /* Enable Unix style SO loading */
    53 /* Enable Unix style SO loading */
    64 #define SDL_LOADSO_DLOPEN 1
    54 #define SDL_LOADSO_DLOPEN 1
    65 
    55 
    66 /* Enable the stub cdrom driver (src/cdrom/dummy/\*.c) */
    56 /* Enable the stub cdrom driver (src/cdrom/dummy/\*.c) */
    67 #define SDL_CDROM_DISABLED	1
    57 #define SDL_CDROM_DISABLED	1
    68 
    58 
    69 /* Set max recognized G-force from acceleromter
    59 /* 
    70    (necessary for mapping floating point accelerometer
    60 	Set max recognized G-force from acceleromter
    71     data to Sint16 joystick data)
    61 	See src/joystick/uikit/SDLUIAccelerationDelegate.m for notes on why this is needed
    72  */
    62  */
    73 #define SDL_IPHONE_MAX_GFORCE 5.0
    63 #define SDL_IPHONE_MAX_GFORCE 5.0
    74 /*
    64 /* Enable emulation of multiple mice through multi-touch */
    75 	Enable (or disable) emulation of multiple mice through multi-touch
       
    76 */
       
    77 #define SDL_IPHONE_MULTIPLE_MICE 1
    65 #define SDL_IPHONE_MULTIPLE_MICE 1
    78 /* Enable the stub shared object loader (src/loadso/dummy/\*.c) */
    66 /* Enable the stub shared object loader (src/loadso/dummy/\*.c) */
    79 #define SDL_LOADSO_DISABLED	1
    67 #define SDL_LOADSO_DISABLED	1
    80 
    68 
    81 /* Enable the stub thread support (src/thread/generic/\*.c) */
    69 /* Supported video drivers */
    82 //#define SDL_THREADS_DISABLED	0
       
    83 
       
    84 /* Enable the stub timer support (src/timer/dummy/\*.c) */
       
    85 //#define SDL_TIMERS_DISABLED	0
       
    86 
       
    87 /* supported video drivers */
       
    88 #define SDL_VIDEO_DRIVER_UIKIT	1
    70 #define SDL_VIDEO_DRIVER_UIKIT	1
    89 #define SDL_VIDEO_DRIVER_DUMMY	1
    71 #define SDL_VIDEO_DRIVER_DUMMY	1
    90 
    72 
    91 /* Enable various threading systems */
    73 /* Enable various threading systems */
    92 #define SDL_THREAD_PTHREAD	1
    74 #define SDL_THREAD_PTHREAD	1