Tech > BUTTONS
Button class test
made by [email protected]
uploaded by neilpopham
added:

- CLICK TO PLAY -
0
I've become interested in Wren, so this is a conversion and demonstration of some LUA button code. The Button class uses a Counter class in order to report short or long press, and to auto-release after a specified time.
See https://github.com/neilpopham/tic80/blob/master/tests/wren/buttons.wren for Wren code.