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.

Code Snippets / [DBP/GDK/DBC]ScanCode key identifer

Author
Message
XFS Illusion
18
Years of Service
User Offline
Joined: 20th Apr 2006
Location:
Posted: 13th May 2010 05:13
This is actually included with the help, but easy to miss for newcomers. It basically gives you the key thats being pressed so you can use the code for user interaction. Some new coders get ASCII codes confused with scan codes, this will make sure you get it right. Again, this isn't my code, its included with DBP(and also applies to the GDK)...but it might help out a few new guys who don't notice it. I personally keep a compiled EXE of it on my desktop for easy reference.



budokaiman
FPSC Tool Maker
14
Years of Service
User Offline
Joined: 24th Jun 2009
Playing: Hard to get
Posted: 13th May 2010 16:54 Edited at: 13th May 2010 16:55
It might be a little more helpful, if you do this:


It is also one line shorter.

XFS Illusion
18
Years of Service
User Offline
Joined: 20th Apr 2006
Location:
Posted: 13th May 2010 19:29
ya either one works.

luskos
16
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 15th May 2010 04:23
What about the key press state?Look at my snippet.

Regards!

Where there is a will, there is a way.
I often edit my posts, that`s who i am

Login to post a reply

Server time is: 2024-04-26 11:47:54
Your offset time is: 2024-04-26 11:47:54