Go Back   Angband Forums > Angband > Development

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old November 11, 2010, 23:38   #1
PosChengband Maintainer
Join Date: Jan 2008
Posts: 702
chris is on a distinguished road
Scandinavian Keyboard Layouts

Well, I'm trying to debug a problem with regard to alternative keyboard layouts and Hengband. I'm not sure if this has been fixed in Angband or not.

Take a look at: http://freepages.genealogy.rootsweb....ers/index.html

Especially the pictures at the bottom. To press the '@' key on the Icelandic layout, for example, one presses the right alt key and the Q key simultaneously.

Windows generates the following messages in a normal app:
WM_KEYDOWN : 0-17 1900545    //17 is 0x11 CONTROL
WM_KEYDOWN : 0-18 557318145  //18 is 0x12 ALT
WM_KEYDOWN : 0-81 537919489  //81 is 0x51 Q
WM_CHAR : 0-64 537919489     //Bingo ... 64 is ASCII speak for '@'
The problem is in Main-Win.c, we take that last WM_KEYDOWN for the Q key and pass it off to process_keydown() which says, yup, I got it. So we return 0 back to Windows for the WM_KEYDOWN, and Windows says OK, guess you don't need that WM_CHAR after all.

I'm just starting to debug this, and am in over my head. I'm wondering if this rings any bells with anybody. I need to get Angband (well, Hengband) to not think it likes that Ctl+Alt+Q on the WM_KEYDOWN so that Windows will oblige me with a WM_CHAR for the '@' key, which is correct for this keyboard layout.

Any thoughts?

Thanks in advance,
chris is offline   Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[All] Keyboard interface and keymaps Remuz Vanilla 12 April 17, 2008 23:24

All times are GMT +1. The time now is 00:21.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.