@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Gamepad")
public class Gamepad
extends JsObject
| Modifier | Constructor and Description |
|---|---|
protected |
Gamepad() |
| Modifier and Type | Method and Description |
|---|---|
JsArray<java.lang.Double> |
axes()
The Gamepad.axes property of the Gamepad interface returns an array representing the controls with axes present on the device (e.g.
|
JsArray<GamepadButton> |
buttons()
The Gamepad.buttons property of the Gamepad interface returns an array of gamepadButton objects representing the buttons present on the device.
|
boolean |
connected()
The Gamepad.connected property of the Gamepad interface returns a boolean indicating whether the gamepad is still connected to the system.
|
java.lang.String |
hand()
The hand read-only property of the Gamepad interface returns an enum defining what hand the controller is being held in, or is most likely to be held in.
|
JsArray<GamepadHapticActuator> |
hapticActuators()
The hapticActuators read-only property of the Gamepad interface returns an array containing GamepadHapticActuator objects, each of which represents haptic feedback hardware available on the controller.
|
java.lang.String |
id()
The Gamepad.id property of the Gamepad interface returns a string containing some information about the controller.
|
int |
index()
The Gamepad.index property of the Gamepad interface returns an integer that is auto-incremented to be unique for each device currently connected to the system.
|
java.lang.String |
mapping()
The Gamepad.mapping property of the Gamepad interface returns a string indicating whether the browser has remapped the controls on the device to a known layout.
|
GamepadPose |
pose()
The pose read-only property of the Gamepad interface returns a GamepadPose object representing the pose information associated with a WebVR controller (e.g.
|
double |
timestamp()
The Gamepad.timestamp property of the Gamepad interface returns a DOMHighResTimeStamp representing the last time the data for this gamepad was updated.
|
JsArray<GamepadTouch> |
touchEvents() |
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, is, isExtensible, isFrozen, isSealed, keys, preventExtensions, seal, setPrototypeOf, valueOf_, values@JsProperty(name="axes") @Nonnull public JsArray<java.lang.Double> axes()
@JsProperty(name="buttons") @Nonnull public JsArray<GamepadButton> buttons()
@JsProperty(name="connected") public boolean connected()
@JsProperty(name="hand") @Nonnull @GamepadHand public java.lang.String hand()
@JsProperty(name="hapticActuators") @Nonnull public JsArray<GamepadHapticActuator> hapticActuators()
@JsProperty(name="id") @Nonnull public java.lang.String id()
@JsProperty(name="index") public int index()
@JsProperty(name="mapping") @Nonnull @GamepadMappingType public java.lang.String mapping()
@JsProperty(name="pose") @Nullable public GamepadPose pose()
@JsProperty(name="timestamp") public double timestamp()
@JsProperty(name="touchEvents") @Nullable public JsArray<GamepadTouch> touchEvents()