Skip to content

Service · inherits Instance

GamepadService

Official docs ↗

The GamepadService is internally responsible for handling inputs from various controllers, such as Xbox One or PlayStation DualShock controllers.

About GamepadService

The GamepadService is internally responsible for handling inputs from various controllers, such as Xbox One or PlayStation DualShock controllers. It also handles APIs used with the gamepad virtual cursor. You can enable the gamepad cursor for your experience by setting VirtualCursorMode under StarterGui to Enabled.

Properties 1

  • GamepadCursorEnabled: booleanThe state of the gamepad virtual cursor.

    This boolean is a read only variable that maintains the state of the gamepad virtual cursor. You can read this property but not write to it.

Methods 2

  • DisableGamepadCursor() → ()Disables the gamepad cursor, if currently enabled.

    This function disables the gamepad cursor, if it's currently enabled.

  • EnableGamepadCursor(guiObject: Instance) → ()Enables the gamepad cursor or updates its position.

    This function enables the gamepad cursor if it's currently disabled. If the cursor is already enabled, calling the API updates the cursor's position. The function accepts a GuiObject parameter, but there are some invalid cases. Please note that in order to set the cursor to the default position, nil must be passed in as a parameter. Providing no argument will result in an error.

GamepadService also has every member of Instance. Deprecated and Roblox-only members are hidden.

Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.