cemu-DS4Windows/DS4Control/Log.cs

31 lines
667 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DS4Control
{
public class Log
{
public static event EventHandler<DebugEventArgs> TrayIconLog;
public static event EventHandler<DebugEventArgs> GuiLog;
public static void LogToGui(string data)
{
if (GuiLog != null)
{
GuiLog(null, new DebugEventArgs(data));
}
}
public static void LogToTray(string data)
{
if (TrayIconLog != null)
{
TrayIconLog(null, new DebugEventArgs(data));
}
}
}
}