revert commit 56204.
[AROS.git] / rom / usb / classes / arosx / include / arosx.h
blobfcf15e2490970f2ae58b9a795bfef74ada5b8c2e
1 #ifndef AROSX_LIBRARY_H
2 #define AROSX_LIBRARY_H
4 #include <exec/types.h>
6 #define AROSX_CONTROLLER_TYPE_UNKNOWN 0x00
7 #define AROSX_CONTROLLER_TYPE_GAMEPAD 0x01
9 #define AROSX_GAMEPAD_DPAD_UP 0x0001
10 #define AROSX_GAMEPAD_DPAD_DOWN 0x0002
11 #define AROSX_GAMEPAD_DPAD_LEFT 0x0004
12 #define AROSX_GAMEPAD_DPAD_RIGHT 0x0008
13 #define AROSX_GAMEPAD_START 0x0010
14 #define AROSX_GAMEPAD_BACK 0x0020
15 #define AROSX_GAMEPAD_LEFT_THUMB 0x0040
16 #define AROSX_GAMEPAD_RIGHT_THUMB 0x0080
17 #define AROSX_GAMEPAD_LEFT_SHOULDER 0x0100
18 #define AROSX_GAMEPAD_RIGHT_SHOULDER 0x0200
19 #define AROSX_GAMEPAD_A 0x1000
20 #define AROSX_GAMEPAD_B 0x2000
21 #define AROSX_GAMEPAD_X 0x4000
22 #define AROSX_GAMEPAD_Y 0x8000
24 struct AROSX_GAMEPAD {
25 ULONG Timestamp;
26 UWORD Buttons;
27 UBYTE LeftTrigger;
28 UBYTE RightTrigger;
29 WORD ThumbLX;
30 WORD ThumbLY;
31 WORD ThumbRX;
32 WORD ThumbRY;
35 #define AROSX_EHMB_CONNECT 0x00
36 #define AROSX_EHMB_DISCONNECT 0x01
37 #define AROSX_EHMF_CONNECT (1L<<AROSX_EHMB_CONNECT)
38 #define AROSX_EHMF_DISCONNECT (1L<<AROSX_EHMB_DISCONNECT)
40 struct AROSX_EventHook {
41 struct Node eh_Node;
42 struct MsgPort *eh_MsgPort;
43 ULONG eh_MsgMask;
46 struct AROSX_EventNote {
47 struct Message en_Msg;
48 ULONG en_Event;
49 APTR en_Param1;
50 APTR en_Param2;
53 #endif /* AROSX_LIBRARY_H */