ButtonBindingsBuilder

Builder class for configuring button bindings with press and release commands.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun hold(button: Button, command: Command)
fun hold(button: Button, command: () -> Unit)

Sets the command supplier to be executed when the specified button is held.

Link copied to clipboard
fun press(button: Button, command: Command)

Sets the command supplier to be executed when the specified Button is pressed.

fun press(button: Button, command: () -> Unit)

Sets the command supplier to be executed when the specified button is pressed.

Link copied to clipboard
fun release(button: Button, command: Command)
fun release(button: Button, command: () -> Unit)

Sets the command supplier to be executed when the specified button is released.

Link copied to clipboard
fun unpress(button: Button, command: Command)
fun unpress(button: Button, command: () -> Unit)

Sets the command supplier to be executed when the specified button is released.