You can, make sure the log handler is created like this:
Code: Select all
log_handler = function( button,direction,ts,flags,makecode )
Then the left and right CTRL keys returns different flags 0,1 for press and release the left one, 2 and 3 for the right.
You check by just adding editing your if-statement like this:
for the left CTRL or
Code: Select all
elseif ( button == 13 and flags > 1 )
for the right.
Add this line to your log handler and you can sniff these out yourself:
Code: Select all
print('CALLBACK :: Button ' .. button .. ', direction '..direction..', makecode: ' ..makecode.. ', flags '..flags)