main.cpp
void WaitForButtonRelease(SceCtrlData *pad)
{
	do {
		sceDisplayWaitVblankStart();
		sceCtrlReadBufferPositive(pad, 1);
	} while((pad->Buttons & ALL_USER_BUTTONS)
		|| (pad->Lx < (128 - AnalogDeadZone))
		|| (pad->Lx > (128 + AnalogDeadZone))
		|| (pad->Ly < (128 - AnalogDeadZone))
		|| (pad->Ly > (128 + AnalogDeadZone)));
}
/* Waits for all buttons to be released.
 * Inputs:
 * -pad: Button status to fill in when released.
 */
Waits for all buttons to be released.
Inputs:
-pad: Button status to fill in when released.
Waits for all buttons to be released . Inputs : - pad : Button status to fill in when released .
void WaitForButtonRelease(SceCtrlData *pad)
{
	do {
		sceDisplayWaitVblankStart();
		sceCtrlReadBufferPositive(pad, 1);
	} while((pad->Buttons & ALL_USER_BUTTONS)
		|| (pad->Lx < (128 - AnalogDeadZone))
		|| (pad->Lx > (128 + AnalogDeadZone))
		|| (pad->Ly < (128 - AnalogDeadZone))
		|| (pad->Ly > (128 + AnalogDeadZone)));
}
void WaitForButtonRelease ( SceCtrlData * pad ) { do { sceDisplayWaitVblankStart ( ) ; sceCtrlReadBufferPositive ( pad , 1 ) ; } while ( ( pad -> Buttons & ALL_USER_BUTTONS ) || ( pad -> Lx < ( 128 - AnalogDeadZone ) ) || ( pad -> Lx > ( 128 + AnalogDeadZone ) ) || ( pad -> Ly < ( 128 - AnalogDeadZone ) ) || ( pad -> Ly > ( 128 + AnalogDeadZone ) ) ) ; }
Waits for all buttons to be released.
Waits for all buttons to be released .