Skip to content
This repository has been archived by the owner on Jul 28, 2022. It is now read-only.

Commit

Permalink
Renamed variable "key" to "keyCode"
Browse files Browse the repository at this point in the history
  • Loading branch information
ThoughtSpinnr authored Nov 14, 2018
1 parent 0852cfd commit a2164f8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
gamepad = Gamepad.new(gamepadUserInputType)
Boolean gamepad:IsDown(key)
Boolean gamepad:IsDown(keyCode)
Boolean gamepad:IsConnected()
InputObject gamepad:GetState(keyCode)
Void gamepad:SetMotor(motor, value)
Expand Down Expand Up @@ -122,8 +122,8 @@ function Gamepad:DisconnectAll()
end


function Gamepad:IsDown(key)
return userInput:IsGamepadButtonDown(self._gamepadInput, key)
function Gamepad:IsDown(keyCode)
return userInput:IsGamepadButtonDown(self._gamepadInput, keyCode)
end


Expand Down

0 comments on commit a2164f8

Please sign in to comment.