I've been working on my game and I want to make it Xbox 1 compatible since it's in high demand for games. Problem is though that there's a shop and I do not know how it works for Xbox 1 Users. Are there any events that detects if the Xbox 1 Controller's cursor is over a TextButton?
UserInputService.InputBegan:connect(function(Input, Processed)
if Input.UserInputType == Enum.UserInputType.Gamepad1 then
if Input.KeyCode == Enum.KeyCode.ButtonR3 then
MainEvent:FireServer('Buy', 'FieryMachete')
end
end
end)
I know what this will end up with but this is an example of what I came up with, I just need some thing behind this if Input.KeyCode == Enum.KeyCode.ButtonR3 and then I'm good to go.

1 comment
Still need help