Files
Dpr-ScriptsOnly/Assets/SwitchNotification.cs
2023-06-20 13:17:31 -05:00

102 lines
2.7 KiB
C#

using System;
using System.Runtime.InteropServices;
using UnityEngine.Playables;
//using UnityEngine.Switch;
public class SwitchNotification
{
public static void SetFocusHandlingModeNotify()
{
//UnityEngine.Switch.Notification.SetFocusHandlingMode(1, (MethodInfo*)0x0);
//CurrentFocusHandlingMode = 1;
return;
}
public static void SetFocusHandlingModeSuspend()
{
}
private static extern void SwitchInvokeNotificationNativeExample();
//private static void NotificationMessageReceived(Notification.Message message)
//{
//}
private static void OnRuntimeMethodLoad()
{
//UnityEngine.Switch.Notification.SetResumeNotificationEnabled(true);
//UnityEngine.Switch.Notification.SetFocusHandlingMode(0);
//CurrentFocusHandlingMode = 0;
//notificationMessageReceived = new Action<Notification.Message>(HandleNotificationMessage);
//UnityEngine.Switch.Notification.notificationMessageReceived += notificationMessageReceived;
//lock (lockObject)
//{
// The following code seems to be a loop with some synchronization logic.
// It's hard to tell what it's doing without more context.
// It seems to be waiting for some condition to be met, but it's not clear what that condition is.
//while (true)
//{
// Do something...
//}
//}
}
private static void OnMessage_ExitRequest()
{
}
private static void OnMessage_FocusStateChanged()
{
}
private static void OnMessage_Resume()
{
}
private static void OnMessage_OperationModeChanged()
{
}
private static void OnMessage_PerformanceModeChanged()
{
}
private static void OnFocusState_InFocus()
{
}
private static void OnFocusState_OutOfFocus()
{
}
private static void OnFocusState_Background()
{
}
public SwitchNotification()
{
}
public static SwitchNotification.NotificationEvent ExitRequest;
public static SwitchNotification.NotificationEvent FocusStateChanged;
public static SwitchNotification.NotificationEvent Resume;
public static SwitchNotification.NotificationEvent OperationModeChanged;
public static SwitchNotification.NotificationEvent PerformanceModeChanged;
public static SwitchNotification.NotificationEvent InFocus;
public static SwitchNotification.NotificationEvent OutOfFocus;
public static SwitchNotification.NotificationEvent Background;
//public static Notification.FocusHandlingMode CurrentFocusHandlingMode;
public delegate void NotificationEvent(int value);
}