mirror of https://github.com/mgba-emu/mgba.git
SDL: Fix axes being mapped wrong
This commit is contained in:
parent
6acc14d31b
commit
6334e88e00
1
CHANGES
1
CHANGES
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue