DirectX Game dev

Moderators: None (Apply to moderate this forum)
Number of threads: 86
Number of posts: 203

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
DInput and Keycodes Posted by Wudu on 27 Feb 2003 at 5:48 PM
How can i translate the pressed keys i got with GetDeviceState() into the correct ASCII/Unicode (Unicode preferred) equivalent using the current local settings. Is there an other way than defining all characters for each language ?
Report
Re: DInput and Keycodes Posted by nr7286 on 10 May 2003 at 10:38 PM
: How can i translate the pressed keys i got with GetDeviceState() into the correct ASCII/Unicode (Unicode preferred) equivalent using the current local settings. Is there an other way than defining all characters for each language ?
:
if you look in the dx sdk in dinput.h, you will find the definitions for all of the keys.

example
#define DIK_U 0x16
(this is for the U key)
if you want more info on how to use this, email at nr_7286@hotmail.com



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.