Code: Select all
sceCtrlPeekBufferPositive(&pad, 1)
2) What does the function return ? Number of values read ?
Thanks in advance for your answers
Code: Select all
sceCtrlPeekBufferPositive(&pad, 1)
Code: Select all
int sceCtrlPeekBufferPositive(SceCtrlData * pad_data, int count);
Parameters:
pad_data - Pointer to a SceCtrlData structure used hold the returned pad data.
count - Number of SceCtrlData buffers to read.
Code: Select all
unsigned int TimeStamp; // The current read frame.
unsigned int Buttons; // Bit mask containing zero or more of PspCtrlButtons.
unsigned char Lx; // Analogue stick, X axis.
unsigned char Ly; // Analogue stick, Y axis.
unsigned char Rsrv[6]; // Reserved.
Thanks, but this is not the return value, this is what it puts into the memory you give it. I want to know what the *return value* of the function means, the int that the function returns.Returned data SceCtrlData