Skip to content

Commit

Permalink
SDL: Default to no keyboard grab on Windows.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dsvensson committed Sep 23, 2023
1 parent 1f633df commit 964a0ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vid_sdl2.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ cvar_t vid_minimize_on_focus_loss = {"vid_minimize_on_focus_loss", CVAR_DEF1, CV
// TODO: Move the in_* cvars
cvar_t in_raw = {"in_raw", "1", CVAR_ARCHIVE | CVAR_SILENT, in_raw_callback};
cvar_t in_grab_windowed_mouse = {"in_grab_windowed_mouse", "1", CVAR_ARCHIVE | CVAR_SILENT, in_grab_windowed_mouse_callback};
cvar_t vid_grab_keyboard = {"vid_grab_keyboard", CVAR_DEF2, CVAR_LATCH_GFX }; /* Needs vid_restart thus vid_.... */
cvar_t vid_grab_keyboard = {"vid_grab_keyboard", "0", CVAR_LATCH_GFX }; /* Needs vid_restart thus vid_.... */
#ifdef EZ_MULTIPLE_RENDERERS
cvar_t vid_renderer = {"vid_renderer", "1", CVAR_LATCH_GFX };
#endif
Expand Down

0 comments on commit 964a0ed

Please sign in to comment.