Custom remote - button colour changing/toggle
Is it possible for the colour of a button to change when pressed and then change back when pressed again? What if the button is pressed and then deactivated using the program's own shortcut or keyboard interface? 'Cause then the button state would become out-of-sync. Is it possible to at least make the colour change whilst a finger is on the touchscreen and then change back when the button is released?
<toggle text="my toggle" onchange="toggle_action" />
actions.toggle_action = function() kb.stroke("alt", "tab"); end
As far as updating the button, I think it's possible from a quick look at documentation, haven't got time now to check it out, have a look see what you think.