public static void Shutdown() { if (instance != null) { instance.ShutdownInternal(); instance = null; } }
/////////////////////////////////////////// unsafe public static bool Init(IntPtr windowHandle, IDirectInput *alreadyCreatedDirectInput) { if (instance != null) { Log.Fatal("SystemMouseDevice.Init: instance != null."); return(false); } NativeLibraryManager.PreLoadLibrary("NeoAxisCoreNative"); instance = new DirectInputMouseDevice(); if (!instance.InitInternal(windowHandle, alreadyCreatedDirectInput)) { Shutdown(); return(false); } return(true); }