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); }
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); }
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>(); }
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>(); }