Doesn't yet work

This commit is contained in:
Henrik Rydgård committed 2026-06-24 23:04:17 +02:00
1 parent 729f11ecbe
commit 72ee82844d
16 files changed
+133 -151

No files matched your search

+10 -10
View File
@@ -1478,6 +1478,16 @@ bool NativeKey(const KeyInput &key) {
g_controlMapper.Key(key);
}
// Ignore volume keys and stuff here - though we do send them through to the control mapper, so they can be mapped to PSP buttons.
switch (key.keyCode) {
case NKCODE_VOLUME_DOWN:
case NKCODE_VOLUME_UP:
case NKCODE_VOLUME_MUTE:
return false;
default:
break;
}
// Track modifier keys.
if (key.flags & KeyInputFlags::DOWN) {
switch (key.keyCode) {
@@ -1526,16 +1536,6 @@ bool NativeKey(const KeyInput &key) {
KeyInput modKey = key;
modKey.flags |= modifierFlags;
// Ignore volume keys and stuff here. Not elegant but need to propagate bools through the view hierarchy as well...
switch (key.keyCode) {
case NKCODE_VOLUME_DOWN:
case NKCODE_VOLUME_UP:
case NKCODE_VOLUME_MUTE:
return false;
default:
break;
}
bool retval = false;
UI::KeyEventResult kev = UI::KeyEventToFocusMoves(key);