SDL: Fix axes being mapped wrong

This commit is contained in:
Jeffrey Pfau 2016-02-20 23:09:43 -08:00
parent 6acc14d31b
commit 6334e88e00
2 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ Bugfixes:
- 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

View File

@ -222,7 +222,7 @@ static void _saveAxis(uint32_t axis, void* dp, void* up) {
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);