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