# HG changeset patch # User Holmes Futrell # Date 1216403256 0 # Node ID 49b243db2e046de57a5fb60a54e111b71fab483b # Parent 44fc2537ff9e76c43dd47a498c790bec3e1e6831 Fixed a bug where SDL_SYS_JoystickUpdate would send update events even when the accelerometer delegate hadn't received new information from the hardware. diff -r 44fc2537ff9e -r 49b243db2e04 src/joystick/iphoneos/SDL_sysjoystick.m --- a/src/joystick/iphoneos/SDL_sysjoystick.m Fri Jul 18 17:46:17 2008 +0000 +++ b/src/joystick/iphoneos/SDL_sysjoystick.m Fri Jul 18 17:47:36 2008 +0000 @@ -89,10 +89,10 @@ { Sint16 orientation[3]; - [[SDLUIAccelerationDelegate sharedDelegate] getLastOrientation: orientation]; if ([[SDLUIAccelerationDelegate sharedDelegate] hasNewData]) { + [[SDLUIAccelerationDelegate sharedDelegate] getLastOrientation: orientation]; [[SDLUIAccelerationDelegate sharedDelegate] setHasNewData: NO]; SDL_PrivateJoystickAxis(joystick, 0, orientation[0]);