1.1 --- a/src/maple/controller.h Sun Dec 25 08:24:11 2005 +0000
1.2 +++ b/src/maple/controller.h Thu Jun 15 10:33:08 2006 +0000
1.5 - * $Id: controller.h,v 1.2 2005-12-25 08:24:11 nkeynes Exp $
1.6 + * $Id: controller.h,v 1.3 2006-05-20 02:40:51 nkeynes Exp $
1.8 * Definitions for the standard controller device
1.11 /* Second word of controller condition (bitmasks) */
1.12 #define JOY_X_AXIS 0x000000FF
1.13 #define JOY_Y_AXIS 0x0000FF00
1.14 +#define JOY_X_AXIS_CENTER 0x00000080
1.15 +#define JOY_Y_AXIS_CENTER 0x00008000
1.16 #define JOY2_X_AXIS 0x00FF0000 /* not on standard controller */
1.17 #define JOY2_Y_AXIS 0xFF000000 /* not on standard controller */
1.19 +/* The following bits are used by the emulator for flags but don't actually
1.20 + * appear in the hardware
1.22 +#define JOY_LEFT 0x80000001
1.23 +#define JOY_RIGHT 0x80000002
1.24 +#define JOY_UP 0x80000004
1.25 +#define JOY_DOWN 0x80000008
1.27 /* Standard controller ID */
1.28 #define CONTROLLER_IDENT {0x00, 0x00, 0x00, 0x01, 0x00, 0x0f, 0x06, 0xfe, 0x00, 0x00, 0x00, 0x00, \
1.29 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0x44, 0x72, 0x65, 0x61, 0x6d, 0x63, 0x61, 0x73, 0x74, 0x20, \