1 #ifndef LIBRARIES_LOWLEVEL_EXT_H
    2 #define LIBRARIES_LOWLEVEL_EXT_H
    3 
    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
   12 */
   13 
   14 /*****************************************************************************/
   15 
   16 
   17 #ifndef EXEC_TYPES_H
   18 #include <exec/types.h>
   19 #endif
   20 
   21 #ifndef LIBRARIES_LOWLEVEL_H
   22 #include <libraries/lowlevel.h>
   23 #endif
   24 
   25 /*****************************************************************************/
   26 
   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 */
   31 
   32 /* New Controller types for SJA_Type tag */
   33 #define SJA_TYPE_ANALOGUE  14
   34 
   35 /*****************************************************************************/
   36 
   37 /* New ReadJoyPort() return value definitions */
   38 
   39 /* Port types */
   40 #define JP_TYPE_ANALOGUE  (14<<28)	  /* port has analogue joystick  */
   41 
   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)
   46 
   47 /*****************************************************************************/
   48 
   49 #define JP_ANALOGUE_PORT_MAGIC (1<<16) /* port offset to force analogue readout */
   50 
   51 #endif /* LIBRARIES_LOWLEVEL_EXT_H */