// NON_API: bool onAction(KbdSectionInfo *sec, int command, int val, int valhw, int relmode, HWND hwnd);
I did some more re(a)search. val and valhw are taking values raging from 0 to 127. That makes a total range of 0 to 16383. The formula to translate Floats from 0.0 to 16383.0 is:
float = (127 - val) * 128 + (128 - valhw);
However adding decimals beside .0 gives totally other results.
@mespotine
What would you exactly need?
|