Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Added macros SDL_IPHONE_MAX_GFORCE (which is used in converting the f…
Browse files Browse the repository at this point in the history
…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 a82894a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions include/SDL_config_iphoneos.h
Expand Up @@ -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

Expand Down

0 comments on commit a82894a

Please sign in to comment.