UserInputService:GetGamepadState

This method returns an array of InputObjects for all available inputs on the given Enum.UserInputType gamepad, representing each input's last input state.

Parameters

gamepadNum: Enum.UserInputType

The Enum.UserInputType corresponding with the gamepad in question.


Returns

An array of InputObjects representing the current state of all available inputs for the given gamepad.