summaryrefslogtreecommitdiffstats
path: root/input/joystick.h
diff options
context:
space:
mode:
authoralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-30 12:46:03 +0000
committeralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-30 12:46:03 +0000
commitf60af655fb185975a92373e4263f2a862dbcc8da (patch)
tree80bd450e58b0cd102e1cfd6eaa4e9d287dce00d1 /input/joystick.h
parent50d37d64a4178810b66d96a3f434e49ff692a8f1 (diff)
downloadmpv-f60af655fb185975a92373e4263f2a862dbcc8da.tar.bz2
mpv-f60af655fb185975a92373e4263f2a862dbcc8da.tar.xz
A new configurable input system and joystick support for this system
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4419 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'input/joystick.h')
-rw-r--r--input/joystick.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/input/joystick.h b/input/joystick.h
new file mode 100644
index 0000000000..537c333f03
--- /dev/null
+++ b/input/joystick.h
@@ -0,0 +1,23 @@
+
+#define JOY_BASE (0x100+128)
+#define JOY_UP (JOY_BASE+0)
+#define JOY_DOWN (JOY_BASE+1)
+#define JOY_LEFT (JOY_BASE+2)
+#define JOY_RIGHT (JOY_BASE+3)
+
+#define JOY_BTN0 (JOY_BASE+4)
+#define JOY_BTN1 (JOY_BASE+5)
+#define JOY_BTN2 (JOY_BASE+6)
+#define JOY_BTN3 (JOY_BASE+7)
+#define JOY_BTN4 (JOY_BASE+8)
+#define JOY_BTN5 (JOY_BASE+9)
+#define JOY_BTN6 (JOY_BASE+10)
+#define JOY_BTN7 (JOY_BASE+11)
+#define JOY_BTN8 (JOY_BASE+12)
+#define JOY_BTN9 (JOY_BASE+13)
+
+int mp_input_joystick_init(char* dev);
+
+int mp_input_joystick_read(int fd);
+
+