buttonInput
buttonInput(
buttonInputOptions?):ButtonInputDeclaration
A button the player holds, which rides every tick’s input: true while
any of its keys, its touch button or setInput holds it. A system reads
it with readInput(character, handle), and the order of its changes
within a tick with readInputChanges. With edge: true it reads true
on the tick its key went down alone, as a jump does. Anything a button
starts on its rising edge takes a cooldown or a cost, since a modified
page can toggle it every tick; a one-shot with a payload, or one that
must reach the room however late, is a press.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
buttonInputOptions |
ButtonInputOptions |