http://bugs.winehq.org/show_bug.cgi?id=15350
--- Comment #13 from Aric Stewart aric@codeweavers.com 2008-11-13 07:20:43 --- (In reply to comment #11)
I'm not sure why you need to run a test program, according to header file definitions DIK_xxx values can be directly mapped to the VK_xxx ones, and should not depend on any keyboard layout.
That is what I thought also. but the test program clearly showed that when the azerty 'A' VK 0x41 was pressed with a scancode of 0x10 it generated DIK_Q 0x10 so it was linked to the scancode and not the VK code.
Which makes the question as to what to do with the same scancode is generating different characters such as with the japanese keyboard where the scancode 0x1A was generating the DIK_AT.
I will try to find time to investigate this further.