Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Game freezes when pressing Alt with WindowedMode = 2 #58

Open
ArtyIF opened this issue Nov 25, 2020 · 1 comment
Open

Game freezes when pressing Alt with WindowedMode = 2 #58

ArtyIF opened this issue Nov 25, 2020 · 1 comment

Comments

@ArtyIF
Copy link

ArtyIF commented Nov 25, 2020

When I press Alt (which I binded to Speedbreaker) when I set the game to run in bordered window the game freezes until I press Alt again. This might be because Windows is trying to open a non-existent or invisible menu bar, which makes the game lose focus and freeze until this bar is closed by pressing Alt again.

@ArtyIF
Copy link
Author

ArtyIF commented Nov 25, 2020

Research shows that pressing Alt sends a WM_SYSCOMMAND message with wParam being SC_KEYMENU (https://stackoverflow.com/questions/9627379/how-to-disable-normal-behaviour-of-alt-key). I don't know how to use Win32 windows and messages and stuff though so I can't really fix it myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant