Gamepad
On this page
#include <Gamepad.idl>
Public Attributes
| Name | |
|---|---|
| readonly attribute DOMString | id |
| readonly attribute long | index |
| readonly attribute boolean | connected |
| readonly attribute DOMHighResTimeStamp | timestamp |
| readonly attribute string | mapping |
| readonly attribute float [] | axes |
| readonly attribute GamepadButton [] | buttons |
| readonly attribute unsigned long | displayId |
| readonly attribute GamepadHand | hand |
| readonly attribute GamepadPose | pose |
Public Attributes Documentation
variable id
readonly attribute DOMString id;
variable index
readonly attribute long index;
variable connected
readonly attribute boolean connected;
variable timestamp
readonly attribute DOMHighResTimeStamp timestamp;
variable mapping
readonly attribute string mapping;
variable axes
readonly attribute float [] axes;
variable buttons
readonly attribute GamepadButton [] buttons;
variable displayId
readonly attribute unsigned long displayId;
variable hand
readonly attribute GamepadHand hand;
variable pose
readonly attribute GamepadPose pose;