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
{
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
{
42 struct MsgPort
*eh_MsgPort
;
46 struct AROSX_EventNote
{
47 struct Message en_Msg
;
53 #endif /* AROSX_LIBRARY_H */