コード例 #1
0
        bool InitInternal(InputEventHandlerDelegate inputEventHandler)
        {
            this.inputEventHandler = inputEventHandler;

            if (!OnInit())
            {
                return(false);
            }

            return(true);
        }
コード例 #2
0
        void ShutdownInternal()
        {
            foreach (InputDevice device in devices)
            {
                device.CallOnShutdown();
            }
            devices.Clear();

            OnShutdown();

            inputEventHandler = null;
        }
コード例 #3
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);
        }