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

Commit

Permalink
Fixed a bug where SDL_SYS_JoystickUpdate would send update events eve…
Browse files Browse the repository at this point in the history
…n when the accelerometer delegate hadn't received new information from the hardware.
  • Loading branch information
Holmes Futrell committed Jul 18, 2008
1 parent e516727 commit bdc7632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joystick/iphoneos/SDL_sysjoystick.m
Expand Up @@ -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]);
Expand Down

0 comments on commit bdc7632

Please sign in to comment.