Type Alias GamepadLayout

GamepadLayout: {
    gamepadModels: string[];
    inputMappings: Record<string, string>;
    notes?: PartialWithUndefined<{ info: string; warning: string }>;
    systemVersions: SystemVersions[];
}

A mapping of gamepad button and axe numbers to their names. Mappings depend on the current system and gamepad model (so those are included as well).

Type declaration

  • gamepadModels: string[]

    The list of supported gamepad models for this layout. These are mapped model names, not the raw device names or gamepad ids directly from the browser.

  • inputMappings: Record<string, string>
  • Optionalnotes?: PartialWithUndefined<{ info: string; warning: string }>
  • systemVersions: SystemVersions[]