# HG changeset patch # User Holmes Futrell # Date 1218761389 0 # Node ID 826210ef2c107aca7521ad4794da0633aeb84e1f # Parent 32b9909db651c76e8f673036a6ec173d705c818a 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. diff -r 32b9909db651 -r 826210ef2c10 include/SDL_config_iphoneos.h --- a/include/SDL_config_iphoneos.h Fri Aug 15 00:46:58 2008 +0000 +++ b/include/SDL_config_iphoneos.h Fri Aug 15 00:49:49 2008 +0000 @@ -66,9 +66,15 @@ /* Enable the stub cdrom driver (src/cdrom/dummy/\*.c) */ #define SDL_CDROM_DISABLED 1 -/* Enable the stub joystick driver (src/joystick/dummy/\*.c) */ -//#define SDL_JOYSTICK_DISABLED 1 - +/* Set max recognized G-force from acceleromter + (necessary for mapping floating point accelerometer + data to Sint16 joystick data) + */ +#define SDL_IPHONE_MAX_GFORCE 5.0 +/* + Enable (or disable) emulation of multiple mice through multi-touch +*/ +#define SDL_IPHONE_MULTIPLE_MICE 1 /* Enable the stub shared object loader (src/loadso/dummy/\*.c) */ #define SDL_LOADSO_DISABLED 1