PokéRogue
    Preparing search index...

    Configuration for a gamepad.

    interface PadConfig<T extends DeviceMapping = DeviceMapping> {
        blacklist?: InterfaceButtonName[];
        custom?: Record<keyof T, -1 | SettingGamepad>;
        default: Record<keyof T, SettingGamepad | -1>;
        deviceMapping: T;
        icons: Record<keyof OnlyRequired<T>, string>;
        padID: string;
        padType: string;
        settings: Partial<Record<SettingGamepad, Button>>;
    }

    Type Parameters

    Index

    Properties

    blacklist?: InterfaceButtonName[]

    List of keys that cannot be remapped

    custom?: Record<keyof T, -1 | SettingGamepad>

    Custom bindings for each button

    default: Record<keyof T, SettingGamepad | -1>

    Default bindings for each button

    deviceMapping: T

    Mapping of the device's buttons to the keycode they evaluate to

    icons: Record<keyof OnlyRequired<T>, string>

    Mapping of the device's buttons to the icon filename

    padID: string

    Identifier of the gamepad, as provided by the browser

    padType: string

    Type of gamepad

    Mapping of the settings to the buttons