Movement keys don't work when the mouse is over most UI elements

Issue #81 resolved
Grond created an issue

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)

  1. Team ADOM GmbH repo owner

    @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.

  2. Jochen Terstiege

    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.

  3. Log in to comment