Get values from a Gamepad button. Assumes an Xbox-style gamepad with four face buttons, two triggers, two shoulder buttons, and two menu buttons.
The Gamepad button to test.
Store button's current value.
Store if the button is pressed. This is true if its current value is greater than a predetermined threshold.
Stores how long the button has been pressed. Resets to zero when released.
Stores how many times the button has been pressed while this State was active. Useful for 'double-click' buttons.
When to read the Input.