💬

Community answer

Collected from the ACE community Discord archive around 2020-07-25. It may be informal or outdated — anyone can edit this page to improve it. Original discussion

Triggering actions on key press/release

🧠 LogicUpdated 2 days ago•0 views
timer.create("name", interval, 0, fn) in the keypress hook and timer.remove("name") in keyrelease - or use IN_KEY.* constants in keypress hooks for game binds.

How to run code on key press and stop on release

timer.create("name", interval, 0, fn) in the keypress hook and timer.remove("name") in keyrelease - or use IN_KEY.* constants in keypress hooks for game binds.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.