Skip to content

Commit

Permalink
Added binding for '-' button for Switch gamepads (Albeoris#262)
Browse files Browse the repository at this point in the history
* Bind '-' switch button (and 'share' PS button) to the help
  • Loading branch information
SamsamTS authored Sep 10, 2023
1 parent dffc95a commit e459698
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Memoria.XInputDotNetPure/GamePad.cs
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ public static GamePadState GetState(PlayerIndex playerIndex, GamePadDeadZone dea
JSL.State jslState = JSL.GetSimpleState(device);
if ((jslState.buttons & (int)JSL.Button.Options) != 0) rawState.Gamepad.wButtons |= (ushort)ButtonsConstants.Start;
if ((jslState.buttons & (int)JSL.Button.TouchpadClick) != 0) rawState.Gamepad.wButtons |= (ushort)ButtonsConstants.Back;
if ((jslState.buttons & (int)JSL.Button.Minus) != 0) rawState.Gamepad.wButtons |= (ushort)ButtonsConstants.Back;
if ((jslState.buttons & (int)JSL.Button.ZL) != 0) rawState.Gamepad.wButtons |= (ushort)ButtonsConstants.LeftThumb;
if ((jslState.buttons & (int)JSL.Button.ZR) != 0) rawState.Gamepad.wButtons |= (ushort)ButtonsConstants.RightThumb;
if ((jslState.buttons & (int)JSL.Button.L) != 0) rawState.Gamepad.wButtons |= (ushort)ButtonsConstants.LeftShoulder;
Expand Down

0 comments on commit e459698

Please sign in to comment.