comparison input/joystick.h @ 4418:8141d2c399e4

A new configurable input system and joystick support for this system
author albeu
date Wed, 30 Jan 2002 12:46:03 +0000
parents
children 83128eed25f1
comparison
equal deleted inserted replaced
4417:4f507d28716d 4418:8141d2c399e4
1
2 #define JOY_BASE (0x100+128)
3 #define JOY_UP (JOY_BASE+0)
4 #define JOY_DOWN (JOY_BASE+1)
5 #define JOY_LEFT (JOY_BASE+2)
6 #define JOY_RIGHT (JOY_BASE+3)
7
8 #define JOY_BTN0 (JOY_BASE+4)
9 #define JOY_BTN1 (JOY_BASE+5)
10 #define JOY_BTN2 (JOY_BASE+6)
11 #define JOY_BTN3 (JOY_BASE+7)
12 #define JOY_BTN4 (JOY_BASE+8)
13 #define JOY_BTN5 (JOY_BASE+9)
14 #define JOY_BTN6 (JOY_BASE+10)
15 #define JOY_BTN7 (JOY_BASE+11)
16 #define JOY_BTN8 (JOY_BASE+12)
17 #define JOY_BTN9 (JOY_BASE+13)
18
19 int mp_input_joystick_init(char* dev);
20
21 int mp_input_joystick_read(int fd);
22
23