Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Xbox 1 Shop Gui, cursor position???

Asked by 7 years ago

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.

0
have you played on the one before? User#15461 0 — 7y
0
@potatoboy99990 No. Naxxanar 77 — 7y
0
The cursor is always in the middle of the screen, I believe. OldPalHappy 1477 — 7y
0
Saw a video about it and you are right @OldPalHappy. How would one fix this then, if you know? Naxxanar 77 — 7y
View all comments (2 more)
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 User#15461 0 — 7y
0
Alright, @potatoboy99990, thanks for your attention. I would love to hear if you have found any thing. I've tried and found nothing. Naxxanar 77 — 7y

Answer this question