@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="GamepadButton")
public class GamepadButton
extends JsObject
| Modifier | Constructor and Description |
|---|---|
protected |
GamepadButton() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
pressed()
The GamepadButton.pressed property of the GamepadButton interface returns a boolean indicating whether the button is currently pressed (true) or unpressed (false).
|
boolean |
touched() |
double |
value()
The GamepadButton.value property of the GamepadButton interface returns a double value used to represent the current state of analog buttons on many modern gamepads, such as the triggers.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, values@JsProperty(name="pressed") public boolean pressed()
@JsProperty(name="touched") public boolean touched()
@JsProperty(name="value") public double value()