From 173efbf4ef5321734a22a8e7ce41736519a160ae Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Thu, 12 Dec 2019 15:22:24 -0500 Subject: [PATCH] fix turbojump GitOrigin-RevId: 822e0e0830d4f701c1738732718e7f301a67e6af --- Jumpy.Shared/Player.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jumpy.Shared/Player.cs b/Jumpy.Shared/Player.cs index 2c28ef5..c444a62 100644 --- a/Jumpy.Shared/Player.cs +++ b/Jumpy.Shared/Player.cs @@ -82,7 +82,8 @@ namespace Jumpy { // TODO: refactor input to have a virtual "which directions & buttons were being pressed" // instead of complicated if-statements in this function. void UpdateFromGamePad(GameTime time, History gamePad) { - if (gamePad[0].IsButtonDown(Buttons.A) && airState == AirState.Ground) { + if (gamePad[0].IsButtonDown(Buttons.A) && gamePad[1].IsButtonUp(Buttons.A) && + airState == AirState.Ground) { pose = Pose.Jumping; airState = AirState.Jumping; jumpTime = 0.5;