src/joystick/iphoneos/SDL_sysjoystick.m
branchgsoc2008_iphone
changeset 2363 49b243db2e04
parent 2348 dd32c95434f4
     1.1 --- a/src/joystick/iphoneos/SDL_sysjoystick.m	Fri Jul 18 17:46:17 2008 +0000
     1.2 +++ b/src/joystick/iphoneos/SDL_sysjoystick.m	Fri Jul 18 17:47:36 2008 +0000
     1.3 @@ -89,10 +89,10 @@
     1.4  {
     1.5  	
     1.6  	Sint16 orientation[3];
     1.7 -	[[SDLUIAccelerationDelegate sharedDelegate] getLastOrientation: orientation];
     1.8  	
     1.9  	if ([[SDLUIAccelerationDelegate sharedDelegate] hasNewData]) {
    1.10  	
    1.11 +		[[SDLUIAccelerationDelegate sharedDelegate] getLastOrientation: orientation];
    1.12  		[[SDLUIAccelerationDelegate sharedDelegate] setHasNewData: NO];
    1.13  		
    1.14  		SDL_PrivateJoystickAxis(joystick, 0, orientation[0]);