PSPSDK 2025-05-14
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 Rx
 X-axis value of the right Analog Stick, valid when using DualShock 3 on PSP GO, a PS VITA system, through hardware/software hacking, or system emulation.
 
unsigned char Ry
 Y-axis value of the right Analog Stick, valid when using DualShock 3 on PSP GO, a PS VITA system, through hardware/software hacking, or system emulation.
 
unsigned char Reserved [4]
 Reserved bytes unused by the firmware.
 

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.

◆ Reserved

unsigned char SceCtrlData::Reserved[4]

Reserved bytes unused by the firmware.

◆ Rx

unsigned char SceCtrlData::Rx

X-axis value of the right Analog Stick, valid when using DualShock 3 on PSP GO, a PS VITA system, through hardware/software hacking, or system emulation.

◆ Ry

unsigned char SceCtrlData::Ry

Y-axis value of the right Analog Stick, valid when using DualShock 3 on PSP GO, a PS VITA system, through hardware/software hacking, or system emulation.

◆ TimeStamp

unsigned int SceCtrlData::TimeStamp

Current read frame.

Referenced by pspDebugKbInit().


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