[UI] Implement keycode handling for Linux with additional keys from xenia#2234

This commit is contained in:
Marco Rodolfi
2025-01-17 21:09:29 +01:00
committed by Radosław Gliński
parent 8d841693ff
commit 9703038b71
2 changed files with 163 additions and 20 deletions

View File

@@ -59,6 +59,10 @@ class GTKWindow : public Window {
void BeginBatchedSizeUpdate();
void EndBatchedSizeUpdate(WindowDestructionReceiver& destruction_receiver);
// Translates a gtk virtual key to xenia ui::VirtualKey
static VirtualKey TranslateVirtualKey(guint keyval);
// Handling events related to the whole window.
bool HandleMouse(GdkEvent* event,
WindowDestructionReceiver& destruction_receiver);