internal GameControllerState(bool empty) { FromConnected = false; Thumbs = GameControllerStateThumbs.Default; Triggers = GameControllerStateTriggers.Default; DPad = GameControllerStateDPad.Default; Buttons = GameControllerStateButtons.Default; }
internal GameControllerState(Gamepad state, GameController controller) { FromConnected = true; Thumbs = new GameControllerStateThumbs(controller, state); Triggers = new GameControllerStateTriggers() { Left = (float)state.LeftTrigger / byte.MaxValue, Right = (float)state.RightTrigger / byte.MaxValue }; DPad = new GameControllerStateDPad(state.Buttons); Buttons = new GameControllerStateButtons(state.Buttons, controller); }