Skip to content

Commit 0142c49

Browse files
authored
Update gamepad.md
1 parent fe1e8e8 commit 0142c49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/en-us/input/gamepad.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ local UserInputService = game:GetService("UserInputService")
133133

134134
UserInputService.InputChanged:Connect(function(input)
135135
if input.UserInputType == Enum.UserInputType.Gamepad1 then
136-
if input.KeyCode == Enum.KeyCode.ButtonL1 then
136+
if input.KeyCode == Enum.KeyCode.ButtonL2 then
137137
print("Pressure on left trigger has changed:", input.Position.Z)
138-
elseif input.KeyCode == Enum.KeyCode.ButtonR1 then
138+
elseif input.KeyCode == Enum.KeyCode.ButtonR2 then
139139
print("Pressure on right trigger has changed:", input.Position.Z)
140140
end
141141
end

0 commit comments

Comments
 (0)