public PrecisionGazeMouseForm() { InitializeComponent(); QuitButton.Select(); log.Debug("Application starting"); // Set the default mode ModeBox.SelectedIndex = 0; controller = new MouseController(this); controller.setMode(MouseController.Mode.EYEX_AND_EVIACAM); controller.setMovement(MouseController.Movement.HOTKEY); controller.Sensitivity = SensitivityInput.Value; movementHotKey = (Keys)Enum.Parse(typeof(Keys), Properties.Settings.Default.MovementKey); clickHotKey = (Keys)Enum.Parse(typeof(Keys), Properties.Settings.Default.ClickOnKey); pauseHotKey = (Keys)Enum.Parse(typeof(Keys), Properties.Settings.Default.PauseOnKey); eViacamKey = (Keys)Enum.Parse(typeof(Keys), Properties.Settings.Default.eViacamKey); _globalKeyboardHook = new GlobalKeyboardHook(); _globalKeyboardHook.KeyboardPressed += OnKeyPressed; overlay = new OverlayForm(controller); overlay.ShowWarpBar = warpBar.Checked; overlay.ShowGazeTracker = gazeTracker.Checked; overlay.ShowIfTracking(); Timer refreshTimer = new System.Windows.Forms.Timer(); refreshTimer.Tick += new EventHandler(RefreshScreen); refreshTimer.Interval = 33; refreshTimer.Start(); }
public PrecisionGazeMouseForm() { InitializeComponent(); QuitButton.Select(); // Set the default mode ModeBox.SelectedIndex = 0; controller = new MouseController(this); controller.setMode((MouseController.Mode)ModeBox.SelectedIndex); controller.setMovement(MouseController.Movement.HOTKEY); hotKey = Keys.F3; _globalKeyboardHook = new GlobalKeyboardHook(); _globalKeyboardHook.KeyboardPressed += OnKeyPressed; Timer refreshTimer = new System.Windows.Forms.Timer(); refreshTimer.Tick += new EventHandler(RefreshScreen); refreshTimer.Interval = 33; refreshTimer.Start(); }
public PrecisionGazeMouseForm() { log.Debug("PrecisionGazeMouseForm constructor starting"); InitializeComponent(); QuitButton.Select(); controller = new MouseController(SetMousePosition); _globalKeyboardHook = new GlobalKeyboardHook(); _globalKeyboardHook.KeyboardPressed += OnKeyPressed; overlay = new OverlayForm(controller); overlay.ShowWarpBar = warpBar.Checked; overlay.ShowGazeTracker = gazeTracker.Checked; overlay.ShowIfTracking(); Timer refreshTimer = new System.Windows.Forms.Timer(); refreshTimer.Tick += new EventHandler(RefreshScreen); refreshTimer.Interval = 33; refreshTimer.Start(); if (Properties.Settings.Default.ContinuousMovement) { ChooseContinuousMovement(); } else { ChooseHotkeyMovement(); } controller.Sensitivity = SensitivityInput.Value; updateModeFromSelectedMode(); movementHotKey = (Keys)Enum.Parse(typeof(Keys), Properties.Settings.Default.MovementKey); clickHotKey = (Keys)Enum.Parse(typeof(Keys), Properties.Settings.Default.ClickOnKey); pauseHotKey = (Keys)Enum.Parse(typeof(Keys), Properties.Settings.Default.PauseOnKey); eViacamKey = (Keys)Enum.Parse(typeof(Keys), Properties.Settings.Default.eViacamKey); log.Debug("PrecisionGazeMouseForm constructor completed"); }
public PrecisionGazeMouseForm() { InitializeComponent(); QuitButton.Select(); // Set the default mode ModeBox.SelectedIndex = 0; controller = new MouseController(this); controller.setMode(MouseController.Mode.EYEX_AND_EVIACAM); controller.setMovement(MouseController.Movement.HOTKEY); controller.Sensitivity = SensitivityInput.Value; movementHotKey = Keys.F3; clickHotKey = Keys.F3; pauseHotKey = Keys.F10; _globalKeyboardHook = new GlobalKeyboardHook(); _globalKeyboardHook.KeyboardPressed += OnKeyPressed; Timer refreshTimer = new System.Windows.Forms.Timer(); refreshTimer.Tick += new EventHandler(RefreshScreen); refreshTimer.Interval = 33; refreshTimer.Start(); }