GamepadAxisMoved

class GamepadAxisMoved(val id: GamepadId, val axis: GamepadAxis, val value: Float) : PlatformEvent(source)

Reports that axis on the gamepad id moved to value.

Stick values run from -1 to 1, negative being left or up; trigger values run from 0 (released) to 1 (fully pressed). Sticks rarely rest at exactly 0, so apply a dead zone.

Constructors

Link copied to clipboard
constructor(id: GamepadId, axis: GamepadAxis, value: Float)

Properties

Link copied to clipboard

The axis that moved.

Link copied to clipboard

The gamepad that reported the movement.

Link copied to clipboard

The new axis value.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String