Thanks again kamaz. Here is my first rough version:
https://github.com/dimitry-ishenko/remap/releases/download/0.2.0/remap.zip
If anybody is interested, feel free to give it a whirl. Feedback is appreciated.
By default the key mappings are as follows:
Alt + NUM4 / NUM6 Engage left/right translation thrusters.
Alt + NUM9 / NUM3 Engage up/down translation thrusters.
Alt + NUM8 / NUM2 Engage forward/back translation thrusters.
Shift + NUM4 / NUM6 Engage bank left/right rotation thrusters.
Shift + NUM2 / NUM8 Engage pitch up/down rotation thrusters.
Shift + NUM1 / NUM3 Engage yaw left/right rotation thrusters.
In combination with Ctrl, the thrusters are engaged at 10% maximum thrust
for fine control.
I've only briefly tested it, but it seems to work OK. Few quirks:
1. The NumLock key has to be ON for these to work.
2. The Shift + <key> combination is acting weird. If you press the Shift first and then the <key>, for some reason the GetAsyncKeyState function does not register the <key>. But if you press the <key> first, followed by Shift, then it will work.
I have a feeling it might be related to me running it under WINE. I don't have a working Windows box to try it on though.
If anyone tries it on a Windows machine, please let me know if you experience the same problem.
In the next version I think I am going to switch to SetWindowsHookEx, which should handle both of the problems.