src/joystick/iphoneos/SDL_sysjoystick.m
branchgsoc2008_iphone
changeset 2363 49b243db2e04
parent 2348 dd32c95434f4
--- 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]);