Button Input

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
slucas
Posts: 1
Joined: Mon Aug 21, 2006 5:32 pm
Location: Australia
Contact:

Button Input

Post by slucas »

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.
reefbarman
Posts: 87
Joined: Mon Jan 08, 2007 12:16 pm
Location: Australia

Post by reefbarman »

yes i would also like to know how SceCtrlLatch structure works as i believe it is the solution to my problems
adrahil
Posts: 274
Joined: Thu Mar 16, 2006 1:55 am

Post by adrahil »

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

There also is an example in the main glut function in pspgl ;)
reefbarman
Posts: 87
Joined: Mon Jan 08, 2007 12:16 pm
Location: Australia

Post by reefbarman »

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
Post Reply