SDL: Fix axes being mapped wrong
Jeffrey Pfau jeffrey@endrift.com
Sat, 20 Feb 2016 23:09:43 -0800
2 files changed,
2 insertions(+),
1 deletions(-)
M
CHANGES
→
CHANGES
@@ -10,6 +10,7 @@ - OpenGL: Correct boolean vector strcmp strings for uniforms
- Wii: Fix tilting direction - SDL: Fix joystick initialization on BS - SDL: Fix potential joystick crash in games with rumble + - SDL: Fix axes being mapped wrong Misc: - GBA: Slightly optimize GBAProcessEvents - Qt: Add preset for DualShock 4
M
src/core/input.c
→
src/core/input.c
@@ -222,7 +222,7 @@ axisInfo[AXIS_INFO_MAX - 1] = '\0';
ConfigurationSetValue(user->config, sectionName, axisKey, axisInfo); } if (description->highDirection != -1) { - const char* keyName = user->info->keyId[description->lowDirection]; + const char* keyName = user->info->keyId[description->highDirection]; char axisKey[KEY_NAME_MAX]; snprintf(axisKey, KEY_NAME_MAX, "axis%sValue", keyName);