Report 0 joysticks to SDL if neither accelerometer nor on-screen keyboard is used

This commit is contained in:
pelya
2010-10-27 14:44:00 +03:00
parent b7380b12e9
commit 5c9f98c11a
2 changed files with 7 additions and 2 deletions

View File

@@ -456,7 +456,7 @@ class Settings
nativeSetTrackballUsed();
if( Globals.AppUsesMouse )
nativeSetMouseUsed();
if( Globals.AppUsesJoystick )
if( Globals.AppUsesJoystick && (Globals.UseAccelerometerAsArrowKeys || Globals.UseTouchscreenKeyboard) )
nativeSetJoystickUsed();
if( Globals.AppUsesMultitouch )
nativeSetMultitouchUsed();