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

SDL: Default to no keyboard grab on Windows. #831

Merged
merged 1 commit into from
Sep 24, 2023

Conversation

dsvensson
Copy link
Collaborator

This is the default on Linux, and incidentally used to be the default on Windows as well, until vcpkg got introduced which brought a modern SDL version with support for keyboard grabbing.

Fixes #830

This is the default on Linux, and incidentally used to be the default
on Windows as well, until vcpkg got introduced which brought a modern
SDL version with support for keyboard grabbing.
@dsvensson dsvensson marked this pull request as ready for review September 23, 2023 20:52
@ciscon
Copy link
Collaborator

ciscon commented Sep 23, 2023

This commit is switching it to 1 instead of CVAR_DEF2 which is 0 in linux/bsd and 1 for "other", don't you just want to add windows to that list (or just change the default to 0)? In which case we can remove CVAR_DEF2 as that's all it's for, turning keyboard grabbing on in windows by default.

@dsvensson
Copy link
Collaborator Author

It was a test of reviewers! 😂

@dsvensson
Copy link
Collaborator Author

dsvensson commented Sep 23, 2023

But you are right, not sure what the implications are on macOS. I'll add Windows to the ifdef for now.

Update: No, that breaks mouse grabbing.

@tcsabina tcsabina merged commit e8ed7a5 into QW-Group:master Sep 24, 2023
4 checks passed
@dsvensson dsvensson deleted the no-keyboard-grab branch January 15, 2024 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Revisit vid_grab_keyboard defaults/documentation on Windows
3 participants