vcmbox -> mbox
[AROS.git] / compiler / include / libraries / lowlevel_ext.h
blobebec0f9bab60b5854ca568dfbd6c07bfab2530ff
1 #ifndef LIBRARIES_LOWLEVEL_EXT_H
2 #define LIBRARIES_LOWLEVEL_EXT_H
4 /*
5 ** $VER: lowlevel_ext.h 40.6 (30.7.1993)
6 ** Includes Release 50.x
7 **
8 ** extended lowlevel.library interface structures and definitions.
9 **
10 ** (C) Copyright 2004 Chris Hodges
11 ** All Rights Reserved
14 /*****************************************************************************/
17 #ifndef EXEC_TYPES_H
18 #include <exec/types.h>
19 #endif
21 #ifndef LIBRARIES_LOWLEVEL_H
22 #include <libraries/lowlevel.h>
23 #endif
25 /*****************************************************************************/
27 /* New Tags for SetJoyPortAttrs() */
28 #define SJA_RumbleSetSlowMotor (SJA_Dummy+100) /* set rumble pack slow motor speed (0x00-0xff) */
29 #define SJA_RumbleSetFastMotor (SJA_Dummy+101) /* set rumble pack fast motor speed (0x00-0xff) */
30 #define SJA_RumbleOff (SJA_Dummy+102) /* turn rumble effect off */
32 /* New Controller types for SJA_Type tag */
33 #define SJA_TYPE_ANALOGUE 14
35 /*****************************************************************************/
37 /* New ReadJoyPort() return value definitions */
39 /* Port types */
40 #define JP_TYPE_ANALOGUE (14<<28) /* port has analogue joystick */
42 /* Analogue joystick position reports, valid for JP_TYPE_ANALOGUE */
43 #define JP_XAXIS_MASK (255<<0) /* horizontal position */
44 #define JP_YAXIS_MASK (255<<8) /* vertical position */
45 #define JP_XYAXIS_MASK (JP_XAXIS_MASK|JP_YAXIS_MASK)
47 /*****************************************************************************/
49 #define JP_ANALOGUE_PORT_MAGIC (1<<16) /* port offset to force analogue readout */
51 #endif /* LIBRARIES_LOWLEVEL_EXT_H */