-- Decompiled with the Synapse X Luau decompiler.


local v1 = require(game.ReplicatedStorage:WaitForChild("Resources"));
while not v1.Loaded do
	game:GetService("RunService").Heartbeat:Wait();
end;
local v4
local v8
local u1 = nil;
local function v2()
	local l__MouseEnabled__3 = v1.UserInputService.MouseEnabled;
	 v4 = false;
	local v5 = false;
	local v6 = false;
	local v7 = false;
	if v1.UserInputService.GamepadEnabled then
		v7 = true;
	elseif v1.GuiService:IsTenFootInterface() then
		if not l__MouseEnabled__3 then
			v7 = true;
		elseif v1.UserInputService.VREnabled then
			v4 = true;
			v6 = v1.Settings.SupportsVR or false;
		elseif v1.UserInputService.TouchEnabled then
			if not l__MouseEnabled__3 then
				v5 = true;
			elseif not v1.UserInputService.GyroscopeEnabled then
				if v1.UserInputService.AccelerometerEnabled then
					v5 = true;
				else
					v6 = true;
				end;
			else
				v5 = true;
			end;
		elseif not v1.UserInputService.GyroscopeEnabled then
			if v1.UserInputService.AccelerometerEnabled then
				v5 = true;
			else
				v6 = true;
			end;
		else
			v5 = true;
		end;
	elseif v1.UserInputService.VREnabled then
		v4 = true;
		v6 = v1.Settings.SupportsVR or false;
	elseif v1.UserInputService.TouchEnabled then
		if not l__MouseEnabled__3 then
			v5 = true;
		elseif not v1.UserInputService.GyroscopeEnabled then
			if v1.UserInputService.AccelerometerEnabled then
				v5 = true;
			else
				v6 = true;
			end;
		else
			v5 = true;
		end;
	elseif not v1.UserInputService.GyroscopeEnabled then
		if v1.UserInputService.AccelerometerEnabled then
			v5 = true;
		else
			v6 = true;
		end;
	else
		v5 = true;
	end;
	if v6 then
		 v8 = "Desktop";
	elseif v5 then
		v8 = "Mobile";
	elseif v7 then
		v8 = "Console";
	else
		v8 = v4 
	end;
	v1.Variables.Desktop = v6;
	v1.Variables.Mobile = v5;
	v1.Variables.Console = v7;
	v1.Variables.VR = v4;
	if v8 ~= u1 then
		u1 = v8;
		v1.Signal.Fire("Changed Platform", v8);
	end;
end;
v1.UserInputService.GamepadConnected:Connect(v2);
v1.UserInputService.GamepadDisconnected:Connect(v2);
task.defer(function()
	while true do
		v2();
		task.wait(3);	
	end;
end);

