Movement keys don't work when the mouse is over most UI elements
Issue #81
resolved
If the mouse pointer is over the character’s stats, the minimap, items at the character’s position, or the spell shortcut circle at the bottom left, you can’t move the character.
Comments (6)
-
repo owner -
repo owner -
assigned issue to
-
assigned issue to
-
The input handler is not the issue here.
-
Just an example: if the “items on the ground” panel would have an input handler that maps the selection of an item to “cursor left/cursor right” then the PC could not move left/right anymore if the mouse is still hovering over the “items on the ground” panel.
I’ve already deactivated this mechanism for the next release. We need some kind of “focus” handling if the game is played with keyboard only. But we don’t need any special input handlers in “mouse only” mode.
-
- changed status to resolved
Fixed in 0.1.1
-
- changed milestone to Fixed in version 0.1.1
- Log in to comment
@Jochen Terstiege I already suggested this with another issue (can’t remember the number): There should be a stack of input handlers and if the current handler doesn not process a command, it should be given to the next one in the stack until it is processed. In this way we could remove these special cases.
In my memory it even worked like this at some point…not quite sure.