View Single Post
Old 05-15-2019, 09:53 AM   #477
Burtan
Human being with feelings
 
Join Date: Jan 2013
Location: Bochum, Germany
Posts: 103
Default

// 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?
Burtan is offline   Reply With Quote