Mario Kart 64
Loading...
Searching...
No Matches
os_cont.h File Reference
#include <PR/ultratypes.h>
#include "os_message.h"
Include dependency graph for os_cont.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAXCONTROLLERS   4
 
#define CONT_NO_RESPONSE_ERROR   0x8
 
#define CONT_OVERRUN_ERROR   0x4
 
#define CONT_ABSOLUTE   0x0001
 
#define CONT_RELATIVE   0x0002
 
#define CONT_JOYPORT   0x0004
 
#define CONT_EEPROM   0x8000
 
#define CONT_EEP16K   0x4000
 
#define CONT_TYPE_MASK   0x1f07
 
#define CONT_TYPE_NORMAL   0x0005
 
#define CONT_TYPE_MOUSE   0x0002
 
#define CONT_TYPE_VOICE   0x0100
 
#define CONT_CARD_ON   0x01
 
#define CONT_CARD_PULL   0x02
 
#define CONT_ADDR_CRC_ER   0x04
 
#define CONT_EEPROM_BUSY   0x80
 
#define CONT_A   0x8000
 
#define CONT_B   0x4000
 
#define CONT_G   0x2000
 
#define CONT_START   0x1000
 
#define CONT_UP   0x0800
 
#define CONT_DOWN   0x0400
 
#define CONT_LEFT   0x0200
 
#define CONT_RIGHT   0x0100
 
#define CONT_L   0x0020
 
#define CONT_R   0x0010
 
#define CONT_E   0x0008
 
#define CONT_D   0x0004
 
#define CONT_C   0x0002
 
#define CONT_F   0x0001
 
#define A_BUTTON   CONT_A
 
#define B_BUTTON   CONT_B
 
#define L_TRIG   CONT_L
 
#define R_TRIG   CONT_R
 
#define Z_TRIG   CONT_G
 
#define START_BUTTON   CONT_START
 
#define U_JPAD   CONT_UP
 
#define L_JPAD   CONT_LEFT
 
#define R_JPAD   CONT_RIGHT
 
#define D_JPAD   CONT_DOWN
 
#define U_CBUTTONS   CONT_E
 
#define L_CBUTTONS   CONT_C
 
#define R_CBUTTONS   CONT_F
 
#define D_CBUTTONS   CONT_D
 
#define CONT_ERR_NO_CONTROLLER   PFS_ERR_NOPACK /* 1 */
 
#define CONT_ERR_CONTRFAIL   CONT_OVERRUN_ERROR /* 4 */
 
#define CONT_ERR_INVALID   PFS_ERR_INVALID /* 5 */
 
#define CONT_ERR_DEVICE   PFS_ERR_DEVICE /* 11 */
 
#define CONT_ERR_NOT_READY   12
 
#define CONT_ERR_VOICE_MEMORY   13
 
#define CONT_ERR_VOICE_WORD   14
 
#define CONT_ERR_VOICE_NO_RESPONSE   15
 

Macro Definition Documentation

◆ A_BUTTON

#define A_BUTTON   CONT_A

◆ B_BUTTON

#define B_BUTTON   CONT_B

◆ CONT_A

#define CONT_A   0x8000

◆ CONT_ABSOLUTE

#define CONT_ABSOLUTE   0x0001

◆ CONT_ADDR_CRC_ER

#define CONT_ADDR_CRC_ER   0x04

◆ CONT_B

#define CONT_B   0x4000

◆ CONT_C

#define CONT_C   0x0002

◆ CONT_CARD_ON

#define CONT_CARD_ON   0x01

◆ CONT_CARD_PULL

#define CONT_CARD_PULL   0x02

◆ CONT_D

#define CONT_D   0x0004

◆ CONT_DOWN

#define CONT_DOWN   0x0400

◆ CONT_E

#define CONT_E   0x0008

◆ CONT_EEP16K

#define CONT_EEP16K   0x4000

◆ CONT_EEPROM

#define CONT_EEPROM   0x8000

◆ CONT_EEPROM_BUSY

#define CONT_EEPROM_BUSY   0x80

◆ CONT_ERR_CONTRFAIL

#define CONT_ERR_CONTRFAIL   CONT_OVERRUN_ERROR /* 4 */

◆ CONT_ERR_DEVICE

#define CONT_ERR_DEVICE   PFS_ERR_DEVICE /* 11 */

◆ CONT_ERR_INVALID

#define CONT_ERR_INVALID   PFS_ERR_INVALID /* 5 */

◆ CONT_ERR_NO_CONTROLLER

#define CONT_ERR_NO_CONTROLLER   PFS_ERR_NOPACK /* 1 */

◆ CONT_ERR_NOT_READY

#define CONT_ERR_NOT_READY   12

◆ CONT_ERR_VOICE_MEMORY

#define CONT_ERR_VOICE_MEMORY   13

◆ CONT_ERR_VOICE_NO_RESPONSE

#define CONT_ERR_VOICE_NO_RESPONSE   15

◆ CONT_ERR_VOICE_WORD

#define CONT_ERR_VOICE_WORD   14

◆ CONT_F

#define CONT_F   0x0001

◆ CONT_G

#define CONT_G   0x2000

◆ CONT_JOYPORT

#define CONT_JOYPORT   0x0004

◆ CONT_L

#define CONT_L   0x0020

◆ CONT_LEFT

#define CONT_LEFT   0x0200

◆ CONT_NO_RESPONSE_ERROR

#define CONT_NO_RESPONSE_ERROR   0x8

◆ CONT_OVERRUN_ERROR

#define CONT_OVERRUN_ERROR   0x4

◆ CONT_R

#define CONT_R   0x0010

◆ CONT_RELATIVE

#define CONT_RELATIVE   0x0002

◆ CONT_RIGHT

#define CONT_RIGHT   0x0100

◆ CONT_START

#define CONT_START   0x1000

◆ CONT_TYPE_MASK

#define CONT_TYPE_MASK   0x1f07

◆ CONT_TYPE_MOUSE

#define CONT_TYPE_MOUSE   0x0002

◆ CONT_TYPE_NORMAL

#define CONT_TYPE_NORMAL   0x0005

◆ CONT_TYPE_VOICE

#define CONT_TYPE_VOICE   0x0100

◆ CONT_UP

#define CONT_UP   0x0800

◆ D_CBUTTONS

#define D_CBUTTONS   CONT_D

◆ D_JPAD

#define D_JPAD   CONT_DOWN

◆ L_CBUTTONS

#define L_CBUTTONS   CONT_C

◆ L_JPAD

#define L_JPAD   CONT_LEFT

◆ L_TRIG

#define L_TRIG   CONT_L

◆ MAXCONTROLLERS

#define MAXCONTROLLERS   4

◆ R_CBUTTONS

#define R_CBUTTONS   CONT_F

◆ R_JPAD

#define R_JPAD   CONT_RIGHT

◆ R_TRIG

#define R_TRIG   CONT_R

◆ START_BUTTON

#define START_BUTTON   CONT_START

◆ U_CBUTTONS

#define U_CBUTTONS   CONT_E

◆ U_JPAD

#define U_JPAD   CONT_UP

◆ Z_TRIG

#define Z_TRIG   CONT_G