GamepadInfo

class GamepadInfo(val index: Int = 0, var connected: Boolean = false, var name: String = "unknown", var mapping: GamepadMapping = StandardGamepadMapping, val rawButtonsPressed: FloatArray = FloatArray(64), val rawAxes: FloatArray = FloatArray(16))

Constructors

Link copied to clipboard
fun GamepadInfo(index: Int = 0, connected: Boolean = false, name: String = "unknown", mapping: GamepadMapping = StandardGamepadMapping, rawButtonsPressed: FloatArray = FloatArray(64), rawAxes: FloatArray = FloatArray(16))

Functions

Link copied to clipboard
operator fun get(axis: GameAxis): Float
operator fun get(button: GameButton): Float
operator fun get(stick: GameStick): Point
Link copied to clipboard
fun getX(stick: GameStick): Float
Link copied to clipboard
fun getY(stick: GameStick): Float
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
var connected: Boolean = false
Link copied to clipboard
val index: Int = 0
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard
Link copied to clipboard