Gamepad

Overview

The Gamepad interface of the Gamepad API defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.

Location

Properties


axes

 

property axes: Double read;

 

Double axes { get; }

 

var axes: Double { get{} }

 

Double axes { __get; }

 

ReadOnly Property axes() As Double

buttons

 

property buttons: array of GamepadButton read;

 

GamepadButton[] buttons { get; }

 

var buttons: GamepadButton... { get{} }

 

GamepadButton[] buttons { __get; }

 

ReadOnly Property buttons() As GamepadButton()

connected

 

property connected: Boolean read;

 

Boolean connected { get; }

 

var connected: Boolean { get{} }

 

Boolean connected { __get; }

 

ReadOnly Property connected() As Boolean

displayId

 

property displayId: Int32 read;

 

Int32 displayId { get; }

 

var displayId: Int32 { get{} }

 

Int32 displayId { __get; }

 

ReadOnly Property displayId() As Int32

id

 

property id: Int32 read;

 

Int32 id { get; }

 

var id: Int32 { get{} }

 

Int32 id { __get; }

 

ReadOnly Property id() As Int32

index

 

property index: Int32 read;

 

Int32 index { get; }

 

var index: Int32 { get{} }

 

Int32 index { __get; }

 

ReadOnly Property index() As Int32

mapping

 

property mapping: String read;

 

String mapping { get; }

 

var mapping: String { get{} }

 

String mapping { __get; }

 

ReadOnly Property mapping() As String

pose

 

property pose: dynamic read;

 

dynamic pose { get; }

 

var pose: dynamic { get{} }

 

dynamic pose { __get; }

 

ReadOnly Property pose() As dynamic

timestamp

 

property timestamp: DOMHighResTimeStamp read;

 

DOMHighResTimeStamp timestamp { get; }

 

var timestamp: DOMHighResTimeStamp { get{} }

 

DOMHighResTimeStamp timestamp { __get; }

 

ReadOnly Property timestamp() As DOMHighResTimeStamp