main.cpp
void WaitForButton(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 a button to be pressed.
 * Inputs:
 * -pad: Button status to fill in when pressed.
 */
Waits for a button to be pressed.
Inputs:
-pad: Button status to fill in when pressed.
Waits for a button to be pressed . Inputs : - pad : Button status to fill in when pressed .
void WaitForButton(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 WaitForButton ( 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 a button to be pressed.
Waits for a button to be pressed .