Forum

[psp] How to see if a button was pressed twice?

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

[psp] How to see if a button was pressed twice?

Postby Mexicouger » Sun Oct 10, 2010 10:57 am

I want to have room for a second button, and it would be nice if the player could double tap a button, and a new thing will happen. My button is preferably the triangle, but any would work.

Thanks,
User avatar
Mexicouger
 
Posts: 514
Joined: Sat May 01, 2010 10:12 pm

Postby Spirit » Sun Oct 10, 2010 11:33 am

Simply store "the key was pressed" and check if it gets pressed another time for a certain time interval?
Improve Quaddicted, send me a pull request: https://github.com/SpiritQuaddicted/Quaddicted-reviews
Spirit
 
Posts: 1031
Joined: Sat Nov 20, 2004 9:00 pm


Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 1 guest