From b1b8c821ca3551d3f386f19ffe2e731e055f8679 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Mon, 1 Aug 2022 23:00:21 -0700 Subject: [PATCH] fix trigger code to trigger button --- src/Input/Gamepad.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Input/Gamepad.cs b/src/Input/Gamepad.cs index e6d15d9..7b53b3f 100644 --- a/src/Input/Gamepad.cs +++ b/src/Input/Gamepad.cs @@ -159,6 +159,12 @@ namespace MoonWorks.Input { AxisButtonCode.RightY_Down, RightYDown } }; + TriggerCodeToTriggerButton = new Dictionary + { + { TriggerCode.Left, TriggerLeftButton }, + { TriggerCode.Right, TriggerRightButton } + }; + VirtualButtons = new VirtualButton[] { A,