e5d670f20ef6e404348f15964d485432fdae3b00
[tpg/acess2.git] / Usermode / Libraries / ld-acess.so_src / include_exp / acess / devices / joystick.h
1 /*
2  * Acess2 System Calls
3  * - By John Hodge (thePowersGang)
4  *
5  * acess/devices/joystick.h
6  * - Joystick IOCtls and structures
7  */
8 #ifndef _SYS_DEVICES_JOYSTICK_H
9 #define _SYS_DEVICES_JOYSTICK_H
10
11 #if __cplusplus
12 extern "C" {
13 #endif
14
15 #include <stdint.h>
16
17 struct mouse_attribute
18 {
19         uint32_t        Num;
20         uint32_t        Value;
21 };
22
23 struct mouse_header
24 {
25         uint16_t        NAxies;
26         uint16_t        NButtons;
27 };
28
29 struct mouse_axis
30 {
31          int16_t        MinValue;
32          int16_t        MaxValue;
33          int16_t        CurValue;
34         uint16_t        CursorPos;
35 };
36
37 enum {
38         JOY_IOCTL_GETSETAXISLIMIT = 6,
39         JOY_IOCTL_GETSETAXISPOSITION,
40 };
41
42 #if __cplusplus
43 }
44 #endif
45
46 #endif
47

UCC git Repository :: git.ucc.asn.au