The Gamepad interface of the Gamepad API defines an individual or other controller, allowing access to information such as button axis positions, and id.
The Gamepad interface of the Gamepad API defines an individual or other controller, allowing access to information such as button axis positions, and id.
(axes this)
Property.
The Gamepad.axes property of the web.Gamepad
interface returns
array representing the controls with axes present on the device
analog thumb sticks).-
readonly attribute double[] axes;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/axes
Property. The Gamepad.axes property of the `web.Gamepad` interface returns array representing the controls with axes present on the device analog thumb sticks).- `readonly attribute double[] axes;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/axes`
(buttons this)
Property.
The Gamepad.buttons property of the web.Gamepad
interface returns
array of web.gamepadButton
objects representing the buttons
on the device.
readonly attribute GamepadButton[] buttons;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/buttons
Property. The Gamepad.buttons property of the `web.Gamepad` interface returns array of `web.gamepadButton` objects representing the buttons on the device. `readonly attribute GamepadButton[] buttons;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/buttons`
(connected this)
Property.
The Gamepad.connected property of the web.Gamepad
interface
a boolean indicating whether the gamepad is still connected to
system.
readonly attribute boolean connected;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/connected
Property. The Gamepad.connected property of the `web.Gamepad` interface a boolean indicating whether the gamepad is still connected to system. `readonly attribute boolean connected;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/connected`
(display-id this)
Property.
The displayId read-only property of the web.Gamepad
interface
the vr.VRDisplay.displayId
of the associated vr.VRDisplay
the VRDisplay that the gamepad is controlling the displayed scene
var myDisplayId = gamepadInstance.displayId;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/displayId
Property. The displayId read-only property of the `web.Gamepad` interface the `vr.VRDisplay.displayId` of the associated `vr.VRDisplay` the VRDisplay that the gamepad is controlling the displayed scene `var myDisplayId = gamepadInstance.displayId;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/displayId`
(hand this)
Property.
The hand read-only property of the web.Gamepad
interface returns
enum defining what hand the controller is being held in, or is
likely to be held in.
var myHand = gamepadInstance.hand;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/hand
Property. The hand read-only property of the `web.Gamepad` interface returns enum defining what hand the controller is being held in, or is likely to be held in. `var myHand = gamepadInstance.hand;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/hand`
(haptic-actuators this)
Property.
The hapticActuators read-only property of the web.Gamepad
interface
an array containing web.GamepadHapticActuator
objects, each
which represents haptic feedback hardware available on the controller.
var myHapticActuators = gamepadInstance.hapticActuators;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/hapticActuators
Property. The hapticActuators read-only property of the `web.Gamepad` interface an array containing `web.GamepadHapticActuator` objects, each which represents haptic feedback hardware available on the controller. `var myHapticActuators = gamepadInstance.hapticActuators;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/hapticActuators`
(id this)
Property.
The Gamepad.id property of the web.Gamepad
interface returns
string containing some information about the controller.
readonly attribute DOMString id;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/id
Property. The Gamepad.id property of the `web.Gamepad` interface returns string containing some information about the controller. `readonly attribute DOMString id;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/id`
(index this)
Property.
The Gamepad.index property of the web.Gamepad
interface returns
integer that is auto-incremented to be unique for each device
connected to the system.
readonly attribute long index;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/index
Property. The Gamepad.index property of the `web.Gamepad` interface returns integer that is auto-incremented to be unique for each device connected to the system. `readonly attribute long index;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/index`
(mapping this)
Property.
The Gamepad.mapping property of the web.Gamepad
interface returns
string indicating whether the browser has remapped the controls
the device to a known layout.
readonly attribute DOMString mapping;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/mapping
Property. The Gamepad.mapping property of the `web.Gamepad` interface returns string indicating whether the browser has remapped the controls the device to a known layout. `readonly attribute DOMString mapping;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/mapping`
(pose this)
Property.
The pose read-only property of the web.Gamepad
interface returns
web.GamepadPose
object representing the pose information associated
a WebVR controller (e.g. its position and orientation in 3D space).
var myGamepadPose = gamepadInstance.pose;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/pose
Property. The pose read-only property of the `web.Gamepad` interface returns `web.GamepadPose` object representing the pose information associated a WebVR controller (e.g. its position and orientation in 3D space). `var myGamepadPose = gamepadInstance.pose;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/pose`
(set-axes! this val)
Property.
The Gamepad.axes property of the web.Gamepad
interface returns
array representing the controls with axes present on the device
analog thumb sticks).-
readonly attribute double[] axes;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/axes
Property. The Gamepad.axes property of the `web.Gamepad` interface returns array representing the controls with axes present on the device analog thumb sticks).- `readonly attribute double[] axes;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/axes`
(set-buttons! this val)
Property.
The Gamepad.buttons property of the web.Gamepad
interface returns
array of web.gamepadButton
objects representing the buttons
on the device.
readonly attribute GamepadButton[] buttons;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/buttons
Property. The Gamepad.buttons property of the `web.Gamepad` interface returns array of `web.gamepadButton` objects representing the buttons on the device. `readonly attribute GamepadButton[] buttons;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/buttons`
(set-connected! this val)
Property.
The Gamepad.connected property of the web.Gamepad
interface
a boolean indicating whether the gamepad is still connected to
system.
readonly attribute boolean connected;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/connected
Property. The Gamepad.connected property of the `web.Gamepad` interface a boolean indicating whether the gamepad is still connected to system. `readonly attribute boolean connected;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/connected`
(set-display-id! this val)
Property.
The displayId read-only property of the web.Gamepad
interface
the vr.VRDisplay.displayId
of the associated vr.VRDisplay
the VRDisplay that the gamepad is controlling the displayed scene
var myDisplayId = gamepadInstance.displayId;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/displayId
Property. The displayId read-only property of the `web.Gamepad` interface the `vr.VRDisplay.displayId` of the associated `vr.VRDisplay` the VRDisplay that the gamepad is controlling the displayed scene `var myDisplayId = gamepadInstance.displayId;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/displayId`
(set-hand! this val)
Property.
The hand read-only property of the web.Gamepad
interface returns
enum defining what hand the controller is being held in, or is
likely to be held in.
var myHand = gamepadInstance.hand;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/hand
Property. The hand read-only property of the `web.Gamepad` interface returns enum defining what hand the controller is being held in, or is likely to be held in. `var myHand = gamepadInstance.hand;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/hand`
(set-haptic-actuators! this val)
Property.
The hapticActuators read-only property of the web.Gamepad
interface
an array containing web.GamepadHapticActuator
objects, each
which represents haptic feedback hardware available on the controller.
var myHapticActuators = gamepadInstance.hapticActuators;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/hapticActuators
Property. The hapticActuators read-only property of the `web.Gamepad` interface an array containing `web.GamepadHapticActuator` objects, each which represents haptic feedback hardware available on the controller. `var myHapticActuators = gamepadInstance.hapticActuators;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/hapticActuators`
(set-id! this val)
Property.
The Gamepad.id property of the web.Gamepad
interface returns
string containing some information about the controller.
readonly attribute DOMString id;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/id
Property. The Gamepad.id property of the `web.Gamepad` interface returns string containing some information about the controller. `readonly attribute DOMString id;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/id`
(set-index! this val)
Property.
The Gamepad.index property of the web.Gamepad
interface returns
integer that is auto-incremented to be unique for each device
connected to the system.
readonly attribute long index;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/index
Property. The Gamepad.index property of the `web.Gamepad` interface returns integer that is auto-incremented to be unique for each device connected to the system. `readonly attribute long index;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/index`
(set-mapping! this val)
Property.
The Gamepad.mapping property of the web.Gamepad
interface returns
string indicating whether the browser has remapped the controls
the device to a known layout.
readonly attribute DOMString mapping;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/mapping
Property. The Gamepad.mapping property of the `web.Gamepad` interface returns string indicating whether the browser has remapped the controls the device to a known layout. `readonly attribute DOMString mapping;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/mapping`
(set-pose! this val)
Property.
The pose read-only property of the web.Gamepad
interface returns
web.GamepadPose
object representing the pose information associated
a WebVR controller (e.g. its position and orientation in 3D space).
var myGamepadPose = gamepadInstance.pose;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/pose
Property. The pose read-only property of the `web.Gamepad` interface returns `web.GamepadPose` object representing the pose information associated a WebVR controller (e.g. its position and orientation in 3D space). `var myGamepadPose = gamepadInstance.pose;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/pose`
(set-timestamp! this val)
Property.
The Gamepad.timestamp property of the web.Gamepad
interface
a dom.DOMHighResTimeStamp
representing the last time the data
this gamepad was updated.
readonly attribute DOMHighResTimeStamp timestamp;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/timestamp
Property. The Gamepad.timestamp property of the `web.Gamepad` interface a `dom.DOMHighResTimeStamp` representing the last time the data this gamepad was updated. `readonly attribute DOMHighResTimeStamp timestamp;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/timestamp`
(timestamp this)
Property.
The Gamepad.timestamp property of the web.Gamepad
interface
a dom.DOMHighResTimeStamp
representing the last time the data
this gamepad was updated.
readonly attribute DOMHighResTimeStamp timestamp;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/timestamp
Property. The Gamepad.timestamp property of the `web.Gamepad` interface a `dom.DOMHighResTimeStamp` representing the last time the data this gamepad was updated. `readonly attribute DOMHighResTimeStamp timestamp;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/timestamp`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close