]> git.lizzy.rs Git - dragonfireclient.git/commit
Joystick: Remap joystick-specific KeyTypes to generic ones
authorMarkus Koch <markus@notsyncing.net>
Sat, 7 Nov 2020 16:45:32 +0000 (17:45 +0100)
committersfan5 <sfan5@live.de>
Mon, 9 Nov 2020 10:58:50 +0000 (11:58 +0100)
commite1142ee57f2d7b59a86f6d0d72ae043844bc3121
tree9b63cede37948a78d05e7595ee5976aab0c63a41
parent7589cbe086a5558eea018e1e3d25e388b26d51e8
Joystick: Remap joystick-specific KeyTypes to generic ones

According to the following table:
* MOUSE_L     -> DIG
* MOUSE_R     -> PLACE
* SCROLL_UP   -> HOTBAR_NEXT
* SCROLL_DOWN -> HOTBAR_PREV

This commit entirely removes the special KeyTypes used for joysticks.

Support for the MOUSE KeyTypes had already been removed in the main
game code without adapting the joystick code, breaking joystick
input. This commit restores joystick functionality.
src/client/game.cpp
src/client/joystick_controller.cpp
src/client/keys.h