annotate input/joystick.h @ 25847:fe50eaad932d

Use the standard "static inline" instead of some broken ifdef mess
author reimar
date Sun, 27 Jan 2008 11:25:45 +0000
parents 6ac1ece1f9fe
children 4129c8cfa742
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
25553
6ac1ece1f9fe Add multiple inclusion guards to all header files that lack them.
diego
parents: 4657
diff changeset
1 #ifndef JOYSTICK_H
6ac1ece1f9fe Add multiple inclusion guards to all header files that lack them.
diego
parents: 4657
diff changeset
2 #define 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
25553
6ac1ece1f9fe Add multiple inclusion guards to all header files that lack them.
diego
parents: 4657
diff changeset
42 #endif /* JOYSTICK_H */