1 #ifndef DEVICES_GAMEPORT_H 2 #define DEVICES_GAMEPORT_H 3 4 /* 5 gameport.device include 6 7 Copyright © 2002 The MorphOS Development Team, All Rights Reserved. 8 */ 9 10 #ifndef EXEC_TYPES_H 11 # include <exec/types.h> 12 #endif 13 14 #ifndef EXEC_IO_H 15 # include <exec/io.h> 16 #endif 17 18 #pragma pack(2) 19 20 21 #define GPD_READEVENT (CMD_NONSTD + 0) 22 #define GPD_ASKCTYPE (CMD_NONSTD + 1) 23 #define GPD_SETCTYPE (CMD_NONSTD + 2) 24 #define GPD_ASKTRIGGER (CMD_NONSTD + 3) 25 #define GPD_SETTRIGGER (CMD_NONSTD + 4) 26 27 28 #define GPTB_DOWNKEYS 0 29 #define GPTF_DOWNKEYS (1<<GPTB_DOWNKEYS) 30 #define GPTB_UPKEYS 1 31 #define GPTF_UPKEYS (1<<GPTB_UPKEYS) 32 33 34 struct GamePortTrigger 35 { 36 UWORD gpt_Keys; 37 UWORD gpt_Timeout; 38 UWORD gpt_XDelta; 39 UWORD gpt_YDelta; 40 }; 41 42 43 #define GPCT_ALLOCATED -1 44 #define GPCT_NOCONTROLLER 0 45 46 #define GPCT_MOUSE 1 47 #define GPCT_RELJOYSTICK 2 48 #define GPCT_ABSJOYSTICK 3 49 50 51 #define GPDERR_SETCTYPE 1 52 53 54 #pragma pack() 55 56 #endif /* DEVICES_GAMEPORT_H */