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.

6 comments

0

have you played on the one before?

0

@potatoboy99990 No.

0

The cursor is always in the middle of the screen, I believe.

0

Saw a video about it and you are right @OldPalHappy. How would one fix this then, if you know?

0

on xbox they don't really have a cursor. They have a button that cycles through the different GUI buttons. I will look for a better way to explain this

0

Alright, @potatoboy99990, thanks for your attention. I would love to hear if you have found any thing. I've tried and found nothing.