Hey! I am working on using cabbage for a project of live electronics. I will be exporting it as a standalone application (thanks for this feature, very nice). I would like to be able to control small things with for example the spacebar. I have been looking around, but I cannot find a clear way on how to do it. I have tried the KEY_PRESSED channel, but it does not print anything when using cabbage.
Anyone able to point me in the right direction?
(ignore the mouse variables haha. They are working tho!)
instr 1
kMouseX chnget "MOUSE_X"
kMouseY chnget "MOUSE_Y"
kCurrentKey chnget "KEY_PRESSED"
printk 0.1, kCurrentKey
endin