internal void Uninitialize() { if (!m_IsInitialized) { return; } m_EventManager = null; m_NativeDeviceManager = null; NativeInputSystem.onEvents -= OnReceiveEvents; m_IsInitialized = false; }
internal void Initialize(IInputEventManager eventManager, INativeInputDeviceManager nativeDeviceManager) { if (m_IsInitialized) { return; } m_EventManager = eventManager; m_NativeDeviceManager = nativeDeviceManager; NativeInputSystem.onEvents += OnReceiveEvents; m_IsInitialized = true; }