diff --git a/Jumpy.Shared/Player.cs b/Jumpy.Shared/Player.cs index 13adc6a..97d9196 100644 --- a/Jumpy.Shared/Player.cs +++ b/Jumpy.Shared/Player.cs @@ -30,17 +30,17 @@ namespace Jumpy { return; } Vector2 leftStick = gamePad.ThumbSticks.Left; - if (leftStick.X < -0.5) { + if (gamePad.DPad.Left == ButtonState.Pressed || leftStick.X < -0.5) { facing = Facing.Left; pose = Pose.Walking; position.X -= moveSpeed * (float)gameTime.ElapsedGameTime.TotalSeconds; - } else if (leftStick.X > 0.5) { + } else if (gamePad.DPad.Right == ButtonState.Pressed || leftStick.X > 0.5) { facing = Facing.Right; pose = Pose.Walking; position.X += moveSpeed * (float)gameTime.ElapsedGameTime.TotalSeconds; - } else if (leftStick.Y < -0.5) { + } else if (gamePad.DPad.Down == ButtonState.Pressed || leftStick.Y < -0.5) { pose = Pose.Crouching; - } else if (leftStick.Y > 0.5) { + } else if (gamePad.DPad.Up == ButtonState.Pressed || leftStick.Y > 0.5) { pose = Pose.Stretching; } else { pose = Pose.Standing;