Skip to content

Commit

Permalink
xrEngine/xr_input.cpp: removed -grab_keyboard command line key
Browse files Browse the repository at this point in the history
SDL2 even suggests that this functionality should be used only by
specific applications, but not a game engine.
We should not block system shortcuts :)
Xottab-DUTY committed Jan 8, 2025

Verified

This commit was signed with the committer’s verified signature.
pawanjay176 Pawan Dhananjay
1 parent ad6544b commit d254cc5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/xrEngine/xr_input.cpp
Original file line number Diff line number Diff line change
@@ -778,11 +778,6 @@ void CInput::ExclusiveMode(const bool exclusive)
{
GrabInput(false);

// Original CInput was using DirectInput in exclusive mode
// In which keyboard was grabbed with the mouse.
// It produces problems on Linux, so it's disabled by default.
if (strstr(Core.Params, "-grab_keyboard"))
SDL_SetHint(SDL_HINT_GRAB_KEYBOARD, exclusive ? "1" : "0");
exclusiveInput = exclusive;

GrabInput(true);

0 comments on commit d254cc5

Please sign in to comment.