// Token: 0x06000316 RID: 790 RVA: 0x000047B7 File Offset: 0x000029B7 public void FixedUpdate() { if (Core.Input.Bash.OnPressed) { XboxOne.Help(); } }
private static XboxOne CurrentXboxOne() { XboxOne xboxOne = new XboxOne(); xboxOne.controllers = new XboxOne.Controller[XboxInputNode.connectedControllerCount]; for (int i = 0; i < XboxInputNode.connectedControllerCount; i++) { XboxOne.Controller controller = xboxOne.controllers[i] = new XboxOne.Controller(); controller.id = i; controller.leftStick = XboxInputNode.GetDirection(i, XboxInputNode.XboxInputDirection.LeftStick); controller.rightStick = XboxInputNode.GetDirection(i, XboxInputNode.XboxInputDirection.RightStick); controller.dPad = XboxInputNode.GetDirection(i, XboxInputNode.XboxInputDirection.Dpad); controller.leftTrigger = XboxInputNode.GetAxis(i, XboxInputNode.XboxInputAxis.LeftTrigger); controller.rightTrigger = XboxInputNode.GetAxis(i, XboxInputNode.XboxInputAxis.RightTrigger); controller.a = XboxInputNode.GetButton(i, XboxInputNode.XboxInputButton.A); controller.b = XboxInputNode.GetButton(i, XboxInputNode.XboxInputButton.B); controller.y = XboxInputNode.GetButton(i, XboxInputNode.XboxInputButton.Y); controller.x = XboxInputNode.GetButton(i, XboxInputNode.XboxInputButton.X); controller.leftBumper = XboxInputNode.GetButton(i, XboxInputNode.XboxInputButton.LeftBumper); controller.rightBumper = XboxInputNode.GetButton(i, XboxInputNode.XboxInputButton.RightBumper); controller.leftStickIn = XboxInputNode.GetButton(i, XboxInputNode.XboxInputButton.LeftStickIn); controller.rightStickIn = XboxInputNode.GetButton(i, XboxInputNode.XboxInputButton.RightStickIn); controller.menu = XboxInputNode.GetButton(i, XboxInputNode.XboxInputButton.Menu); controller.home = XboxInputNode.GetButton(i, XboxInputNode.XboxInputButton.Home); controller.xbox = XboxInputNode.GetButton(i, XboxInputNode.XboxInputButton.Xbox); } return(xboxOne); }