Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

How to localize DirectInput Key values to the appropriate char values


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
3 replies to this topic

#1 Narf the Mouse   Members   -  Reputation: 305

Like
0Likes
Like

Posted 11 July 2012 - 01:13 PM

SlimDX has a Keys enumeration that enumerates possible DirectInput Keyboard values. I need to be able to convert those into Char values, based on the localization the user has set.

Thanks.

Ad:

#2 Narf the Mouse   Members   -  Reputation: 305

Like
0Likes
Like

Posted 16 July 2012 - 03:27 PM

*Bump*

Is there something obvious I'm missing? Is it just a matter of localization in general?

If the user sets a different language, I'd like to at least have their own key-presses be the appropriate character set.

#3 Endurion   Members   -  Reputation: 2096

Like
0Likes
Like

Posted 16 July 2012 - 11:58 PM

MapVirtualKey or MapVirtualKeyEx might be what you're looking for.
Fruny: Ftagn! Ia! Ia! std::time_put_byname<wchar_t>! Mglui naflftagn std::codecvt<char,char,mbstate_t> eY'ha-nthlei!

#4 Narf the Mouse   Members   -  Reputation: 305

Like
0Likes
Like

Posted 19 July 2012 - 03:36 PM

MapVirtualKey or MapVirtualKeyEx might be what you're looking for.

Hmm...SlimDX doesn't seem to have those. In addition, the Microsoft documentation doesn't mention localization.

Thanks for the help, anyway .Posted Image

Edited by Narf the Mouse, 19 July 2012 - 03:36 PM.





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.



PARTNERS