Mercurial > mplayer.hg
annotate input/joystick.h @ 26992:d0c873ddfaef
Only check for VIDIX PCI device name database if VIDIX is enabled.
author | diego |
---|---|
date | Sat, 07 Jun 2008 14:00:04 +0000 |
parents | 4129c8cfa742 |
children | 142c53391eb7 |
rev | line source |
---|---|
26029 | 1 #ifndef MPLAYER_JOYSTICK_H |
2 #define MPLAYER_JOYSTICK_H | |
4418
8141d2c399e4
A new configurable input system and joystick support for this system
albeu
parents:
diff
changeset
|
3 |
8141d2c399e4
A new configurable input system and joystick support for this system
albeu
parents:
diff
changeset
|
4 #define JOY_BASE (0x100+128) |
4518
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
5 #define JOY_AXIS0_PLUS (JOY_BASE+0) |
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
6 #define JOY_AXIS0_MINUS (JOY_BASE+1) |
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
7 #define JOY_AXIS1_PLUS (JOY_BASE+2) |
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
8 #define JOY_AXIS1_MINUS (JOY_BASE+3) |
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
9 #define JOY_AXIS2_PLUS (JOY_BASE+4) |
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
10 #define JOY_AXIS2_MINUS (JOY_BASE+5) |
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
11 #define JOY_AXIS3_PLUS (JOY_BASE+6) |
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
12 #define JOY_AXIS3_MINUS (JOY_BASE+7) |
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
13 #define JOY_AXIS4_PLUS (JOY_BASE+8) |
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
14 #define JOY_AXIS4_MINUS (JOY_BASE+9) |
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
15 #define JOY_AXIS5_PLUS (JOY_BASE+10) |
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
16 #define JOY_AXIS5_MINUS (JOY_BASE+11) |
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
17 #define JOY_AXIS6_PLUS (JOY_BASE+12) |
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
18 #define JOY_AXIS6_MINUS (JOY_BASE+13) |
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
19 #define JOY_AXIS7_PLUS (JOY_BASE+14) |
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
20 #define JOY_AXIS7_MINUS (JOY_BASE+15) |
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
21 #define JOY_AXIS8_PLUS (JOY_BASE+16) |
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
22 #define JOY_AXIS8_MINUS (JOY_BASE+17) |
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
23 #define JOY_AXIS9_PLUS (JOY_BASE+18) |
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
24 #define JOY_AXIS9_MINUS (JOY_BASE+19) |
4418
8141d2c399e4
A new configurable input system and joystick support for this system
albeu
parents:
diff
changeset
|
25 |
4657
610a11e4db36
Added key autorepeat support. Options to enable/disable joystick and lirc
albeu
parents:
4524
diff
changeset
|
26 #define JOY_BTN_BASE ((0x100+148)|MP_NO_REPEAT_KEY) |
4518
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
27 #define JOY_BTN0 (JOY_BTN_BASE+0) |
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
28 #define JOY_BTN1 (JOY_BTN_BASE+1) |
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
29 #define JOY_BTN2 (JOY_BTN_BASE+2) |
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
30 #define JOY_BTN3 (JOY_BTN_BASE+3) |
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
31 #define JOY_BTN4 (JOY_BTN_BASE+4) |
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
32 #define JOY_BTN5 (JOY_BTN_BASE+5) |
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
33 #define JOY_BTN6 (JOY_BTN_BASE+6) |
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
34 #define JOY_BTN7 (JOY_BTN_BASE+7) |
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
35 #define JOY_BTN8 (JOY_BTN_BASE+8) |
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
36 #define JOY_BTN9 (JOY_BTN_BASE+9) |
4418
8141d2c399e4
A new configurable input system and joystick support for this system
albeu
parents:
diff
changeset
|
37 |
8141d2c399e4
A new configurable input system and joystick support for this system
albeu
parents:
diff
changeset
|
38 int mp_input_joystick_init(char* dev); |
8141d2c399e4
A new configurable input system and joystick support for this system
albeu
parents:
diff
changeset
|
39 |
8141d2c399e4
A new configurable input system and joystick support for this system
albeu
parents:
diff
changeset
|
40 int mp_input_joystick_read(int fd); |
8141d2c399e4
A new configurable input system and joystick support for this system
albeu
parents:
diff
changeset
|
41 |
26029 | 42 #endif /* MPLAYER_JOYSTICK_H */ |