Limple and litle question
Posted: Fri Feb 29, 2008 9:51 pm
Hi, i'm not home and will stay a while whihout my ps2 and was developing a simple and small program, and a question popped out on my head.
See:
In this case any of you know if the sprite will disappear when I release the SQUARE button on pad (0, 0)?
Or I have to manually clear the sprite when I want?
Since now,
Thanks!
ps.: only to remember, I an asking because I am whihout my ps2 and whihout my compiler.
See:
Code: Select all
//Before all the gsKit and dmaKit init routines, I do a function like this:
while(1)
{
waitPadRead(0, 0); /*function that I made, that wait until the padstate gets ready, connected and working*/
ret=padRead(0, 0, padBuf, &buttons);
paddata = buttons.btns;
if (ret!=0)
{
if (paddata & PAD_SQUARE) gsKit_prim_sprite (gsBlobal, x0, y0, x1, y1, xy, Color);
}
gsKit_sync_flip(gsGlobal);
gsKit_queue_exec(gsGlobal);
} //while
//end of function
Or I have to manually clear the sprite when I want?
Since now,
Thanks!
ps.: only to remember, I an asking because I am whihout my ps2 and whihout my compiler.