Liking cljdoc? Tell your friends :D

web.Gamepad

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.
raw docstring

axescljs

(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`
sourceraw docstring

buttonscljs

(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`
sourceraw docstring

connectedcljs

(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`
sourceraw docstring

display-idcljs

(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`
sourceraw docstring

handcljs

(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`
sourceraw docstring

haptic-actuatorscljs

(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`
sourceraw docstring

idcljs

(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`
sourceraw docstring

indexcljs

(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`
sourceraw docstring

mappingcljs

(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`
sourceraw docstring

posecljs

(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`
sourceraw docstring

set-axes!cljs

(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`
sourceraw docstring

set-buttons!cljs

(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`
sourceraw docstring

set-connected!cljs

(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`
sourceraw docstring

set-display-id!cljs

(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`
sourceraw docstring

set-hand!cljs

(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`
sourceraw docstring

set-haptic-actuators!cljs

(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`
sourceraw docstring

set-id!cljs

(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`
sourceraw docstring

set-index!cljs

(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`
sourceraw docstring

set-mapping!cljs

(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`
sourceraw docstring

set-pose!cljs

(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`
sourceraw docstring

set-timestamp!cljs

(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`
sourceraw docstring

timestampcljs

(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`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close