1 #ifndef DEVICES_GAMEPORT_H
2 #define DEVICES_GAMEPORT_H
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
8 Desc: Important defines and structures for gameport.device
14 /**********************************************************************
15 ********************** Gameport Device Commands **********************
16 **********************************************************************/
18 #define GPD_READEVENT (CMD_NONSTD + 0)
19 #define GPD_ASKCTYPE (CMD_NONSTD + 1)
20 #define GPD_SETCTYPE (CMD_NONSTD + 2)
21 #define GPD_ASKTRIGGER (CMD_NONSTD + 3)
22 #define GPD_SETTRIGGER (CMD_NONSTD + 4)
24 /********************************************************
25 ********************** Structures **********************
26 ********************************************************/
28 #define GPTB_DOWNKEYS 0
31 #define GPTF_DOWNKEYS (1 << GPTB_DOWNKEYS)
32 #define GPTF_UPKEYS (1 << GPTB_UPKEYS)
34 struct GamePortTrigger
43 /**************************************************************
44 ********************** Controller Types **********************
45 **************************************************************/
47 #define GPCT_ALLOCATED -1
48 #define GPCT_NOCONTROLLER 0
50 #define GPCT_RELJOYSTICK 2
51 #define GPCT_ABSJOYSTICK 3
53 #endif /* DEVICES_GAMEPORT_H */