Currently, I am trying to figure out the direction the player is going for a dash system. The problem that arises is that the Position and Delta always return 0. I am currently using an Xbox controller connected to a Computer, with a Mouse and Keyboard still connected. I have tried searching for threads or posts on this topic but I have not been able to find any.
UserInputService.InputBegan:Connect(function(input, isTyping)
if input.UserInputType == Enum.UserInputType.Gamepad1 then
if input.KeyCode == Enum.KeyCode.ButtonY then
UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter
print(UserInputService.MouseBehavior)
print(input.Position.Y, input.Position.X)
print(input.Delta.Y, input.Delta.X)
end
end
end)
Console:
This is on a newly made Baseplate