Ejemplo n.º 1
0
        private void DisposeInputManager()
        {
            inputManager.SwitchInputMode(Input.InputManager.InputMode.NoInput);

            inputManager.NewInputDevice   -= new NewInputDeviceHandler(inputManager_NewInputDevice);
            inputManager.InputDeviceLost  -= new InputDeviceLostHandler(inputManager_InputDeviceLost);
            inputManager.RawInputReceived -= new RawInputReceivedHandler(inputManager_RawInputReceived);
        }
Ejemplo n.º 2
0
        private void OpenInputConfigDialog()
        {
            if (droneControl.IsConnected)
            {
                return;
            }

            inputManager.SwitchInputMode(Input.InputManager.InputMode.NoInput);

            InputConfigDialog configInput = new InputConfigDialog(inputManager);

            configInput.ShowDialog();

            inputManager.SwitchInputMode(Input.InputManager.InputMode.ControlInput);
        }
        public void InitializeInputManager(ARDrone.Input.InputManager inputManager)
        {
            this.inputManager = inputManager;
            inputManager.SwitchInputMode(Input.InputManager.InputMode.NoInput);

            inputManager.NewInputDevice += new NewInputDeviceHandler(inputManager_NewInputDevice);
            inputManager.InputDeviceLost += new InputDeviceLostHandler(inputManager_InputDeviceLost);
            inputManager.RawInputReceived += new RawInputReceivedHandler(inputManager_RawInputReceived);
        }
Ejemplo n.º 4
0
        public void InitializeInputManager(ARDrone.Input.InputManager inputManager)
        {
            this.inputManager = inputManager;
            inputManager.SwitchInputMode(Input.InputManager.InputMode.NoInput);

            inputManager.NewInputDevice   += new NewInputDeviceHandler(inputManager_NewInputDevice);
            inputManager.InputDeviceLost  += new InputDeviceLostHandler(inputManager_InputDeviceLost);
            inputManager.RawInputReceived += new RawInputReceivedHandler(inputManager_RawInputReceived);
        }
Ejemplo n.º 5
0
        private void InitializeInputManager()
        {
            inputManager = new ARDrone.Input.InputManager(Utility.GetWindowHandle(this));
            inputManager.SwitchInputMode(Input.InputManager.InputMode.ControlInput);

            inputManager.NewInputState   += inputManager_NewInputState;
            inputManager.NewInputDevice  += inputManager_NewInputDevice;
            inputManager.InputDeviceLost += inputManager_InputDeviceLost;

            booleanInputFadeout = new Dictionary <String, DateTime>();
        }
Ejemplo n.º 6
0
        private void InitializeInputManager()
        {
            inputManager = new ARDrone.Input.InputManager(Utility.GetWindowHandle(this));
            inputManager.SwitchInputMode(Input.InputManager.InputMode.ControlInput);

            inputManager.NewInputState += inputManager_NewInputState;
            inputManager.NewInputDevice += inputManager_NewInputDevice;
            inputManager.InputDeviceLost += inputManager_InputDeviceLost;

            booleanInputFadeout = new Dictionary<String, DateTime>();
        }