GamepadService.GamepadCursorEnabled
This boolean is a read only variable that maintains the state of the gamepad virtual cursor.
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)