Example #1
0
        public ConfigInput(ARDrone.Input.InputManager inputManager)
        {
            InitializeComponent();
            comboBoxDevices.SelectedIndex = 0;

            Init(inputManager);
        }
Example #2
0
        public InputConfigDialog()
        {
            InitializeComponent();

            inputManager = new ARDrone.Input.InputManager(Utility.GetWindowHandle(this));
            Init(inputManager);
        }
Example #3
0
        public InputConfigDialog(ARDrone.Input.InputManager inputManager)
        {
            InitializeComponent();
            CreateControlsForNoDevice();

            Init(inputManager);
        }
Example #4
0
        public ConfigInput()
        {
            InitializeComponent();

            inputManager = new ARDrone.Input.InputManager(Utility.GetWindowHandle(this));
            Init(inputManager);
        }
Example #5
0
        public ConfigInput()
        {
            InitializeComponent();
            comboBoxDevices.SelectedIndex = 0;

            inputManager = new ARDrone.Input.InputManager(this.Handle);
            Init(inputManager);
        }
        public ConfigInput()
        {
            InitializeComponent();
            comboBoxDevices.SelectedIndex = 0;

            inputManager = new ARDrone.Input.InputManager(this.Handle);
            Init(inputManager);
        }
        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);
        }
Example #8
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);
        }
        public NavDataRecorder(DroneControl droneControl, InputManager inputManager, double interval=50)
        {
            xNavData = new XElement("NavData");
            dataPoints = 0;
            navDataTimer = new Timer(interval);
            navDataTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent);

            this.droneControl = droneControl;
            this.inputManager = inputManager;
        }
        public InputManager(IntPtr windowHandle)
        {
            this.windowHandle = windowHandle;
            InputManager.instance = this;

            inputDevices = new List<GenericInput>();
            lastInputState = new InputState();

            StartInputThread();
        }
Example #11
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>();
        }
Example #12
0
 public void InitializeInputManager(ARDrone.Input.InputManager inputManager)
 {
     this.inputManager = inputManager;
     AddInputListeners();
 }
Example #13
0
 public void Init(ARDrone.Input.InputManager inputManager)
 {
     InitializeControlMap();
     InitializeInputManager(inputManager);
     InitializeDeviceList();
 }
 public void InitializeInputManager()
 {
     inputManager = new ARDrone.Input.InputManager(Utility.GetWindowHandle(this));
     AddInputListeners();
 }
 public ConfigInput(ARDrone.Input.InputManager inputManager)
 {
     InitializeComponent();
     Init(inputManager);
 }
 public void InitializeInputManager()
 {
     inputManager = new ARDrone.Input.InputManager(Utility.GetWindowHandle(this));
     AddInputListeners();
 }
Example #17
0
 public void InitializeInputManager()
 {
     inputManager = new ARDrone.Input.InputManager(this.Handle);
     AddInputListeners();
 }
        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>();
        }
 public void InitializeInputManager(ARDrone.Input.InputManager inputManager)
 {
     this.inputManager = inputManager;
     AddInputListeners();
 }
Example #20
0
 public void InitializeInputManager()
 {
     inputManager = new ARDrone.Input.InputManager(this.Handle);
     AddInputListeners();
 }