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