gamepad-type - v2.0.2
    Preparing search index...

    Function findMatchingGamepadModel

    • Find matching gamepad model, brand, and description. Will return PredefinedGamepadModel.Unknown, PredefinedGamepadBrand.Unknown, and an empty string respectively if the given gamepad name is not known.

      Parameters

      • __namedParameters: {
            gamepad: undefined | string | Readonly<Pick<InputDevice, "deviceName">>;
            gamepadBrandMap?: Readonly<Readonly<{ [key: string]: string }>>;
            gamepadModelMap?: Readonly<Readonly<{ [key: string]: string }>>;
        }
        • gamepad: undefined | string | Readonly<Pick<InputDevice, "deviceName">>

          Either the gamepad's id / name or a gamepad object returned from the input-device-handler package.

        • OptionalgamepadBrandMap?: Readonly<Readonly<{ [key: string]: string }>>

          Defaults to the predefined internal brand map.

        • OptionalgamepadModelMap?: Readonly<Readonly<{ [key: string]: string }>>

          Defaults to the predefined internal model map.

      Returns {
          gamepadBrand: undefined | string;
          gamepadModel: undefined | string;
          gamepadModelDescription: undefined | string;
      }