Search
lxdream.org :: lxdream/src/maple/controller.h
lxdream 0.9.1
released Jun 29
Download Now
filename src/maple/controller.h
changeset 2:42349f6ea216
next31:495e480360d7
author nkeynes
date Sat Aug 21 06:15:49 2004 +0000 (15 years ago)
permissions -rw-r--r--
last change Commit changes into cvs
file annotate diff log raw
nkeynes@2
     1
/* First word of controller condition */
nkeynes@2
     2
#define BUTTON_C            0x00000001 /* not on standard controller */
nkeynes@2
     3
#define BUTTON_B            0x00000002
nkeynes@2
     4
#define BUTTON_A            0x00000004
nkeynes@2
     5
#define BUTTON_START        0x00000008
nkeynes@2
     6
#define BUTTON_DPAD_UP      0x00000010
nkeynes@2
     7
#define BUTTON_DPAD_DOWN    0x00000020
nkeynes@2
     8
#define BUTTON_DPAD_LEFT    0x00000040
nkeynes@2
     9
#define BUTTON_DPAD_RIGHT   0x00000080
nkeynes@2
    10
#define BUTTON_Z            0x00000100 /* not on standard controller */
nkeynes@2
    11
#define BUTTON_Y            0x00000200
nkeynes@2
    12
#define BUTTON_X            0x00000400
nkeynes@2
    13
#define BUTTON_D            0x00000800 /* not on standard controller */
nkeynes@2
    14
#define BUTTON_LEFT_TRIGGER 0xFF000000 /* Bitmask */
nkeynes@2
    15
#define BUTTON_RIGHT_TRIGGER 0x00FF0000 /* Bitmask */
nkeynes@2
    16
nkeynes@2
    17
/* Second word of controller condition (bitmasks) */
nkeynes@2
    18
#define JOY_X_AXIS          0x000000FF
nkeynes@2
    19
#define JOY_Y_AXIS          0x0000FF00
nkeynes@2
    20
#define JOY2_X_AXIS         0x00FF0000 /* not on standard controller */
nkeynes@2
    21
#define JOY2_Y_AXIS         0xFF000000 /* not on standard controller */
nkeynes@2
    22
nkeynes@2
    23
/* Standard controller ID */
nkeynes@2
    24
#define CONTROLLER_IDENT {0x00, 0x00, 0x00, 0x01,  0x00, 0x0f, 0x06, 0xfe,  0x00, 0x00, 0x00, 0x00, \
nkeynes@2
    25
0x00, 0x00, 0x00, 0x00,  0xff, 0x00, 0x44, 0x72,  0x65, 0x61, 0x6d, 0x63,  0x61, 0x73, 0x74, 0x20,  \
nkeynes@2
    26
 0x43, 0x6f, 0x6e, 0x74,  0x72, 0x6f, 0x6c, 0x6c,  0x65, 0x72, 0x20, 0x20,  0x20, 0x20, 0x20, 0x20, \
nkeynes@2
    27
 0x20, 0x20, 0x20, 0x20,  0x50, 0x72, 0x6f, 0x64,  0x75, 0x63, 0x65, 0x64,  0x20, 0x42, 0x79, 0x20, \
nkeynes@2
    28
 0x6f, 0x72, 0x20, 0x55,  0x6e, 0x64, 0x65, 0x72,  0x20, 0x4c, 0x69, 0x63,  0x65, 0x6e, 0x73, 0x65, \
nkeynes@2
    29
 0x20, 0x46, 0x72, 0x6f,  0x6d, 0x20, 0x53, 0x45,  0x47, 0x41, 0x20, 0x45,  0x4e, 0x54, 0x45, 0x52, \
nkeynes@2
    30
 0x50, 0x52, 0x49, 0x53,  0x45, 0x53, 0x2c, 0x4c,  0x54, 0x44, 0x2e, 0x20,  0x20, 0x20, 0x20, 0x20, \
nkeynes@2
    31
            0xae, 0x01, 0xf4, 0x01}
nkeynes@2
    32
#define CONTROLLER_VERSION {0x56, 0x65, 0x72, 0x73,  0x69, 0x6f, 0x6e, 0x20,  0x31, 0x2e, 0x30, 0x31, \
nkeynes@2
    33
 0x30, 0x2c, 0x31, 0x39,  0x39, 0x38, 0x2f, 0x30,  0x39, 0x2f, 0x32, 0x38,  0x2c, 0x33, 0x31, 0x35, \
nkeynes@2
    34
 0x2d, 0x36, 0x32, 0x31,  0x31, 0x2d, 0x41, 0x42,  0x20, 0x20, 0x20, 0x2c,  0x41, 0x6e, 0x61, 0x6c, \
nkeynes@2
    35
 0x6f, 0x67, 0x20, 0x4d,  0x6f, 0x64, 0x75, 0x6c,  0x65, 0x20, 0x3a, 0x20,  0x54, 0x68, 0x65, 0x20, \
nkeynes@2
    36
 0x34, 0x74, 0x68, 0x20,  0x45, 0x64, 0x69, 0x74,  0x69, 0x6f, 0x6e, 0x2e,  0x35, 0x2f, 0x38, 0x20, \
nkeynes@2
    37
            0x20, 0x2b, 0x44, 0x46 }
.