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

VMU button masks More...

Data Structures

union  vmu_buttons_t
 Represents the combined state of all VMU buttons. More...
 
struct  vmu_state_t
 "Civilized" structure containing VMU's current state. More...
 

Macros

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

'A' button on the VMU

◆ VMU_B

#define VMU_B   BIT(5)

'B' button on the VMU

◆ VMU_DPAD_DOWN

#define VMU_DPAD_DOWN   BIT(1)

Down Dpad button on the VMU.

◆ VMU_DPAD_LEFT

#define VMU_DPAD_LEFT   BIT(2)

Left Dpad button on the VMU.

◆ VMU_DPAD_RIGHT

#define VMU_DPAD_RIGHT   BIT(3)

Right Dpad button on the VMU.

◆ VMU_DPAD_UP

#define VMU_DPAD_UP   BIT(0)

Up Dpad button on the VMU.

◆ VMU_MODE

#define VMU_MODE   BIT(6)

Mode button on the VMU.

◆ VMU_SLEEP

#define VMU_SLEEP   BIT(7)

Sleep button on the VMU.