Controls help

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
aserto
Posts: 22
Joined: Mon Apr 17, 2006 10:38 pm

Controls help

Post by aserto »

I have to check if 2 buttons are pressed at the same time. Do you know how to do this?
User avatar
daurnimator
Posts: 38
Joined: Sun Dec 11, 2005 8:36 pm
Location: melbourne, australia

Re: Controls help

Post by daurnimator »

aserto wrote:I have to check if 2 buttons are pressed at the same time. Do you know how to do this?
.. its not hard... guess

otherwise, go look at other src code.

btw, you might want to do an if function like:
if controls:l() and controls:r() then end
aserto
Posts: 22
Joined: Mon Apr 17, 2006 10:38 pm

Post by aserto »

i tried but doesn't work...
KawaGeo
Posts: 191
Joined: Sat Aug 27, 2005 6:52 am
Location: Calif Mountains

Post by KawaGeo »

Some users might press either button first. Check each button if it is pressed or not. If so, check the other button as well.

I am sure somebody already did the coding somewhere. You might look up those codes.
Geo Massar
Retired Engineer
Post Reply