DirectInput, tilde key

Started by
0 comments, last by circlesoft 18 years, 4 months ago
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.
"Do, or do not. There is no try." - Yoda
Advertisement
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 )

This topic is closed to new replies.

Advertisement