From 8d6a2c54dd1133312bb6e0f2fb72a2f6eb3f9d56 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 7 Jan 2006 06:28:56 +0000 Subject: [PATCH] fix loading JOY_BUTTON mappings from disk --- stepmania/src/RageInputDevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/RageInputDevice.cpp b/stepmania/src/RageInputDevice.cpp index a3540adb7a..ccce2d43b8 100644 --- a/stepmania/src/RageInputDevice.cpp +++ b/stepmania/src/RageInputDevice.cpp @@ -156,7 +156,7 @@ DeviceButton StringToDeviceButton( const CString& s ) return enum_add2( KEY_OTHER_0, i ); if( sscanf(s, "B%i", &i) == 1 ) - return enum_add2( JOY_BUTTON_1, i+1 ); + return enum_add2( JOY_BUTTON_1, i-1 ); if( sscanf(s, "Midi %i", &i) == 1 ) return enum_add2( MIDI_FIRST, i );