Page 1 of 1

Limple and litle question

Posted: Fri Feb 29, 2008 9:51 pm
by methos3
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:

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
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.

Posted: Sun Mar 02, 2008 11:40 am
by methos3
Ok, I tested by myself...
I just need to switch between gs_oneshot and gs_perststent depending on what I need.
Thanks!