mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix clearing analog shortcuts
This commit is contained in:
parent
3ace420e3f
commit
c6c57273b5
|
@ -228,8 +228,8 @@ void ShortcutController::updateButton(const QModelIndex& index, int button) {
|
||||||
if (oldButton >= 0) {
|
if (oldButton >= 0) {
|
||||||
m_buttons.take(oldButton);
|
m_buttons.take(oldButton);
|
||||||
}
|
}
|
||||||
|
updateAxis(index, -1, GamepadAxisEvent::NEUTRAL);
|
||||||
if (button >= 0) {
|
if (button >= 0) {
|
||||||
updateAxis(index, -1, GamepadAxisEvent::NEUTRAL);
|
|
||||||
m_buttons[button] = item;
|
m_buttons[button] = item;
|
||||||
}
|
}
|
||||||
if (m_config) {
|
if (m_config) {
|
||||||
|
|
Loading…
Reference in New Issue