We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe1e8e8 commit 0142c49Copy full SHA for 0142c49
content/en-us/input/gamepad.md
@@ -133,9 +133,9 @@ local UserInputService = game:GetService("UserInputService")
133
134
UserInputService.InputChanged:Connect(function(input)
135
if input.UserInputType == Enum.UserInputType.Gamepad1 then
136
- if input.KeyCode == Enum.KeyCode.ButtonL1 then
+ if input.KeyCode == Enum.KeyCode.ButtonL2 then
137
print("Pressure on left trigger has changed:", input.Position.Z)
138
- elseif input.KeyCode == Enum.KeyCode.ButtonR1 then
+ elseif input.KeyCode == Enum.KeyCode.ButtonR2 then
139
print("Pressure on right trigger has changed:", input.Position.Z)
140
end
141
0 commit comments