mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 09:25:37 +02:00
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.
This commit is contained in:
@@ -110,12 +110,6 @@ public:
|
||||
SLOT_31,
|
||||
SLOT_32,
|
||||
|
||||
// joystick specific keys
|
||||
MOUSE_L,
|
||||
MOUSE_R,
|
||||
SCROLL_UP,
|
||||
SCROLL_DOWN,
|
||||
|
||||
// Fake keycode for array size and internal checks
|
||||
INTERNAL_ENUM_COUNT
|
||||
|
||||
|
Reference in New Issue
Block a user