wavelength 1.0.0
Loading...
Searching...
No Matches
JoypadData Class Reference

State of one controller. More...

#include <JoypadData.h>

Public Member Functions

 JoypadData ()
 Clear the state and mark the controller as without a player.

Public Attributes

int mButtons
int mReserved04 [4]
int mReserved14 [24]
int mPlayerNum
bool mReserved78
float mThreshold

Detailed Description

State of one controller.

The object is 0x80 bytes. The name is inferred. This build does not poll the controllers, so only the player and the threshold are written after construction, and the held buttons stay clear.

Constructor & Destructor Documentation

◆ JoypadData()

JoypadData::JoypadData ( )

Clear the state and mark the controller as without a player.

Ghidra address:
0x1000ed20

Member Data Documentation

◆ mButtons

int JoypadData::mButtons

The held buttons, one bit each.

◆ mReserved04

int JoypadData::mReserved04[4]

◆ mReserved14

int JoypadData::mReserved14[24]

◆ mPlayerNum

int JoypadData::mPlayerNum

The player of the controller, or -1.

◆ mReserved78

bool JoypadData::mReserved78

◆ mThreshold

float JoypadData::mThreshold

Press threshold of the analog buttons, from the configuration.


The documentation for this class was generated from the following file: