bool InitInternal(InputEventHandlerDelegate inputEventHandler) { this.inputEventHandler = inputEventHandler; if (!OnInit()) { return(false); } return(true); }
void ShutdownInternal() { foreach (InputDevice device in devices) { device.CallOnShutdown(); } devices.Clear(); OnShutdown(); inputEventHandler = 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); }