![]() ![]() If input.Ke圜ode = Enum.Ke圜ode.ButtonX then UserInputService.InputBegan:Connect(function(input, processed) ![]() Local UserInputService = game:GetService("UserInputService") ![]() Local GamepadService = game:GetService("GamepadService") Paste this into a LocalScript that is a child of a GuiObject ( TextButton, ImageButton, etc) under StarterGui. In this example, the user must press buttonX on a gamepad to enable the cursor on the specified UI button and press buttonY to disable the cursor. GamepadCursorEnabled: True when the gamepad cursor is active, false otherwise Turns off the Virtual Cursor if it is on and fires a property changed signal on GamepadCursorEnabled DisableGamepadCursor GamepadService:DisableGamepadCursor() If it isn’t valid, it will print the same warning and the cursor will not move position. If the cursor is already active, calling EnableGamepadCursor again will reposition the cursor over that object (if it is valid). GuiObject moves into the scrolling frame and starts the cursor centered over the object. GuiObject outside the viewport (Or, any part of the gui object that’s off screen)Ĭhild of ScrollingFrame with clipping set to false: GuiObject outside of scrolling frame (Object child of scrolling frame and not visible on screen)Ĭhild of ScrollingFrame with clipping set to true: GuiObject outside scrolling frame window but inside viewport GuiObject has Visible set to false or any parent visible set to false.Ĭhild of ScreenGui with Enabled set to false ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |