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 / KeyStates

Author
Message
Wizz
15
Years of Service
User Offline
Joined: 27th Apr 2009
Location:
Posted: 24th Jun 2009 16:44 Edited at: 25th Jun 2009 10:55
Hello.

I have recently started using the dbKeyState() command
i figured out that w is 17 and a is 30 and so on but i can't find the number for space bar and other such keys, is there a list of these numbers?
Bran flakes91093
16
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 24th Jun 2009 18:13
Do you mean dbKeyState()? There is a huge list of them pre-defined for you if you include the "dinput.h" header at the top of your program.



The 'W' key will then be "DIK_W" (without quotes) and the space bar will be "DIK_SPACE" or something like that (also without quotes).



If you can't guess one of the keys, here is the list out of "dinput.h":



Your_Health = (My_Mood == HAPPY) ? 100 : NULL;
Pillarofire
20
Years of Service
User Offline
Joined: 31st Dec 2003
Location: Good Question, <looks around.>
Posted: 24th Jun 2009 21:18
Or look at a pretty picture.

Attachments

Login to view attachments
Wizz
15
Years of Service
User Offline
Joined: 27th Apr 2009
Location:
Posted: 25th Jun 2009 01:50
Thank you both alot! Yes, i was talking about KeyState() sorry bout that mistake, how can i edit my post?

Login to post a reply

Server time is: 2024-11-25 08:30:15
Your offset time is: 2024-11-25 08:30:15