mflaster
October 13th, 2002, 01:55 PM
So I think I succeeded in my goal. The text string generated by my modified keyboard plugin is now much more readable. "ctl-alt-A" instead of "1ESAC00", etc. It uses GetKeyNameText to do the translation.
Here's the modified keyboard.cpp, and the resulting dll:
http://www.flaster.net/Download/keyboard.cpp
http://www.flaster.net/Download/keyboard.dll
I haven't yet tested this with any multi-media keyboards (i.e. with a 'play', or 'www', etc.), which is definitely important... But worst case, it just falls through and defaults to the old string. If anyone else wants to give it a try, feel free.
Note, you'll have to relearn all your commands, if you previously had keyboard events associated with a command.
Mike
Here's the modified keyboard.cpp, and the resulting dll:
http://www.flaster.net/Download/keyboard.cpp
http://www.flaster.net/Download/keyboard.dll
I haven't yet tested this with any multi-media keyboards (i.e. with a 'play', or 'www', etc.), which is definitely important... But worst case, it just falls through and defaults to the old string. If anyone else wants to give it a try, feel free.
Note, you'll have to relearn all your commands, if you previously had keyboard events associated with a command.
Mike