mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
UI: Allow cancel from analog speed mapping.
This commit is contained in:
parent
6e1457e3bf
commit
3cb4207369
1 changed files with 2 additions and 2 deletions
|
@ -338,13 +338,13 @@ bool KeyMappingNewKeyDialog::key(const KeyInput &key) {
|
|||
return true;
|
||||
}
|
||||
// Only map analog values to this mapping.
|
||||
if (pspBtn_ == VIRTKEY_SPEED_ANALOG)
|
||||
if (pspBtn_ == VIRTKEY_SPEED_ANALOG && !UI::IsEscapeKey(key))
|
||||
return true;
|
||||
|
||||
mapped_ = true;
|
||||
KeyDef kdf(key.deviceId, key.keyCode);
|
||||
TriggerFinish(DR_YES);
|
||||
if (callback_)
|
||||
if (callback_ && pspBtn_ != VIRTKEY_SPEED_ANALOG)
|
||||
callback_(kdf);
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue