overlays/osk: Implement fallback for unknown keys

Note that those keys won't be passed to the cellOsk event hook callback
This commit is contained in:
Megamouse 2022-10-29 11:29:38 +02:00
parent c214f45e14
commit ad340c3007
7 changed files with 141 additions and 94 deletions

View file

@ -104,7 +104,7 @@ void basic_keyboard_handler::keyPressEvent(QKeyEvent* keyEvent)
if (key >= 0)
{
Key(static_cast<u32>(key), true);
Key(static_cast<u32>(key), true, keyEvent->text().toStdU32String());
}
}
@ -125,7 +125,7 @@ void basic_keyboard_handler::keyReleaseEvent(QKeyEvent* keyEvent)
if (key >= 0)
{
Key(static_cast<u32>(key), false);
Key(static_cast<u32>(key), false, keyEvent->text().toStdU32String());
}
}