forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Limple and litle question

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
methos3



Joined: 01 Feb 2008
Posts: 89

PostPosted: Fri Feb 29, 2008 9:51 pm    Post subject: Limple and litle question Reply with quote

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:

//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.
Back to top
View user's profile Send private message
methos3



Joined: 01 Feb 2008
Posts: 89

PostPosted: Sun Mar 02, 2008 11:40 am    Post subject: Reply with quote

Ok, I tested by myself...
I just need to switch between gs_oneshot and gs_perststent depending on what I need.
Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group