internal static void Shutdown() { if (instance != null) { instance.ShutdownInternal(); instance = null; } }
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); }