GamepadButton

@JSType
trait GamepadButton extends Any

Represents the state of a button.

trait Any
class Object
trait Matchable
class Any

Value members

Abstract fields

@ExposedJSMember
val pressed: Boolean

True if the button is pressed, false otherwise.

True if the button is pressed, false otherwise.

@ExposedJSMember
val value: Double

The value of this gamepad button, 0 is fully unpressed, 1 is fully pressed.

The value of this gamepad button, 0 is fully unpressed, 1 is fully pressed.