Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Added macros SDL_IPHONE_MAX_GFORCE (which is used in converting the f…

…loating 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.
  • Loading branch information
Holmes Futrell committed Aug 15, 2008
1 parent 79f2737 commit a82894ab33f1e86fd96f14a963338ed3990b9c4d
Showing with 9 additions and 3 deletions.
  1. +9 −3 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

0 comments on commit a82894a

Please sign in to comment.