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

Bit masks used to identify controller capabilities More...

Macros

#define CONT_CAPABILITY_C   (1<<24)
 C button capability mask.
 
#define CONT_CAPABILITY_B   (1<<25)
 B button capability mask.
 
#define CONT_CAPABILITY_A   (1<<26)
 A button capability mask.
 
#define CONT_CAPABILITY_START   (1<<27)
 Start button capability mask.
 
#define CONT_CAPABILITY_DPAD_UP   (1<<28)
 First Dpad up capability mask.
 
#define CONT_CAPABILITY_DPAD_DOWN   (1<<29)
 First Dpad down capability mask.
 
#define CONT_CAPABILITY_DPAD_LEFT   (1<<30)
 First Dpad left capability mask.
 
#define CONT_CAPABILITY_DPAD_RIGHT   (1<<31)
 First Dpad right capability mask.
 
#define CONT_CAPABILITY_Z   (1<<16)
 Z button capability mask.
 
#define CONT_CAPABILITY_Y   (1<<17)
 Y button capability mask.
 
#define CONT_CAPABILITY_X   (1<<18)
 X button capability mask.
 
#define CONT_CAPABILITY_D   (1<<19)
 D button capability mask.
 
#define CONT_CAPABILITY_DPAD2_UP   (1<<20)
 Second Dpad up capability mask.
 
#define CONT_CAPABILITY_DPAD2_DOWN   (1<<21)
 Second Dpad down capability mask.
 
#define CONT_CAPABILITY_DPAD2_LEFT   (1<<22)
 Second Dpad left capability mask.
 
#define CONT_CAPABILITY_DPAD2_RIGHT   (1<<23)
 Second Dpad right capability mask.
 
#define CONT_CAPABILITY_RTRIG   (1<<8)
 Right trigger capability mask.
 
#define CONT_CAPABILITY_LTRIG   (1<<9)
 Left trigger capability mask.
 
#define CONT_CAPABILITY_ANALOG_X   (1<<10)
 First analog X axis capability mask.
 
#define CONT_CAPABILITY_ANALOG_Y   (1<<11)
 First analog Y axis capability mask.
 
#define CONT_CAPABILITY_ANALOG2_X   (1<<12)
 Second analog X axis capability mask.
 
#define CONT_CAPABILITY_ANALOG2_Y   (1<<13)
 Second analog Y axis capability mask.
 

Detailed Description

Bit masks used to identify controller capabilities

These bits will be set in the function_data for the controller's deviceinfo if the controller supports the corresponding button/axis capability.

Note
The ordering here is so that they match the order found in Inputs.

Macro Definition Documentation

◆ CONT_CAPABILITY_A

#define CONT_CAPABILITY_A   (1<<26)

A button capability mask.

◆ CONT_CAPABILITY_ANALOG2_X

#define CONT_CAPABILITY_ANALOG2_X   (1<<12)

Second analog X axis capability mask.

◆ CONT_CAPABILITY_ANALOG2_Y

#define CONT_CAPABILITY_ANALOG2_Y   (1<<13)

Second analog Y axis capability mask.

◆ CONT_CAPABILITY_ANALOG_X

#define CONT_CAPABILITY_ANALOG_X   (1<<10)

First analog X axis capability mask.

◆ CONT_CAPABILITY_ANALOG_Y

#define CONT_CAPABILITY_ANALOG_Y   (1<<11)

First analog Y axis capability mask.

◆ CONT_CAPABILITY_B

#define CONT_CAPABILITY_B   (1<<25)

B button capability mask.

◆ CONT_CAPABILITY_C

#define CONT_CAPABILITY_C   (1<<24)

C button capability mask.

◆ CONT_CAPABILITY_D

#define CONT_CAPABILITY_D   (1<<19)

D button capability mask.

◆ CONT_CAPABILITY_DPAD2_DOWN

#define CONT_CAPABILITY_DPAD2_DOWN   (1<<21)

Second Dpad down capability mask.

◆ CONT_CAPABILITY_DPAD2_LEFT

#define CONT_CAPABILITY_DPAD2_LEFT   (1<<22)

Second Dpad left capability mask.

◆ CONT_CAPABILITY_DPAD2_RIGHT

#define CONT_CAPABILITY_DPAD2_RIGHT   (1<<23)

Second Dpad right capability mask.

◆ CONT_CAPABILITY_DPAD2_UP

#define CONT_CAPABILITY_DPAD2_UP   (1<<20)

Second Dpad up capability mask.

◆ CONT_CAPABILITY_DPAD_DOWN

#define CONT_CAPABILITY_DPAD_DOWN   (1<<29)

First Dpad down capability mask.

◆ CONT_CAPABILITY_DPAD_LEFT

#define CONT_CAPABILITY_DPAD_LEFT   (1<<30)

First Dpad left capability mask.

◆ CONT_CAPABILITY_DPAD_RIGHT

#define CONT_CAPABILITY_DPAD_RIGHT   (1<<31)

First Dpad right capability mask.

◆ CONT_CAPABILITY_DPAD_UP

#define CONT_CAPABILITY_DPAD_UP   (1<<28)

First Dpad up capability mask.

◆ CONT_CAPABILITY_LTRIG

#define CONT_CAPABILITY_LTRIG   (1<<9)

Left trigger capability mask.

◆ CONT_CAPABILITY_RTRIG

#define CONT_CAPABILITY_RTRIG   (1<<8)

Right trigger capability mask.

◆ CONT_CAPABILITY_START

#define CONT_CAPABILITY_START   (1<<27)

Start button capability mask.

◆ CONT_CAPABILITY_X

#define CONT_CAPABILITY_X   (1<<18)

X button capability mask.

◆ CONT_CAPABILITY_Y

#define CONT_CAPABILITY_Y   (1<<17)

Y button capability mask.

◆ CONT_CAPABILITY_Z

#define CONT_CAPABILITY_Z   (1<<16)

Z button capability mask.