1. Re: Exclamation Point in DirectInput Key List
- Posted by Igor Kachan <kinz at peterlink.ru> Feb 22, 2002
- 427 views
Hi Chris, ---------- > ïÔ: bensler at mail.com > ëÏÍÕ: EUforum <EUforum at topica.com> > ôÅÍÁ: RE: Exclamation Point in DirectInput Key List > äÁÔÁ: Friday, February 22, 2002 22:17 > > > Mostly guessing, I've never used code pages, but instead of writing > something like this.. > char = DIK_KEY+'A' > > You would do something like this.. > code_page = codepages[COUNTRY_CODE] > char = code_page[DIK_KEY] > > Or are code pages ascii based? > > Igor, or others, would know better than I. On my machines '!' is always '!', strongly (shift + 1 key), on plain DOS, in DOS window, on Windows, in Windows text consol, both in Russian keyboard layout on DOS and Windows (are different), and in standard Latin keyboard layout. There are 2 thing you must adjust on DOS and on Windows - select the code page for the output and select keyboard layout for the input. For example, my adjustments for 866 code page on DOS: config.sys ---------- device=D:\WINDOWS\COMMAND\display.sys con=(ega,,1) Country=007,866,D:\WINDOWS\COMMAND\country.sys autoexec.bat ------------ mode con codepage prepare=((866) D:\WINDOWS\COMMAND\ega3.cpi) mode con codepage select=866 keyb ru,,D:\WINDOWS\COMMAND\keybrd3.sys After these commands above, I have Russian on the screen and from the keyboard for Dos. But these commands have no effect for Windows. For Windows, there is another story. I must open the control panel, run Language & Standards and select the Russian + English languages for the screen, then run Keyboard and select the Russian + English keyboard layouts. These layouts and on-screen-encodings are different on DOS and Windows but '!' sign is same and stable. *Almost* all 0..127 codes (i.e. ascii) are *almost* stable on my machine ... except '.' , ',' , '/' , '?' , ''' , '"' , ':' , ';" and so on ... but '!' is *absolutelly* stable ... I can not reproduce this your problem here. I'm sorry. Regards, Igor Kachan kinz at peterlink.ru