Learn
Engine Class
GamepadService
Not Creatable
Service
Not Replicated

Summary
Inherited Members

API Reference
Properties
GamepadCursorEnabled
Roblox Script Security
Read Parallel
Capabilities: Input
GamepadService.GamepadCursorEnabled:boolean
Code Samples
GamepadService - Gamepad Cursor Enabled Property
local gamepadService = game.GamepadService
gamepadService:GetPropertyChangedSignal("GamepadCursorEnabled"):Connect(function()
local enabled = gamepadService.GamepadCursorEnabled
if enabled then
-- Custom code when the virtual cursor is enabled
else
-- Custom code when the virtual cursor is disabled
end
end)

Methods
DisableGamepadCursor
Capabilities: Input
GamepadService:DisableGamepadCursor():()
Returns
()
Code Samples
GamepadService - Disable Gamepad Cursor
local gamepadService = game.GamepadService
local userInputService = game.UserInputService
userInputService.InputBegan:Connect(function(inputObject, gameProcessed)
if inputObject.KeyCode == Enum.KeyCode.ButtonB then
gamepadService:DisableGamepadCursor()
end
end)

EnableGamepadCursor
Capabilities: Input
GamepadService:EnableGamepadCursor(guiObject:Instance):()
Parameters
guiObject:Instance
Returns
()
Code Samples
GamepadService - Enable Gamepad Cursor
local gamepadService = game.GamepadService
local userInputService = game.UserInputService
local startObject = script.Parent
userInputService.InputBegan:Connect(function(inputObject, gameProcessed)
if inputObject.KeyCode == Enum.KeyCode.ButtonA then
gamepadService:EnableGamepadCursor(startObject)
end
end)

©2026 Roblox Corporation. Roblox, the Roblox logo and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.