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.