Possible GamePadState Bug

I think I found a bug in the GamePad.GetState() method. Button B is being reported as button Back pressed. My project is a UWP.

    var state = GamePad.GetState(PlayerIndex.One);

    if (state.Buttons.Back == ButtonState.Pressed && previousState.Buttons.Back == ButtonState.Released)
        var result = InputCommand.Back;

    previousState = state;

unfortunately it’s not a bug, but an UWP “feature”.


Also, on Xbox One, Keys.ChatPadOrange gets thrown on DPadUp. So keep that in mind too :wink:

1 Like