The question is: how to distinguish between keydown and keyup, the two states of pressing a key and releasing a key, in Codea’s keyboard() function?
Has anyone ever dealt with a situation like this?
My scenario was to use it in the javascript code in Codea, and I had a preliminary idea of using objc to implement specific push and release keys (if objc supports it) , i wonder if it’s possible to wrap the implementation code as a lua function and import it into javascript.