Accept DPAD_CENTER as an "Accept" key. Fixes #9471

This commit is contained in:
Henrik Rydgård 2017-03-22 16:52:34 +01:00
parent 9b216af65d
commit d721b629ca

View File

@ -299,7 +299,7 @@ bool IsAcceptKey(const KeyInput &key) {
if (key.deviceId == DEVICE_ID_KEYBOARD) {
return key.keyCode == NKCODE_SPACE || key.keyCode == NKCODE_ENTER || key.keyCode == NKCODE_Z;
} else {
return key.keyCode == NKCODE_BUTTON_A || key.keyCode == NKCODE_BUTTON_CROSS || key.keyCode == NKCODE_BUTTON_1;
return key.keyCode == NKCODE_BUTTON_A || key.keyCode == NKCODE_BUTTON_CROSS || key.keyCode == NKCODE_BUTTON_1 || key.keyCode == NKCODE_DPAD_CENTER;
}
} else {
return MatchesKeyDef(confirmKeys, key);