Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

DirectInput, tilde key

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 GLForce   Members   

191
Like
0Likes
Like

Posted 11 January 2006 - 04:24 AM

Does someone know what is the code for the tilde key (~, the one commonly used to show console), for directinput keystate. Ive searched like crazy and never found it. Thanks.

#2 circlesoft   Members   

1178
Like
1Likes
Like

Posted 11 January 2006 - 04:38 AM

It's keycode is DIK_GRAVE (the grave symbol is '`'). Remember that keycodes are generated from the un-shifted key - that's why you get DIK_GRAVE instead of DIK_TILDE.

Also, beware of some localization issues here - the Grave/Tilde key is not on all keyboards at the same place. For example, some European keyboards don't have it.

Dustin Franklin ( circlesoft :: KBase :: Mystic GD :: ApolloNL )




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.