Xbox 1 Shop Gui, cursor position???
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?
1 | UserInputService.InputBegan:connect( function (Input, Processed) |
2 | if Input.UserInputType = = Enum.UserInputType.Gamepad 1 then |
3 | if Input.KeyCode = = Enum.KeyCode.ButtonR 3 then |
4 | MainEvent:FireServer( 'Buy' , 'FieryMachete' ) |
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.