Jump to content

View more

Image of the Day

雑魚は多めにして、爽快感重視にしつつ・・・(´・ω・`)
早いとこ、ベースを作って、完成にもっていかないとね。
タイトルもまだ迷ってるだよなぁ。 
#indiedev  #indiegame #screenshotsaturday https://t.co/IwVbswGrhe
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

How to localize DirectInput Key values to the appropriate char values

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

#1 Narf the Mouse   Members   

322
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.

#2 Narf the Mouse   Members   

322
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   

5319
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   

322
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.