Skip to content

Commit

Permalink
Respect Santroller layouts in XInput layout overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNathannator committed Jun 27, 2024
1 parent 340bdd3 commit c5db17e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ private static string FindXInputDeviceLayout(ref InputDeviceDescription descript
if (description.interfaceName != InterfaceName)
return null;

// hack: pass through Santroller layouts as-is
if (matchedLayout.Contains("Santroller"))
return null;

// Parse capabilities
if (!Utilities.TryParseJson<XInputCapabilities>(description.capabilities, out var capabilities))
return DefaultLayoutIfNull(matchedLayout);
Expand Down

0 comments on commit c5db17e

Please sign in to comment.