Indentation fix, cleanup.
[AROS.git] / rom / devs / gameport / include / gameport.h
blob4539060d189e7c4430aad088f7ea8a62676d14d5
1 #ifndef DEVICES_GAMEPORT_H
2 #define DEVICES_GAMEPORT_H
4 /*
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: Important defines and structures for gameport.device
9 Lang: english
12 #include <exec/io.h>
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
29 #define GPTB_UPKEYS 1
31 #define GPTF_DOWNKEYS (1 << GPTB_DOWNKEYS)
32 #define GPTF_UPKEYS (1 << GPTB_UPKEYS)
34 struct GamePortTrigger
36 UWORD gpt_Keys;
37 UWORD gpt_Timeout;
38 UWORD gpt_XDelta;
39 UWORD gpt_YDelta;
43 /**************************************************************
44 ********************** Controller Types **********************
45 **************************************************************/
47 #define GPCT_ALLOCATED -1
48 #define GPCT_NOCONTROLLER 0
49 #define GPCT_MOUSE 1
50 #define GPCT_RELJOYSTICK 2
51 #define GPCT_ABSJOYSTICK 3
53 #endif /* DEVICES_GAMEPORT_H */