Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
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.
- Loading branch information
Showing
with
17 additions
and 27 deletions.
- +6 −10 src/client/game.cpp
- +11 −11 src/client/joystick_controller.cpp
- +0 −6 src/client/keys.h