mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-11 05:29:43 +00:00
Merge pull request #98 from dyharlan/master
Fix keyboard event bug where mouse grab combination won't work if SDL_GetModState
This commit is contained in:
commit
e2e78c0682
@ -56,7 +56,7 @@ void EventManager::poll_events()
|
||||
case SDL_KEYUP: {
|
||||
// Internal shortcuts to trigger mouse grab, intentionally not
|
||||
// sent to the host.
|
||||
if (event.key.keysym.sym == SDLK_g && SDL_GetModState() == KMOD_LCTRL) {
|
||||
if (SDL_GetModState() & KMOD_LCTRL && event.key.keysym.sym == SDLK_g) {
|
||||
if (event.type == SDL_KEYUP) {
|
||||
toggle_mouse_grab(event.key);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user