Files
Descent3/renderer/HardwareOpenGL.cpp
Jan Engelhardt 21359c13e0 Revert "Grab keyboard when the game is not launched with -nomousegrab"
This reverts commit 1707ee1986.

Under X11, grabbing the keyboard has negative side effect of
rendering Alt-Tab useless in windowed mode. Multimedia volume keys
are rendered useless in windowed or fullscreen mode. When execution
of descent3 is suspended (e.g. when running under a debugger), it
would be impossible to get out of it even in fullscreen mode, since
the SDL handler does not run.

Looking at other games, I find that many other engines
(chocolate-doom, gzdoom, yquake2, sauerbraten, but also gl-117) do
not exercise keyboard grabbing either and only use relative mouse
mode (mouse grab).
2025-05-28 00:35:43 +02:00

53 KiB