Reads the value of 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.
Store Float 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.
Update Mode
When to read the Input.