[Scummvm-git-logs] scummvm master -> af4878e884f6f29b95a6a53fd5ecb4e73cd97bfe
rsn8887
rsn8887 at users.noreply.github.com
Wed Feb 17 00:05:36 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
af4878e884 KEYMAPPER: Fix exit on analog input
Commit: af4878e884f6f29b95a6a53fd5ecb4e73cd97bfe
https://github.com/scummvm/scummvm/commit/af4878e884f6f29b95a6a53fd5ecb4e73cd97bfe
Author: rsn8887 (rsn8887 at users.noreply.github.com)
Date: 2021-02-16T18:04:37-06:00
Commit Message:
KEYMAPPER: Fix exit on analog input
Changed paths:
backends/keymapper/keymap.cpp
diff --git a/backends/keymapper/keymap.cpp b/backends/keymapper/keymap.cpp
index 4f7e765429..7d56c80af7 100644
--- a/backends/keymapper/keymap.cpp
+++ b/backends/keymapper/keymap.cpp
@@ -217,7 +217,7 @@ Keymap::KeymapMatch Keymap::getMappedActions(const Event &event, ActionArray &ac
if (event.joystick.position != 0) {
bool positiveHalf = event.joystick.position >= 0;
HardwareInput hardwareInput = HardwareInput::createJoystickHalfAxis("", event.joystick.axis, positiveHalf, U32String());
- actions.push_back(_hwActionMap[hardwareInput]);
+ actions.push_back(_hwActionMap.getValOrDefault(hardwareInput));
} else {
// Axis position zero is part of both half axes, and triggers actions bound to both
HardwareInput hardwareInputPos = HardwareInput::createJoystickHalfAxis("", event.joystick.axis, true, U32String());
More information about the Scummvm-git-logs
mailing list