aboutsummaryrefslogtreecommitdiff
path: root/src/client/keys.h
diff options
context:
space:
mode:
authorMarkus Koch <markus@notsyncing.net>2020-11-07 17:45:32 +0100
committersfan5 <sfan5@live.de>2020-11-09 11:58:50 +0100
commite1142ee57f2d7b59a86f6d0d72ae043844bc3121 (patch)
tree9b63cede37948a78d05e7595ee5976aab0c63a41 /src/client/keys.h
parent7589cbe086a5558eea018e1e3d25e388b26d51e8 (diff)
downloadhax-minetest-server-e1142ee57f2d7b59a86f6d0d72ae043844bc3121.tar.gz
hax-minetest-server-e1142ee57f2d7b59a86f6d0d72ae043844bc3121.zip
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.
Diffstat (limited to 'src/client/keys.h')
-rw-r--r--src/client/keys.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/client/keys.h b/src/client/keys.h
index b6ce59b4a..60a7a3c45 100644
--- a/src/client/keys.h
+++ b/src/client/keys.h
@@ -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