Daemon icon indicating copy to clipboard operation
Daemon copied to clipboard

When setting in_nograb to 1, input is not grabbed but pointer is hidden when focusing

Open illwieckz opened this issue 3 years ago • 1 comments

When setting in_nograb to 1, input is not grabbed but pointer is hidden, maybe that's unwanted?

Also, the pointer move still affects the camera.

Enabling in_nograb may also be useful when doing benchmark: in that specific use case, not hiding pointers and not being used to move the camera may be wanted.

illwieckz avatar Jul 04 '21 00:07 illwieckz

When setting in_nograb to 1, input is not grabbed but pointer is hidden, maybe that's unwanted?

After re-reading myself I had to reproduce to understand why I've said…

I mean the desktop pointer is hidden like if it was captured.

Also, the pointer move still affects the camera.

The only thing in_nograb seems to do is to not recenter the pointer.

I don't know if there is a bug, but the behaviour is a bit puzzling.

With in_nograb enabled when the game is on the main menu, the main menu displays the in-game mouse pointer, so there is a continuity, when entering the window the desktop pointer disappears and the in game pointer appear, when leaving the window the in game pointer disappears and the desktop pointer reappears. But outside of a menu, in a loaded game level, when entering the window the mouse pointer disappears and will only reappear when leaving the windows again, the pointer being hidden the whole time between entering and leaving the window.

illwieckz avatar Jul 09 '21 06:07 illwieckz