GamepadInfo

class GamepadInfo(var index: Int = 0, var connected: Boolean = false, var name: String? = null, var rawButtons: FloatArray = FloatArray(GameButton.MAX), var batteryLevel: Float = 1.0f, var name2: String = DEFAULT_NAME2, var batteryStatus: GamepadInfo.BatteryStatus = BatteryStatus.UNKNOWN)

Constructors

Link copied to clipboard
constructor(index: Int = 0, connected: Boolean = false, name: String? = null, rawButtons: FloatArray = FloatArray(GameButton.MAX), batteryLevel: Float = 1.0f, name2: String = DEFAULT_NAME2, batteryStatus: GamepadInfo.BatteryStatus = BatteryStatus.UNKNOWN)

Types

Link copied to clipboard
Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var index: Int
Link copied to clipboard
val l1: Boolean
Link copied to clipboard
val l2: Float
Link copied to clipboard
val l3: Boolean
Link copied to clipboard
Link copied to clipboard
val lx: Float
Link copied to clipboard
val ly: Float
Link copied to clipboard
var name: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val r1: Boolean
Link copied to clipboard
val r2: Float
Link copied to clipboard
val r3: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val rx: Float
Link copied to clipboard
val ry: Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val up: Boolean
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
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
Link copied to clipboard
fun toStringEx(includeButtons: Boolean = true): String