mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-04 05:51:19 +12:00
Fix gamepad hotkey and game profile setting (#510)
This commit is contained in:
parent
c43fc81f8e
commit
cbdf381b31
11 changed files with 79 additions and 64 deletions
|
@ -218,9 +218,11 @@ int CemuApp::FilterEvent(wxEvent& event)
|
|||
const auto& key_event = (wxKeyEvent&)event;
|
||||
g_window_info.set_keystate(fix_raw_keycode(key_event.GetRawKeyCode(), key_event.GetRawKeyFlags()), false);
|
||||
}
|
||||
else if(event.GetEventType() == wxEVT_KILL_FOCUS)
|
||||
else if(event.GetEventType() == wxEVT_ACTIVATE_APP)
|
||||
{
|
||||
g_window_info.set_keystatesdown();
|
||||
const auto& activate_event = (wxActivateEvent&)event;
|
||||
if(!activate_event.GetActive())
|
||||
g_window_info.set_keystatesup();
|
||||
}
|
||||
|
||||
return wxApp::FilterEvent(event);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue