| View previous topic :: View next topic |
| Author |
Message |
slucas
Joined: 21 Aug 2006 Posts: 1 Location: Australia
|
Posted: Tue Aug 22, 2006 8:20 pm Post subject: Button Input |
|
|
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 |
|
 |
reefbarman
Joined: 08 Jan 2007 Posts: 87 Location: Australia
|
Posted: Sun Jan 14, 2007 11:07 pm Post subject: |
|
|
| yes i would also like to know how SceCtrlLatch structure works as i believe it is the solution to my problems |
|
| Back to top |
|
 |
adrahil
Joined: 16 Mar 2006 Posts: 277
|
Posted: Mon Jan 15, 2007 4:23 am Post subject: |
|
|
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 |
|
 |
reefbarman
Joined: 08 Jan 2007 Posts: 87 Location: Australia
|
Posted: Mon Jan 15, 2007 10:34 am Post subject: |
|
|
| 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 |
|
 |
|