[wesnoth-commits] [wesnoth/wesnoth] 1aa9a3: Fix input system ignoring mouse input

GitHub noreply at github.com
Wed Feb 28 18:04:53 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 1aa9a37915764243e749a37b4b05ab19756c293d
      https://github.com/wesnoth/wesnoth/commit/1aa9a37915764243e749a37b4b05ab19756c293d
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2018-02-28 (Wed, 28 Feb 2018)

  Changed paths:
    M src/hotkey/command_executor.cpp

  Log Message:
  -----------
  Fix input system ignoring mouse input

Regression from commit ecc0dca665737bcb411fbd355edd37df8a9038b8.

It turned out that the "hotkey" system is involved even when mouse clicks
are processed. Therefore my code treated pressing a mouse key as a press
only if there was a keyboard key release since the last mouse click.
The result was that mouse input seemingly didn't work at all.

Fixed by always treating mouse (and joystick) key presses as key presses
regardless of whether there have been key release events in between.




More information about the Commits mailing list