gl_common.h: Add () around macro arguments.
[mplayer/glamo.git] / input / joystick.h
blob996f0fed212c91d5c196f5f345be366f3e9a3955
1 /*
2 * This file is part of MPlayer.
4 * MPlayer is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * MPlayer is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #ifndef MPLAYER_JOYSTICK_H
20 #define MPLAYER_JOYSTICK_H
22 #define JOY_BASE (0x100+128)
23 #define JOY_AXIS0_PLUS (JOY_BASE+0)
24 #define JOY_AXIS0_MINUS (JOY_BASE+1)
25 #define JOY_AXIS1_PLUS (JOY_BASE+2)
26 #define JOY_AXIS1_MINUS (JOY_BASE+3)
27 #define JOY_AXIS2_PLUS (JOY_BASE+4)
28 #define JOY_AXIS2_MINUS (JOY_BASE+5)
29 #define JOY_AXIS3_PLUS (JOY_BASE+6)
30 #define JOY_AXIS3_MINUS (JOY_BASE+7)
31 #define JOY_AXIS4_PLUS (JOY_BASE+8)
32 #define JOY_AXIS4_MINUS (JOY_BASE+9)
33 #define JOY_AXIS5_PLUS (JOY_BASE+10)
34 #define JOY_AXIS5_MINUS (JOY_BASE+11)
35 #define JOY_AXIS6_PLUS (JOY_BASE+12)
36 #define JOY_AXIS6_MINUS (JOY_BASE+13)
37 #define JOY_AXIS7_PLUS (JOY_BASE+14)
38 #define JOY_AXIS7_MINUS (JOY_BASE+15)
39 #define JOY_AXIS8_PLUS (JOY_BASE+16)
40 #define JOY_AXIS8_MINUS (JOY_BASE+17)
41 #define JOY_AXIS9_PLUS (JOY_BASE+18)
42 #define JOY_AXIS9_MINUS (JOY_BASE+19)
44 #define JOY_BTN_BASE ((0x100+148)|MP_NO_REPEAT_KEY)
45 #define JOY_BTN0 (JOY_BTN_BASE+0)
46 #define JOY_BTN1 (JOY_BTN_BASE+1)
47 #define JOY_BTN2 (JOY_BTN_BASE+2)
48 #define JOY_BTN3 (JOY_BTN_BASE+3)
49 #define JOY_BTN4 (JOY_BTN_BASE+4)
50 #define JOY_BTN5 (JOY_BTN_BASE+5)
51 #define JOY_BTN6 (JOY_BTN_BASE+6)
52 #define JOY_BTN7 (JOY_BTN_BASE+7)
53 #define JOY_BTN8 (JOY_BTN_BASE+8)
54 #define JOY_BTN9 (JOY_BTN_BASE+9)
56 int mp_input_joystick_init(char* dev);
58 int mp_input_joystick_read(void *ctx, int fd);
60 #endif /* MPLAYER_JOYSTICK_H */