mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
Add numpad enter as a confirm
This commit is contained in:
1 parent
e942ba680b
commit
0288717206
3 files changed
+3
-2
No files matched your search
@@ -235,7 +235,7 @@ bool PopupScreen::touch(const TouchInput &touch) {
|
||||
|
||||
bool PopupScreen::key(const KeyInput &key) {
|
||||
if (key.flags & KEY_DOWN) {
|
||||
if (key.keyCode == NKCODE_ENTER && defaultButton_) {
|
||||
if ((key.keyCode == NKCODE_ENTER || key.keyCode == NKCODE_NUMPAD_ENTER) && defaultButton_) {
|
||||
UI::EventParams e{};
|
||||
defaultButton_->OnClick.Trigger(e);
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user