示例#1
0
 internal static void Shutdown()
 {
     if (instance != null)
     {
         instance.ShutdownInternal();
         instance = null;
     }
 }
示例#2
0
        internal static bool Init(InputDeviceManager instance, InputEventHandlerDelegate inputEventHandler)
        {
            Trace.Assert(InputDeviceManager.instance == null, "InputDeviceManager has been already created");
            InputDeviceManager.instance = instance;

            if (!instance.InitInternal(inputEventHandler))
            {
                Shutdown();
                return(false);
            }

            return(true);
        }