Input · interface
GamepadIdentity
What a pad is, as opposed to where its buttons are. See gamepadIdentity.ts.
Explained in Moving things.
interface GamepadIdentityimport type { GamepadIdentity } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
familyreadonly | GamepadFamily |
Methods
label
label(button: GamepadButton): stringWhat this pad calls that position: faceDown is A, Cross or B.
| Parameter | Type | Description |
|---|---|---|
button | GamepadButton |
glyph
glyph(button: GamepadButton): stringA stable key for a consumer's own icon set, such as xbox.a. The engine ships no art.
| Parameter | Type | Description |
|---|---|---|
button | GamepadButton |