function CameraModule.GetCameraControlChoice(m)local t=Players.LocalPlayer if t then if UserInputService:GetLastInputType()==Enum.UserInputType.Touch or UserInputService.TouchEnabled then if t.DevTouchCameraMode==Enum.DevTouchCameraMovementMode.UserChoice then return CameraUtils.ConvertCameraModeEnumToStandard(UserGameSettings.TouchCameraMovementMode)else return CameraUtils.ConvertCameraModeEnumToStandard(t.DevTouchCameraMode)end else if t.DevComputerCameraMode==Enum.DevComputerCameraMovementMode.UserChoice then local m=CameraUtils.ConvertCameraModeEnumToStandard(UserGameSettings.ComputerCameraMovementMode)return CameraUtils.ConvertCameraModeEnumToStandard(m)else return CameraUtils.ConvertCameraModeEnumToStandard(t.DevComputerCameraMode)end end end end function CameraModule.OnCharacterAdded(l,m,t)if l.activeOcclusionModule then l.activeOcclusionModule:CharacterAdded(m,t)end end function CameraModule.OnCharacterRemoving(l,m,t)if l.activeOcclusionModule then l.activeOcclusionModule:CharacterRemoving(m,t)end end function CameraModule.OnPlayerAdded(t,m)m.CharacterAdded:Connect(function(l)t:OnCharacterAdded(l,m)end)m.CharacterRemoving:Connect(function(l)t:OnCharacterRemoving(l,m)end)end function CameraModule.OnMouseLockToggled(m)if m.activeMouseLockController then local t=m.activeMouseLockController:GetIsMouseLocked()local l=m.activeMouseLockController:GetMouseLockOffset()if m.activeCameraController then m.activeCameraController:SetIsMouseLocked(t)m.activeCameraController:SetMouseLockOffset(l)end end end local m=CameraModule.new()return{}

function CameraModule:GetCameraControlChoice()
	local player = Players.LocalPlayer

	if player then
		if UserInputService:GetLastInputType() == Enum.UserInputType.Touch or UserInputService.TouchEnabled then
			-- Touch
			if player.DevTouchCameraMode == Enum.DevTouchCameraMovementMode.UserChoice then
				return CameraUtils.ConvertCameraModeEnumToStandard( UserGameSettings.TouchCameraMovementMode )
			else
				return CameraUtils.ConvertCameraModeEnumToStandard( player.DevTouchCameraMode )
			end
		else
			-- Computer
			if player.DevComputerCameraMode == Enum.DevComputerCameraMovementMode.UserChoice then
				local computerMovementMode = CameraUtils.ConvertCameraModeEnumToStandard(UserGameSettings.ComputerCameraMovementMode)
				return CameraUtils.ConvertCameraModeEnumToStandard(computerMovementMode)
			else
				return CameraUtils.ConvertCameraModeEnumToStandard(player.DevComputerCameraMode)
			end
		end
	end
end

function CameraModule:OnCharacterAdded(char, player)
	if self.activeOcclusionModule then
		self.activeOcclusionModule:CharacterAdded(char, player)
	end
end

function CameraModule:OnCharacterRemoving(char, player)
	if self.activeOcclusionModule then
		self.activeOcclusionModule:CharacterRemoving(char, player)
	end
end

function CameraModule:OnPlayerAdded(player)
	player.CharacterAdded:Connect(function(char)
		self:OnCharacterAdded(char, player)
	end)
	player.CharacterRemoving:Connect(function(char)
		self:OnCharacterRemoving(char, player)
	end)
end

function CameraModule:OnMouseLockToggled()
	if self.activeMouseLockController then
		local mouseLocked = self.activeMouseLockController:GetIsMouseLocked()
		local mouseLockOffset = self.activeMouseLockController:GetMouseLockOffset()
		if self.activeCameraController then
			self.activeCameraController:SetIsMouseLocked(mouseLocked)
			self.activeCameraController:SetMouseLockOffset(mouseLockOffset)
		end
	end
end

local cameraModuleObject = CameraModule.new()

return {}
