Input · interface

GamepadIdentity

What a pad is, as opposed to where its buttons are. See gamepadIdentity.ts.

Explained in Moving things.

interface GamepadIdentity
import type { GamepadIdentity } from '@driftengine/core';

Properties

NameTypeDescription
familyreadonlyGamepadFamily

Methods

label

label(button: GamepadButton): string

What this pad calls that position: faceDown is A, Cross or B.

ParameterTypeDescription
buttonGamepadButton

glyph

glyph(button: GamepadButton): string

A stable key for a consumer's own icon set, such as xbox.a. The engine ships no art.

ParameterTypeDescription
buttonGamepadButton