int sceCtrlPeekLatch(SceCtrlLatch *latch_data)
Read latest latch data from the controller service.
int sceCtrlSetIdleCancelThreshold(int idlereset, int idleback)
Set analog threshold relating to the idle timer.
int sceCtrlGetSamplingMode(int *pmode)
Get the current controller mode.
int sceCtrlPeekBufferNegative(SceCtrlData *pad_data, int count)
int sceCtrlSetSamplingCycle(int cycle)
Set the controller cycle setting.
int sceCtrlReadLatch(SceCtrlLatch *latch_data)
Read new latch data from the controller service.
int sceCtrlGetSamplingCycle(int *pcycle)
Get the controller current cycle setting.
int sceCtrlGetIdleCancelThreshold(int *idlerest, int *idleback)
Get the idle threshold values.
PspCtrlMode
Controller mode.
Definition pspctrl.h:100
int sceCtrlReadBufferPositive(SceCtrlData *pad_data, int count)
Read new controller data from the controller service.
int sceCtrlPeekBufferPositive(SceCtrlData *pad_data, int count)
Read latest controller data from the controller service.
PspCtrlButtons
Enumeration representing digital controller button flags.
Definition pspctrl.h:40
int sceCtrlSetSamplingMode(int mode)
Set the controller mode.
int sceCtrlReadBufferNegative(SceCtrlData *pad_data, int count)
@ PSP_CTRL_MODE_DIGITAL
Definition pspctrl.h:102
@ PSP_CTRL_MODE_ANALOG
Definition pspctrl.h:104
@ PSP_CTRL_UP
Up D-Pad button.
Definition pspctrl.h:46
@ PSP_CTRL_RIGHT
Right D-Pad button.
Definition pspctrl.h:48
@ PSP_CTRL_SQUARE
Square button.
Definition pspctrl.h:64
@ PSP_CTRL_NOTE
Music note button - kernel mode only.
Definition pspctrl.h:73
@ PSP_CTRL_HOLD
Hold button.
Definition pspctrl.h:71
@ PSP_CTRL_CROSS
Cross button.
Definition pspctrl.h:62
@ PSP_CTRL_REMOTE
Remote hold position - kernel mode only.
Definition pspctrl.h:83
@ PSP_CTRL_VOLUP
Volume up button - kernel mode only.
Definition pspctrl.h:77
@ PSP_CTRL_RTRIGGER
Right trigger.
Definition pspctrl.h:56
@ PSP_CTRL_START
Start button.
Definition pspctrl.h:44
@ PSP_CTRL_MS
Memory stick present - kernel mode only.
Definition pspctrl.h:87
@ PSP_CTRL_LTRIGGER
Left trigger.
Definition pspctrl.h:54
@ PSP_CTRL_DOWN
Down D-Pad button.
Definition pspctrl.h:50
@ PSP_CTRL_CIRCLE
Circle button.
Definition pspctrl.h:60
@ PSP_CTRL_DISC
Disc present - kernel mode only.
Definition pspctrl.h:85
@ PSP_CTRL_LEFT
Left D-Pad button.
Definition pspctrl.h:52
@ PSP_CTRL_SCREEN
Screen button - kernel mode only.
Definition pspctrl.h:75
@ PSP_CTRL_TRIANGLE
Triangle button.
Definition pspctrl.h:58
@ PSP_CTRL_SELECT
Select button.
Definition pspctrl.h:42
@ PSP_CTRL_VOLDOWN
Volume down button - kernel mode only.
Definition pspctrl.h:79
@ PSP_CTRL_WLAN_UP
Wlan switch up - kernel mode only.
Definition pspctrl.h:81
@ PSP_CTRL_HOME
Kernel mode: Home button state.
Definition pspctrl.h:69
Controller data.
Definition pspctrl.h:120
unsigned char Lx
X-axis value of the Analog Stick.
Definition pspctrl.h:130
unsigned int TimeStamp
Current read frame.
Definition pspctrl.h:122
unsigned int Buttons
Buttons in pressed state.
Definition pspctrl.h:128
unsigned char Rsrv[6]
Reserved.
Definition pspctrl.h:134
unsigned char Ly
Y-axis value of the Analog Stick.
Definition pspctrl.h:132
Controller latch data.
Definition pspctrl.h:171
unsigned int uiRelease
Button is in the released state.
Definition pspctrl.h:179
unsigned int uiPress
Button is in the pressed state.
Definition pspctrl.h:177
unsigned int uiMake
Button transitioned to pressed state.
Definition pspctrl.h:173
unsigned int uiBreak
Button transitioned to released state.
Definition pspctrl.h:175