ButtonScheduling

interface ButtonScheduling

Properties

Link copied to clipboard
abstract val isJustPressed: Boolean
Link copied to clipboard
abstract val isJustReleased: Boolean
Link copied to clipboard
abstract val isPressed: Boolean
Link copied to clipboard
abstract val isReleased: Boolean
Link copied to clipboard
abstract val isToggled: Boolean
Link copied to clipboard
abstract val isUntoggled: Boolean

Functions

Link copied to clipboard
open fun onPress(cmd: Cmd)

Schedule command on press

Link copied to clipboard
open fun onPressUntilRelease(cmd: Cmd)

Schedule command when pressed to cancel on release

Link copied to clipboard
open fun onRelease(cmd: Cmd)

Schedule command on release

Link copied to clipboard
open fun onToggle(cmd: Cmd)

Schedule a command when just toggled

Link copied to clipboard
open fun onUntoggle(cmd: Cmd)

Schedule a command when just untoggled

Link copied to clipboard
open fun scheduleConditional(cmd: Cmd, condition: () -> Boolean)

Schedule a command when an additional condition is met and button is just pressed

Link copied to clipboard
open fun whilePressed(cmd: Cmd)

Schedule command while pressed

Link copied to clipboard
open fun whileReleased(cmd: Cmd)

Schedule command while released

Inheritors

Link copied to clipboard