@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="GamepadHapticActuator")
public class GamepadHapticActuator
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
GamepadHapticActuator() |
| Modifier and Type | Method and Description |
|---|---|
Promise<java.lang.Boolean> |
pulse(double value,
double duration)
The pulse() method of the GamepadHapticActuator interface makes the hardware pulse at a certain intensity for a specified duration.
|
java.lang.String |
type()
The type read-only property of the GamepadHapticActuator interface returns an enum representing the type of the haptic hardware.
|
@JsProperty(name="type") @Nonnull @GamepadHapticActuatorType public java.lang.String type()
@Nonnull public Promise<java.lang.Boolean> pulse(double value, double duration)