On 06/24/2011 11:10 PM, Lucas Zawacki wrote:
As a hello word programmer, i can't judge the code quality, but i can say, that it worked nearly flawlessly. I was able to drive/play on keyboard :-D
That's very nice to hear :)
The only issue i found in NFS's keyboard configuration:
- When i press PAUSE KEY, then NFS says "Num_Lock"
- When i press NUMLOCK KEY, then NFS says "Pause"
Hmm, actually I construct the mapping based on the positions of the objects in the keyboard dataformat and PAUSE and NUM LOCK seem to be in different positions in native and wine. Attached are two dumps of the keyboard objects with builtin and native dinput for comparison.
This is not related to data format. But auto-generated events in x11drv to turn on/off num/lock. Apparently native dinput has a mechanism to ignore these events.
Vitaliy.