Jump to content

  • Log In with Google      Sign In   
  • Create Account


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: 318

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.

Sponsor:

#2 Narf the Mouse   Members   -  Reputation: 318

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   Crossbones+   -  Reputation: 3331

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! Mglui naflftagn std::codecvt eY'ha-nthlei!,char,mbstate_t>

#4 Narf the Mouse   Members   -  Reputation: 318

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