You can support the development on the Github Sponsors page.


Tech > BUTTONS


Button class test
made by [email protected]
uploaded by neilpopham
added:
download cartridge
- 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.


Post comment