From a82894ab33f1e86fd96f14a963338ed3990b9c4d Mon Sep 17 00:00:00 2001 From: Holmes Futrell Date: Fri, 15 Aug 2008 00:49:49 +0000 Subject: [PATCH] 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. --- include/SDL_config_iphoneos.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/include/SDL_config_iphoneos.h b/include/SDL_config_iphoneos.h index 3fba9982d..1e87945c1 100644 --- a/include/SDL_config_iphoneos.h +++ b/include/SDL_config_iphoneos.h @@ -66,9 +66,15 @@ typedef unsigned long uintptr_t; /* 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