GamepadTrigger

class GamepadTrigger(user: GamepadUser, val instance: Gamepad)

Button or axis binding creator.

Utilises internal caches for global controller-based triggers.

Constructors

Link copied to clipboard
constructor(user: GamepadUser, instance: Gamepad)

Types

Link copied to clipboard
data class AxisBind(val gamepad: Gamepad, val axis: Controls.Analog, val threshold: Double, val comparison: Comparison) : BooleanSupplier
Link copied to clipboard
data class ButtonBind(val gamepad: Gamepad, val button: Controls) : BooleanSupplier

Properties

Link copied to clipboard
val instance: Gamepad

Functions

Link copied to clipboard

Creates a Trigger for when this axis value is greater than the threshold.

Link copied to clipboard

Creates a Trigger for when this axis value is less than the threshold.

Link copied to clipboard

Creates a Trigger for when this axis's magnitude (non-signed value) is greater than the threshold.

Link copied to clipboard
infix fun button(button: Controls): Scheduler.Trigger

Creates a Trigger for when this button is pressed.