summaryrefslogtreecommitdiffstats
path: root/input/keycodes.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-03-24 16:02:48 +0100
committerwm4 <wm4@nowhere>2015-03-24 16:04:44 +0100
commit9b5a7241e88f8147a391f1bb79ce01593a02d443 (patch)
treec6b986d7d29b9828c9d7e1c758416f3988763f41 /input/keycodes.c
parent1e659a9f0f3a3836912c66ab75b5af38e632ef12 (diff)
downloadmpv-9b5a7241e88f8147a391f1bb79ce01593a02d443.tar.bz2
mpv-9b5a7241e88f8147a391f1bb79ce01593a02d443.tar.xz
input: remove Linux joystick support
Why did this exist in the first place? Other than being completely useless, this even caused some regressions in the past. For example, there was the case of a laptop exposing its accelerometer as joystick device, which led to extremely fun things due to the default mappings of axis movement being mapped to seeking. I suppose those who really want to use their joystick to control a media player (???) can configure it as mouse device or so.
Diffstat (limited to 'input/keycodes.c')
-rw-r--r--input/keycodes.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/input/keycodes.c b/input/keycodes.c
index 012fd006ce..ce59bd7e9b 100644
--- a/input/keycodes.c
+++ b/input/keycodes.c
@@ -118,42 +118,6 @@ static const struct key_name key_names[] = {
{ MP_MOUSE_BTN17_DBL, "MOUSE_BTN17_DBL" },
{ MP_MOUSE_BTN18_DBL, "MOUSE_BTN18_DBL" },
{ MP_MOUSE_BTN19_DBL, "MOUSE_BTN19_DBL" },
- { MP_JOY_AXIS1_MINUS, "JOY_UP" },
- { MP_JOY_AXIS1_PLUS, "JOY_DOWN" },
- { MP_JOY_AXIS0_MINUS, "JOY_LEFT" },
- { MP_JOY_AXIS0_PLUS, "JOY_RIGHT" },
-
- { MP_JOY_AXIS0_PLUS, "JOY_AXIS0_PLUS" },
- { MP_JOY_AXIS0_MINUS, "JOY_AXIS0_MINUS" },
- { MP_JOY_AXIS1_PLUS, "JOY_AXIS1_PLUS" },
- { MP_JOY_AXIS1_MINUS, "JOY_AXIS1_MINUS" },
- { MP_JOY_AXIS2_PLUS, "JOY_AXIS2_PLUS" },
- { MP_JOY_AXIS2_MINUS, "JOY_AXIS2_MINUS" },
- { MP_JOY_AXIS3_PLUS, "JOY_AXIS3_PLUS" },
- { MP_JOY_AXIS3_MINUS, "JOY_AXIS3_MINUS" },
- { MP_JOY_AXIS4_PLUS, "JOY_AXIS4_PLUS" },
- { MP_JOY_AXIS4_MINUS, "JOY_AXIS4_MINUS" },
- { MP_JOY_AXIS5_PLUS, "JOY_AXIS5_PLUS" },
- { MP_JOY_AXIS5_MINUS, "JOY_AXIS5_MINUS" },
- { MP_JOY_AXIS6_PLUS, "JOY_AXIS6_PLUS" },
- { MP_JOY_AXIS6_MINUS, "JOY_AXIS6_MINUS" },
- { MP_JOY_AXIS7_PLUS, "JOY_AXIS7_PLUS" },
- { MP_JOY_AXIS7_MINUS, "JOY_AXIS7_MINUS" },
- { MP_JOY_AXIS8_PLUS, "JOY_AXIS8_PLUS" },
- { MP_JOY_AXIS8_MINUS, "JOY_AXIS8_MINUS" },
- { MP_JOY_AXIS9_PLUS, "JOY_AXIS9_PLUS" },
- { MP_JOY_AXIS9_MINUS, "JOY_AXIS9_MINUS" },
-
- { MP_JOY_BTN0, "JOY_BTN0" },
- { MP_JOY_BTN1, "JOY_BTN1" },
- { MP_JOY_BTN2, "JOY_BTN2" },
- { MP_JOY_BTN3, "JOY_BTN3" },
- { MP_JOY_BTN4, "JOY_BTN4" },
- { MP_JOY_BTN5, "JOY_BTN5" },
- { MP_JOY_BTN6, "JOY_BTN6" },
- { MP_JOY_BTN7, "JOY_BTN7" },
- { MP_JOY_BTN8, "JOY_BTN8" },
- { MP_JOY_BTN9, "JOY_BTN9" },
{ MP_AR_PLAY, "AR_PLAY" },
{ MP_AR_PLAY_HOLD, "AR_PLAY_HOLD" },