moved linux-specific defs out of joy.h
[btb/d2x.git] / input / linux / include / linux_joystick.h
1 typedef struct joystick_device {
2         int             device_number;
3         int             version;
4         int             buffer;
5         char            num_buttons;
6         char            num_axes;
7 } joystick_device;
8
9 typedef struct joystick_axis {
10         int             value;
11         int             min_val;
12         int             center_val;
13         int             max_val;
14         int             joydev;
15 } joystick_axis;
16
17 typedef struct joystick_button {
18         ubyte           state;
19         ubyte           last_state;
20 //changed 6/24/1999 to finally squish the timedown bug - Owen Evans 
21         fix             timedown;
22 //end changed - OE
23         ubyte           downcount;
24         int             num;
25         int             joydev;
26 } joystick_button;
27
28 extern int j_num_axes;
29 extern int j_num_buttons;
30
31 extern joystick_device j_joystick[4];
32 extern joystick_axis j_axis[MAX_AXES];
33 extern joystick_button j_button[MAX_BUTTONS];
34
35 extern int j_Update_state ();
36 extern int j_Get_joydev_axis_number (int all_axis_number);
37 extern int j_Get_joydev_button_number (int all_button_number);
38
39 extern void joy_set_min (int axis_number, int value);
40 extern void joy_set_center (int axis_number, int value);
41 extern void joy_set_max (int axis_number, int value);