mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-04 14:01:17 +12:00
Avoid wxGetKeyState since it asserts on Linux with wayland GTK
Only modifier keys are allowed, but we used it to test for Escape
This commit is contained in:
parent
c440ecdf36
commit
66711529be
3 changed files with 6 additions and 2 deletions
|
@ -191,7 +191,6 @@ int CemuApp::FilterEvent(wxEvent& event)
|
|||
if(event.GetEventType() == wxEVT_KEY_DOWN)
|
||||
{
|
||||
const auto& key_event = (wxKeyEvent&)event;
|
||||
wxGetKeyState(wxKeyCode::WXK_F17);
|
||||
g_window_info.set_keystate(fix_raw_keycode(key_event.GetRawKeyCode(), key_event.GetRawKeyFlags()), true);
|
||||
}
|
||||
else if(event.GetEventType() == wxEVT_KEY_UP)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue