Limple and litle question

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
methos3
Posts: 89
Joined: Fri Feb 01, 2008 3:21 am

Limple and litle question

Post 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.
methos3
Posts: 89
Joined: Fri Feb 01, 2008 3:21 am

Post by methos3 »

Ok, I tested by myself...
I just need to switch between gs_oneshot and gs_perststent depending on what I need.
Thanks!
Post Reply