lmc_device_set_name('streamdeck','PNP0303')
lmc_print_devices()
lmc_set_handler('streamdeck', function(button,direction)
if (direction == 1) then return end
if (button == 13) then
lmc_send_keys('^{ENTER}', 50)
elseif (button == 32) then
lmc_send_keys('{BACKSPACE}', 50)
end
end
)
lmc_device_set_name('streamdeck','PNP0303')
lmc_print_devices()
local DOWN = 0
local UP = 2
lmc_set_handler('streamdeck', function(button, direction)
if (button == 32) then -- пробел что ли? :)
local dir = direction == 1 and DOWN or UP
lmc_send_input(8, 0, dir) -- Backspace
end
end
)