I own a controller and hold ButtonA. UIS:InputBegan verifies that I did click buttonA. The renderstepped function that prints true or false depending on if buttonA is held. It prints false
game:GetService("RunService").RenderStepped:Connect(function()
warn(game:GetService("UserInputService"):IsGamepadButtonDown(Enum.UserInputType.Gamepad1,Enum.KeyCode.ButtonA))
end)
game:GetService("UserInputService").InputBegan:Connect(function(input)
warn(input.KeyCode)
end)
Expected behavior
It should print true when I hold buttonA.