Liking cljdoc? Tell your friends :D

web.GamepadButton

The GamepadButton interface defines an individual button of a or other controller, allowing access to the current state of types of buttons available on the control device.

The GamepadButton interface defines an individual button of a
or other controller, allowing access to the current state of
types of buttons available on the control device.
raw docstring

pressedcljs

(pressed this)

Property.

The GamepadButton.pressed property of the web.GamepadButton returns a boolean indicating whether the button is currently (true) or unpressed (false).

var isPressed = navigator.getGamepads()[0].pressed;

See also: https://developer.mozilla.org/en-US/docs/Web/API/GamepadButton/pressed

Property.

The GamepadButton.pressed property of the `web.GamepadButton`
returns a boolean indicating whether the button is currently
(true) or unpressed (false).

`var isPressed = navigator.getGamepads()[0].pressed;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/GamepadButton/pressed`
sourceraw docstring

set-pressed!cljs

(set-pressed! this val)

Property.

The GamepadButton.pressed property of the web.GamepadButton returns a boolean indicating whether the button is currently (true) or unpressed (false).

var isPressed = navigator.getGamepads()[0].pressed;

See also: https://developer.mozilla.org/en-US/docs/Web/API/GamepadButton/pressed

Property.

The GamepadButton.pressed property of the `web.GamepadButton`
returns a boolean indicating whether the button is currently
(true) or unpressed (false).

`var isPressed = navigator.getGamepads()[0].pressed;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/GamepadButton/pressed`
sourceraw docstring

set-value!cljs

(set-value! this val)

Property.

The GamepadButton.value property of the web.GamepadButton interface a double value used to represent the current state of analog on many modern gamepads, such as the triggers.

readonly attribute double value;

See also: https://developer.mozilla.org/en-US/docs/Web/API/GamepadButton/value

Property.

The GamepadButton.value property of the `web.GamepadButton` interface
a double value used to represent the current state of analog
on many modern gamepads, such as the triggers.

`readonly    attribute double  value;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/GamepadButton/value`
sourceraw docstring

valuecljs

(value this)

Property.

The GamepadButton.value property of the web.GamepadButton interface a double value used to represent the current state of analog on many modern gamepads, such as the triggers.

readonly attribute double value;

See also: https://developer.mozilla.org/en-US/docs/Web/API/GamepadButton/value

Property.

The GamepadButton.value property of the `web.GamepadButton` interface
a double value used to represent the current state of analog
on many modern gamepads, such as the triggers.

`readonly    attribute double  value;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/GamepadButton/value`
sourceraw docstring

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

× close