Liking cljdoc? Tell your friends :D
ClojureScript only.

web.vr.GamepadHapticActuator

The GamepadHapticActuator interface of the Gamepad API represents in the controller designed to provide haptic feedback to the (if available), most commonly vibration hardware.

The GamepadHapticActuator interface of the Gamepad API represents
in the controller designed to provide haptic feedback to the
(if available), most commonly vibration hardware.
raw docstring

pulsecljs

(pulse this value duration)

Method.

The pulse() method of the web.vr.GamepadHapticActuator interface the hardware pulse at a certain intensity for a specified duration.

gamepadHapticActuatorInstance.pulse(value, duration).then(function(result) { ... });

See also: https://developer.mozilla.org/en-US/docs/Web/API/GamepadHapticActuator/pulse

Method.

The pulse() method of the `web.vr.GamepadHapticActuator` interface
the hardware pulse at a certain intensity for a specified duration.

`gamepadHapticActuatorInstance.pulse(value, duration).then(function(result) { ... });`

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

set-type!cljs

(set-type! this val)

Property.

The type read-only property of the web.vr.GamepadHapticActuator returns an enum representing the type of the haptic hardware.

var myActuatorType = gamepadHapticActuatorInstance.type;

See also: https://developer.mozilla.org/en-US/docs/Web/API/GamepadHapticActuator/type

Property.

The type read-only property of the `web.vr.GamepadHapticActuator`
returns an enum representing the type of the haptic hardware.

`var myActuatorType = gamepadHapticActuatorInstance.type;`

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

typecljs

(type this)

Property.

The type read-only property of the web.vr.GamepadHapticActuator returns an enum representing the type of the haptic hardware.

var myActuatorType = gamepadHapticActuatorInstance.type;

See also: https://developer.mozilla.org/en-US/docs/Web/API/GamepadHapticActuator/type

Property.

The type read-only property of the `web.vr.GamepadHapticActuator`
returns an enum representing the type of the haptic hardware.

`var myActuatorType = gamepadHapticActuatorInstance.type;`

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

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

× close