Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Single Clicks and Keytaps

Author
Message
elantzb
16
Years of Service
User Offline
Joined: 10th May 2008
Location: Classified
Posted: 23rd Aug 2008 07:08
I've seen a lot of people with questions about why clicking or pressing a key makes their game zoom by real fast.

So, here are the functions I use to detect single keytaps and clicks. That means holding down the key or mouse button will not continue to make your game do backflips.

bSingleClick():


bKeyTap():


And for those of you trying to figure out scancodes, running this should help:


~you can call me lantz~

Login to post a reply

Server time is: 2024-09-30 05:41:07
Your offset time is: 2024-09-30 05:41:07