mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-15 02:15:34 -04:00
input handler: force not skip next char event if no input consumer is set
This should fix that you sometimes (eventually when the server force closes an container without any key interaction) need to press ESC twice to pause the game.
This commit is contained in:
parent
69722cd2a6
commit
57c3dd0e2c
@ -282,8 +282,10 @@ class RenderWindowInputHandler(
|
||||
keysLastDownTime[keyCode] = currentTime
|
||||
}
|
||||
|
||||
|
||||
if (inputHandler != this.inputHandler && this.inputHandler != null) {
|
||||
if (this.inputHandler == null) {
|
||||
skipCharPress = false
|
||||
skipMouseMove = false
|
||||
} else if (inputHandler != this.inputHandler) {
|
||||
skipCharPress = true
|
||||
skipMouseMove = true
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user