Mercurial > mplayer.hg
annotate input/joystick.h @ 20970:5e7183c4d01c
r20972: defined MSGTR_OSDVideo
r20969: document new key binding for switching video streams in MPEG-TS
author | voroshil |
---|---|
date | Fri, 17 Nov 2006 14:57:12 +0000 |
parents | 610a11e4db36 |
children | 6ac1ece1f9fe |
rev | line source |
---|---|
4418
8141d2c399e4
A new configurable input system and joystick support for this system
albeu
parents:
diff
changeset
|
1 |
8141d2c399e4
A new configurable input system and joystick support for this system
albeu
parents:
diff
changeset
|
2 #define JOY_BASE (0x100+128) |
4518
83128eed25f1
Corrected the quit bug and added support for up to 10 axis
albeu
parents:
4418
diff
changeset
|
3 #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
|
4 #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
|
5 #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
|
6 #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
|
7 #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
|
8 #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
|
9 #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
|
10 #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
|
11 #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
|
12 #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
|
13 #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
|
14 #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
|
15 #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
|
16 #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
|
17 #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
|
18 #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
|
19 #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
|
20 #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
|
21 #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
|
22 #define JOY_AXIS9_MINUS (JOY_BASE+19) |
4418
8141d2c399e4
A new configurable input system and joystick support for this system
albeu
parents:
diff
changeset
|
23 |
4657
610a11e4db36
Added key autorepeat support. Options to enable/disable joystick and lirc
albeu
parents:
4524
diff
changeset
|
24 #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
|
25 #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
|
26 #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
|
27 #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
|
28 #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
|
29 #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
|
30 #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
|
31 #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
|
32 #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
|
33 #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
|
34 #define JOY_BTN9 (JOY_BTN_BASE+9) |
4418
8141d2c399e4
A new configurable input system and joystick support for this system
albeu
parents:
diff
changeset
|
35 |
8141d2c399e4
A new configurable input system and joystick support for this system
albeu
parents:
diff
changeset
|
36 int mp_input_joystick_init(char* dev); |
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_read(int fd); |
8141d2c399e4
A new configurable input system and joystick support for this system
albeu
parents:
diff
changeset
|
39 |