PSPSDK 2024-12-16
Loading...
Searching...
No Matches
SceCtrlData Struct Reference

Controller data. More...

#include <ctrl/pspctrl.h>

Data Fields

unsigned int TimeStamp
 Current read frame.
 
unsigned int Buttons
 Buttons in pressed state.
 
unsigned char Lx
 X-axis value of the Analog Stick.
 
unsigned char Ly
 Y-axis value of the Analog Stick.
 
unsigned char Rsrv [6]
 Reserved.
 

Detailed Description

Controller data.

Contains current button and axis state.

Note
Axis state is present only in PSP_CTRL_MODE_ANALOG controller mode.
See also
sceCtrlPeekBufferPositive()
sceCtrlPeekBufferNegative()
sceCtrlReadBufferPositive()
sceCtrlReadBufferNegative()
PspCtrlMode

Field Documentation

◆ Buttons

unsigned int SceCtrlData::Buttons

Buttons in pressed state.

Mask the value with one or more PspCtrlButtons flags to access specific buttons.

Referenced by pspDebugKbInit().

◆ Lx

unsigned char SceCtrlData::Lx

X-axis value of the Analog Stick.

◆ Ly

unsigned char SceCtrlData::Ly

Y-axis value of the Analog Stick.

◆ Rsrv

unsigned char SceCtrlData::Rsrv[6]

Reserved.

◆ TimeStamp

unsigned int SceCtrlData::TimeStamp

Current read frame.

Referenced by pspDebugKbInit().


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