Trioxide

UIS.InputEnded

Feb 24th, 2016
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1.     self.inputEndedConnection = userInputService.InputEnded:connect(function(inputObject, gameProcessedEvent)
  2.         if inputObject.UserInputType == Enum.UserInputType.Gamepad1 then
  3.             if inputObject.KeyCode == Enum.KeyCode.Thumbstick2 then
  4.                 self.deltaAngleX = 0
  5.                 self.deltaAngleY = 0
  6.             end
  7.         elseif inputObject.UserInputType == Enum.UserInputType.MouseMovement then
  8.             self.deltaAngleX    = 0
  9.             self.deltaAngleY    = 0
  10.         end
  11.     end)
Add Comment
Please, Sign In to add comment