I’m currently developing a game with GDevelop.
When the game starts, it automatically switches to borderless fullscreen mode because it provides a better gameplay experience.
However, players may press the ESC key to open the in-game menu. When they do, the game exits fullscreen and returns to windowed mode. After that, keyboard input is no longer detected until the player clicks once inside the game window.
Is there a way to prevent the game from losing focus and keep keyboard input working without requiring an additional mouse click?
Thanks in advance!