all repos — mgba @ 6334e88e00e975fbae908e12098f8a2f67f9bfd0

mGBA Game Boy Advance Emulator

SDL: Fix axes being mapped wrong
Jeffrey Pfau jeffrey@endrift.com
Sat, 20 Feb 2016 23:09:43 -0800
commit

6334e88e00e975fbae908e12098f8a2f67f9bfd0

parent

6acc14d31b5faf681b8d67593fea42932f701bfa

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -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.csrc/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);