comparison include/SDL_config_iphoneos.h @ 2428:826210ef2c10 gsoc2008_iphone

Added macros SDL_IPHONE_MAX_GFORCE (which is used in converting the floating point g-force value returned by the iPhone accelerometer to the Sint16 required by SDL_Joystick) and SDL_IPHONE_MULTIPLE_MICE, which when enabled allows multi-touch to be emulated as multiple mice.
author Holmes Futrell <hfutrell@umail.ucsb.edu>
date Fri, 15 Aug 2008 00:49:49 +0000
parents f0c16f5ecd75
children 775e061e9440
comparison
equal deleted inserted replaced
2427:32b9909db651 2428:826210ef2c10
64 #define SDL_LOADSO_DLOPEN 1 64 #define SDL_LOADSO_DLOPEN 1
65 65
66 /* Enable the stub cdrom driver (src/cdrom/dummy/\*.c) */ 66 /* Enable the stub cdrom driver (src/cdrom/dummy/\*.c) */
67 #define SDL_CDROM_DISABLED 1 67 #define SDL_CDROM_DISABLED 1
68 68
69 /* Enable the stub joystick driver (src/joystick/dummy/\*.c) */ 69 /* Set max recognized G-force from acceleromter
70 //#define SDL_JOYSTICK_DISABLED 1 70 (necessary for mapping floating point accelerometer
71 71 data to Sint16 joystick data)
72 */
73 #define SDL_IPHONE_MAX_GFORCE 5.0
74 /*
75 Enable (or disable) emulation of multiple mice through multi-touch
76 */
77 #define SDL_IPHONE_MULTIPLE_MICE 1
72 /* Enable the stub shared object loader (src/loadso/dummy/\*.c) */ 78 /* Enable the stub shared object loader (src/loadso/dummy/\*.c) */
73 #define SDL_LOADSO_DISABLED 1 79 #define SDL_LOADSO_DISABLED 1
74 80
75 /* Enable the stub thread support (src/thread/generic/\*.c) */ 81 /* Enable the stub thread support (src/thread/generic/\*.c) */
76 //#define SDL_THREADS_DISABLED 0 82 //#define SDL_THREADS_DISABLED 0