KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches

VMU button masks More...

Data Structures

struct  vmu_cond_t
 VMU's raw condition data: 0 = PRESSED, 1 = RELEASED. More...
 
union  vmu_state_t
 VMU's "civilized" state data: 0 = RELEASED, 1 = PRESSED. More...
 

Macros

#define VMU_DPAD_UP   (0<<1)
 Up Dpad button on the VMU.
 
#define VMU_DPAD_DOWN   (1<<1)
 Down Dpad button on the VMU.
 
#define VMU_DPAD_LEFT   (2<<1)
 Left Dpad button on the VMU.
 
#define VMU_DPAD_RIGHT   (3<<1)
 Right Dpad button on the VMU.
 
#define VMU_A   (4<<1)
 'A' button on the VMU
 
#define VMU_B   (5<<1)
 'B' button on the VMU
 
#define VMU_MODE   (6<<1)
 Mode button on the VMU.
 
#define VMU_SLEEP   (7<<1)
 Sleep button on the VMU.
 

Detailed Description

VMU button masks

VMU's button state/cond masks, same as capability masks

Note
The MODE and SLEEP button states are not pollable on a standard VMU.

Macro Definition Documentation

◆ VMU_A

#define VMU_A   (4<<1)

'A' button on the VMU

◆ VMU_B

#define VMU_B   (5<<1)

'B' button on the VMU

◆ VMU_DPAD_DOWN

#define VMU_DPAD_DOWN   (1<<1)

Down Dpad button on the VMU.

◆ VMU_DPAD_LEFT

#define VMU_DPAD_LEFT   (2<<1)

Left Dpad button on the VMU.

◆ VMU_DPAD_RIGHT

#define VMU_DPAD_RIGHT   (3<<1)

Right Dpad button on the VMU.

◆ VMU_DPAD_UP

#define VMU_DPAD_UP   (0<<1)

Up Dpad button on the VMU.

◆ VMU_MODE

#define VMU_MODE   (6<<1)

Mode button on the VMU.

◆ VMU_SLEEP

#define VMU_SLEEP   (7<<1)

Sleep button on the VMU.