Gamepad
#include <Gamepad.idl>
Public Attributes
Section titled “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
Section titled “Public Attributes Documentation”variable id
Section titled “variable id”readonly attribute DOMString id;variable index
Section titled “variable index”readonly attribute long index;variable connected
Section titled “variable connected”readonly attribute boolean connected;variable timestamp
Section titled “variable timestamp”readonly attribute DOMHighResTimeStamp timestamp;variable mapping
Section titled “variable mapping”readonly attribute string mapping;variable axes
Section titled “variable axes”readonly attribute float [] axes;variable buttons
Section titled “variable buttons”readonly attribute GamepadButton [] buttons;variable displayId
Section titled “variable displayId”readonly attribute unsigned long displayId;variable hand
Section titled “variable hand”readonly attribute GamepadHand hand;variable pose
Section titled “variable pose”readonly attribute GamepadPose pose;© 2026 Coherent Labs. All rights reserved.