summaryrefslogtreecommitdiffstats
path: root/input/keycodes.h
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.h
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.h')
-rw-r--r--input/keycodes.h37
1 files changed, 0 insertions, 37 deletions
diff --git a/input/keycodes.h b/input/keycodes.h
index 7df93af6f4..44d71b3872 100644
--- a/input/keycodes.h
+++ b/input/keycodes.h
@@ -97,43 +97,6 @@
#define MP_KEY_KPDEL (MP_KEY_KEYPAD+12)
#define MP_KEY_KPENTER (MP_KEY_KEYPAD+13)
-
-// Joystick input module
-#define MP_JOY_BASE (MP_KEY_BASE+0x70)
-#define MP_JOY_AXIS0_PLUS (MP_JOY_BASE+0)
-#define MP_JOY_AXIS0_MINUS (MP_JOY_BASE+1)
-#define MP_JOY_AXIS1_PLUS (MP_JOY_BASE+2)
-#define MP_JOY_AXIS1_MINUS (MP_JOY_BASE+3)
-#define MP_JOY_AXIS2_PLUS (MP_JOY_BASE+4)
-#define MP_JOY_AXIS2_MINUS (MP_JOY_BASE+5)
-#define MP_JOY_AXIS3_PLUS (MP_JOY_BASE+6)
-#define MP_JOY_AXIS3_MINUS (MP_JOY_BASE+7)
-#define MP_JOY_AXIS4_PLUS (MP_JOY_BASE+8)
-#define MP_JOY_AXIS4_MINUS (MP_JOY_BASE+9)
-#define MP_JOY_AXIS5_PLUS (MP_JOY_BASE+10)
-#define MP_JOY_AXIS5_MINUS (MP_JOY_BASE+11)
-#define MP_JOY_AXIS6_PLUS (MP_JOY_BASE+12)
-#define MP_JOY_AXIS6_MINUS (MP_JOY_BASE+13)
-#define MP_JOY_AXIS7_PLUS (MP_JOY_BASE+14)
-#define MP_JOY_AXIS7_MINUS (MP_JOY_BASE+15)
-#define MP_JOY_AXIS8_PLUS (MP_JOY_BASE+16)
-#define MP_JOY_AXIS8_MINUS (MP_JOY_BASE+17)
-#define MP_JOY_AXIS9_PLUS (MP_JOY_BASE+18)
-#define MP_JOY_AXIS9_MINUS (MP_JOY_BASE+19)
-
-#define MP_JOY_BTN_BASE ((MP_KEY_BASE+0x90)|MP_NO_REPEAT_KEY)
-#define MP_JOY_BTN0 (MP_JOY_BTN_BASE+0)
-#define MP_JOY_BTN1 (MP_JOY_BTN_BASE+1)
-#define MP_JOY_BTN2 (MP_JOY_BTN_BASE+2)
-#define MP_JOY_BTN3 (MP_JOY_BTN_BASE+3)
-#define MP_JOY_BTN4 (MP_JOY_BTN_BASE+4)
-#define MP_JOY_BTN5 (MP_JOY_BTN_BASE+5)
-#define MP_JOY_BTN6 (MP_JOY_BTN_BASE+6)
-#define MP_JOY_BTN7 (MP_JOY_BTN_BASE+7)
-#define MP_JOY_BTN8 (MP_JOY_BTN_BASE+8)
-#define MP_JOY_BTN9 (MP_JOY_BTN_BASE+9)
-
-
// Mouse events from VOs
#define MP_MOUSE_BASE ((MP_KEY_BASE+0xA0)|MP_NO_REPEAT_KEY|MP_KEY_EMIT_ON_UP)
#define MP_MOUSE_BTN0 (MP_MOUSE_BASE+0)