Function findMatchingGamepadLayout find Matching Gamepad Layout ( __namedParameters ) : GamepadLayout | undefined Parameters __namedParameters : { gamepad : undefined | string | Readonly < Pick < Readonly < {} > , "deviceName" > > ; gamepadModelMap ?: Readonly < Readonly < {} > > ; layouts ?: readonly Readonly < GamepadLayout > [] ; systemVersions ?: Readonly < Readonly < { browserName : string ; browserVersion : string ; osName : string ; osVersion : string ; } > > ; } gamepad : undefined | string | Readonly < Pick < Readonly < {} > , "deviceName" > > Optional
gamepad Model Map ?: Readonly < Readonly < {} > > Optional
layouts ?: readonly Readonly < GamepadLayout > [] Optional
system Versions ?: Readonly < Readonly < { browserName : string ; browserVersion : string ; osName : string ; osVersion : string ; } > >
Given a gamepad name, tries to find the best matching predefined or custom gamepad layout based on system versions. Returns undefined if no possible matches are found.