pulse method

[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]

The pulse method applies a value to the actuator for a specific amount of time (in milliseconds). See the W3C Gamepad Extensions specification for more information.

Syntax

var retval = GamepadHapticActuator.pulse(value, duration);

Parameters

value

Type: double

duration

Type: double

Return value

Type: Promise<boolean>

A promise that resolves to a boolean once the pulse has completed.

Remarks

The value passed to pulse is clamped to limits defined by the actuator type.

Subsequent calls to pulse override the previous values.

See also

GamepadHapticActuator

 

 

Show: