mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-02 00:07:59 +00:00
KEYMAPPER: Have clicking on another remap button disable remapping
Prevents the remapping code from being activated twice (throwing an assertion)
This commit is contained in:
parent
29b9bba62c
commit
5159996cec
@ -258,6 +258,12 @@ void RemapDialog::startRemapping(uint i) {
|
||||
if (_topAction + i >= _currentActions.size())
|
||||
return;
|
||||
|
||||
if (_keymapper->isRemapping()) {
|
||||
// Handle a second click on the button as a stop to remapping
|
||||
stopRemapping(true);
|
||||
return;
|
||||
}
|
||||
|
||||
_remapTimeout = g_system->getMillis() + kRemapTimeoutDelay;
|
||||
Action *activeRemapAction = _currentActions[_topAction + i].action;
|
||||
_keymapWidgets[i].keyButton->setLabel("...");
|
||||
|
Loading…
x
Reference in New Issue
Block a user