Button element btn
js
btn(id, r, action)id(optional): element IDr(required): display rectangle, typeRectaction(optional): click action; see data types
After definition, the element’s id (besides the Rect) has:
id.pressing: 1 if the button is currently pressed, 0 otherwiseid.last: time of last press in seconds; -1 if never pressedid.count: number of times the button has been pressed