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 

Button Input

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



Joined: 21 Aug 2006
Posts: 1
Location: Australia

PostPosted: Tue Aug 22, 2006 8:20 pm    Post subject: Button Input Reply with quote

Hey all,

First time poster so hoping you can perhaps help me out.
So I want to do some decent button input and reading, but am finding it difficult to find info on the SceCtrlLatch structure.
What I basically want is a check of what button i have pressed for say .25 second.
Yes SceCtrlLatch.uiPress tells me what button i am pressing but does exactly the same as SceCtrlData.Buttons so its down to SceCtrlLatch's uiMake, uiBreak, uiRelease but all seem to give me random results, for example if i press and release (thus uiRelease would show me which button is being released) a button for 1 second i will get a x-button response, but next 3 times i press it i wont get a x-button response
Is there a function or call i can make to get button feedaback more often? is there some more documentation on what this structure does (google search achieves not much) .
This forum has been helpful to get me to where i am but is there a more in depth developer forum?
Soon i should have a small demo that you guys will be able to look at (perhaps have to get some artist help too).
Sorry for the lengthy post - just trying to get my scenario clear.
Thanks for the help in advance.
Sam

BTW i am not using LUA just pure C, and a form of engine that i am writing.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
reefbarman



Joined: 08 Jan 2007
Posts: 87
Location: Australia

PostPosted: Sun Jan 14, 2007 11:07 pm    Post subject: Reply with quote

yes i would also like to know how SceCtrlLatch structure works as i believe it is the solution to my problems
Back to top
View user's profile Send private message
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Mon Jan 15, 2007 4:23 am    Post subject: Reply with quote

Check this for an usage:
http://rafb.net/p/xUUMWD74.html

There also is an example in the main glut function in pspgl ;)
Back to top
View user's profile Send private message
reefbarman



Joined: 08 Jan 2007
Posts: 87
Location: Australia

PostPosted: Mon Jan 15, 2007 10:34 am    Post subject: Reply with quote

thanks for that i can see how it works now, and that code would be exactly what i need except for the fact that who ever done that has implemented what he did in one very confusing manner i can see what is going on but why he did it like that i dont know
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 -> PSP 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