
I realized that left/right control send different flags, but left/right shift sends different MakeCode
So I tried to build new exe which sends even fifth parameter to callback method.
Download this beta build from here and try code:
Code: Select all
clear();
lmc_assign_keyboard('KBD2')
log_handler = function(button, direction, ts, flags, makecode)
print('Callback for device: button ' .. button .. ', direction '..direction..', ts '..ts..', flags '..flags..', makecode '..makecode)
end
lmc_set_handler('KBD2', log_handler)
Code: Select all
Callback for device: button 16, direction 1, ts 1887796, flags 0, makecode 42
Callback for device: button 16, direction 0, ts 1887968, flags 1, makecode 42
Callback for device: button 16, direction 1, ts 1889046, flags 0, makecode 54
Callback for device: button 16, direction 0, ts 1889156, flags 1, makecode 54