Fix gamepad hotkey and game profile setting #510
Loading…
Reference in a new issue
No description provided.
Delete branch "fixpadoptionandbutton"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This requires GTK headers so I added GTK as a dependency (no actual new dependency, wxwidgets already linked libgtk). Which also allows replacing all explicitly dynamically loaded calls with normal calls.
This also changes the way KeyboardController stops sending input after loss of focus. I changed the keyboard code that was already in gui_wrapper/CemuApp so it works as intended. Using the KILL_FOCUS event didn't work because pressing tab would immediately trigger that event and unpress all keys. The ACTIVATE_APP event doesn't have that issue. Now that the keyboard state tracking code updates to make all keys unpresed when focus is lost KeyboardController doesn't need to check if the windows is active anymore.
On linux pressing tab triggers this event, immediately resetting the tab key state. Makes the button unpressable. Perhaps some workaround could work where ignores the kill focus events when tab is held.
Fixed by checking if window is active in LatterRenderTarget. Perhaps it would be nicer to just set all keys to up when app is marked inactive in CemuApp. That way the Keyboard input manager also doesn't need to look that up.