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.

[Experimental]

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.

[Experimental]

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

typecljs

(type this)

Property.

[Read Only] [Experimental]

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.

[Read Only]
[Experimental]

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