Globals


Instance Methods

getControllerVisualConfig(controllerType: string): Object | null

Get a copy of the visual definition for a controller type.

Parameters

  • controllerType (string) — Controller type reported by GamepadHelper

Returns

  • Object | null — Controller visual definition, or null when unavailable

getControllerImagePath( controllerType: string, basePath?: string, colorScheme?: string, ): string | null

Get the image path for a full controller visual.

Parameters

  • controllerType (string) — Controller type reported by GamepadHelper
  • basePath (string, optional, default: "'/assets/img/gamepads/'") — Base path containing controller assets
  • colorScheme (string, optional, default: "'White'") — Image color scheme ('Black' or 'White')

Returns

  • string | null — Encoded controller image path, or null when unavailable

Other

DEFAULT_ASSET_BASE_PATH

Controller visual rendering for Gamepad API consumers.