|
|
#define | JOYBUS_TYPE_N64_MASK 0x1f07 |
| | N64 device type mask.
|
|
#define | JOYBUS_TYPE_N64_ABSOLUTE 0x0001 |
| | N64 device reports absolute position.
|
|
#define | JOYBUS_TYPE_N64_RELATIVE 0x0002 |
| | N64 device reports relative position.
|
|
#define | JOYBUS_TYPE_N64_JOYPORT 0x0004 |
| | N64 device has a Joyport (pak port)
|
|
#define | JOYBUS_TYPE_N64_VRU 0x0100 |
| | N64 Voice Recognition Unit (NUS-020)
|
|
#define | JOYBUS_TYPE_N64_KEYBOARD 0x0200 |
| | N64 Randnet Keyboard (RND-001)
|
|
#define | JOYBUS_TYPE_GBA_CABLE 0x0400 |
| | GBA connected via GameCube Game Boy Advance cable (DOL-011)
|
|
#define | JOYBUS_TYPE_N64_RTC 0x1000 |
| | N64 cartridge RTC is present.
|
|
#define | JOYBUS_TYPE_N64_EEPROM_16K 0x4000 |
| | N64 cartridge EEPROM is 16KB (otherwise 4KB)
|
|
#define | JOYBUS_TYPE_N64_EEPROM 0x8000 |
| | N64 cartridge EEPROM is present.
|
|
#define | JOYBUS_TYPE_GCN_MASK 0x0018 |
| | GameCube device type mask.
|
|
#define | JOYBUS_TYPE_GCN_STANDARD 0x0001 |
| | Standard GameCube controller.
|
|
#define | JOYBUS_TYPE_GCN_WIRELESS_STATE 0x0002 |
| | Wireless state available.
|
|
#define | JOYBUS_TYPE_GCN_DEVICE 0x0008 |
| | Device is a GameCube device.
|
|
#define | JOYBUS_TYPE_GCN_NO_MOTOR 0x0020 |
| | No rumble motor present.
|
|
#define | JOYBUS_TYPE_GCN_WIRELESS_RECEIVED 0x0040 |
| | Wireless receiver has received a packet.
|
|
#define | JOYBUS_TYPE_GCN_WIRELESS 0x0080 |
| | Controller is wireless.
|
|
#define | JOYBUS_TYPE_GCN_WIRELESS_ID_FIXED 0x1000 |
| | Wireless ID has been fixed.
|
|
#define | JOYBUS_TYPE_GCN_KEYBOARD 0x2000 |
| | GameCube ASCII keyboard.
|
|
#define | JOYBUS_TYPE_GCN_WIRELESS_ORIGIN 0x2000 |
| | Wireless origin available.
|
|
#define | JOYBUS_TYPE_GCN_WIRELESS_ID_MASK 0xC000 |
| | Top 2 bits of wireless ID.
|
|
#define | JOYBUS_STATUS_N64_PAK_PRESENT 0x01 |
| | Pak present.
|
|
#define | JOYBUS_STATUS_N64_PAK_PULLED 0x02 |
| | Pak removal/change detected.
|
|
#define | JOYBUS_STATUS_N64_ADDR_CHECKSUM_ERROR 0x04 |
| | Address checksum error.
|
|
#define | JOYBUS_STATUS_N64_VRU_INITIALIZED 0x01 |
| | VRU is initialized.
|
|
#define | JOYBUS_STATUS_GCN_ANALOG_MODE_MASK 0x07 |
| | Bits 2–0: Last analog mode.
|
|
#define | JOYBUS_STATUS_GCN_MOTOR_STATE_MASK 0x18 |
| | Bits 4–3: Last motor state.
|
|
#define | JOYBUS_STATUS_GCN_NEED_ORIGIN 0x20 |
| | New origin data available (host should read origin)
|
|
#define | JOYBUS_STATUS_GCN_ERROR_LATCHED 0x40 |
| | Latched error.
|
|
#define | JOYBUS_STATUS_GCN_ERROR 0x80 |
| | Last error.
|
|
#define | JOYBUS_STATUS_GCN_MOTOR_STATE_SHIFT 3 |
|
#define | JOYBUS_STATUS_GCN_ANALOG_MODE_SHIFT 0 |
|
#define | JOYBUS_STATUS_GCN_WIRELESS_ID_MASK 0xFF |
| | Lower 8 bits of wireless ID.
|
|
#define | JOYBUS_DEVICE_N64_CONTROLLER (JOYBUS_TYPE_N64_ABSOLUTE | JOYBUS_TYPE_N64_JOYPORT) |
| | N64 Controller (NUS-005)
|
|
#define | JOYBUS_DEVICE_N64_MOUSE (JOYBUS_TYPE_N64_RELATIVE) |
| | N64 Mouse (NUS-017)
|
|
#define | JOYBUS_DEVICE_GCN_CONTROLLER (JOYBUS_TYPE_GCN_DEVICE | JOYBUS_TYPE_GCN_STANDARD) |
| | GameCube controller (DOL-003)
|
|
#define | JOYBUS_DEVICE_GCN_WAVEBIRD (JOYBUS_TYPE_GCN_DEVICE | JOYBUS_TYPE_GCN_WIRELESS | JOYBUS_TYPE_GCN_NO_MOTOR) |
| | WaveBird receiver (DOL-005)
|
Joybus device identification values and utilities.