local A=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local o=game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")local M=require(A.Source.InputCategorizer)local O=require(A.Source.SharedConstants.InputCategory)local c={}local function d()local A=M.getLast()~=O.Gamepad o.MouseIconEnabled=A end function c.start()M.changed:Connect(d)d()end return c


local ReplicatedStorage = game:GetService("ReplicatedStorage")
local UserInputService = game:GetService("UserInputService")

local InputCategorizer = require(ReplicatedStorage.Source.InputCategorizer)
local InputCategory = require(ReplicatedStorage.Source.SharedConstants.InputCategory)

local GamepadMouseDisabler = {}

local function updateCursorEnabled()
	local shouldEnable = InputCategorizer.getLast() ~= InputCategory.Gamepad
	UserInputService.MouseIconEnabled = shouldEnable
end

function GamepadMouseDisabler.start()
	InputCategorizer.changed:Connect(updateCursorEnabled)
	updateCursorEnabled()
end

return GamepadMouseDisabler
