Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Does UserInputService:GamepadButtonDown() Not work on Triggers and Bumpers?

Asked by 5 years ago

So using the function UserInputService:GamepadButtonDown() works fine and dandy on all buttons except ButtonR2, ButtonL2, ButtonR1, and ButtonL1.

Is there a different function to use to register the inputs of triggers?

1 answer

Log in to vote
0
Answered by 5 years ago

"Some gamepads support analog controls. To get input from these controls, the InputChanged function can be used. Note that Roblox only supports analog thumbsticks and trigger buttons (L2 and R2). In the Changed event the position of the input's axis can be read in the Position. The thumbsticks position will always be on the X Y axes between the values of -1 to 1 for both axes. The trigger buttons will only have values between 0 and 1 on the Z axis: 0 at its starting position, 1 when fully depressed." https://wiki.roblox.com/index.php?title=Gamepad_Input

Ad

Answer this question