mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-22 02:39:05 +02:00
Unpress the reverse direction, avoids sticking.
This commit is contained in:
1 parent
4541a79d54
commit
5f382c5ab0
1 file changed
+5
@@ -262,6 +262,11 @@ void EmuScreen::axis(const AxisInput &axis) {
|
||||
default:
|
||||
if (axis.value >= AXIS_BIND_THRESHOLD || axis.value <= -AXIS_BIND_THRESHOLD) {
|
||||
pspKey(result, KEY_DOWN);
|
||||
|
||||
// Also unpress the other direction.
|
||||
result = KeyMap::AxisToPspButton(axis.deviceId, axis.axisId, axis.value >= 0 ? -1 : 1);
|
||||
if (result != KEYMAP_ERROR_UNKNOWN_KEY)
|
||||
pspKey(result, KEY_UP);
|
||||
} else {
|
||||
pspKey(result, KEY_UP);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user