Example #1
0
        /// <summary>
        /// This is the main form that we will use in a windows based environment. It also sets the default selections for the dropdown/combo boxes
        /// </summary>
        public MainForm()
        {
            //init components
            ETDevice = new ETController();
            calibrateET = new ETCalibrate();
            screenVideo = new CustomScreenCapture();
            updatePoints = true;
            serverListenerEnabled = true;
            recordData = false;
            dataPoints = new ETSampleManager(ETDevice);
            dataPoints.startDataFeedback();
            dataSampleRate = 5;
            //init ui components (auto generated)
            InitializeComponent();

            //setup the default combobox selections
            callibrationPointComboBox.SelectedIndex = 2;
            targetShapeComboBox.SelectedIndex = 0;
            dataExportComboBox.SelectedIndex = 0;
            dataSampleRateComboBox.SelectedIndex = 2;

            Thread serverListener = new Thread(new ThreadStart(startServerListener));
            serverListener.Name = "Server Listener Thread";
            serverListener.Start();

            //setup Escape key to exit ET mouse control
            RegisterHotKey(this.Handle, this.GetHashCode(), 0, (int) Keys.Escape);
        }
Example #2
0
        /// <summary>
        /// This is the main form that we will use in a windows based environment. It also sets the default selections for the dropdown/combo boxes
        /// </summary>
        public MainForm()
        {
            //init components
            ETDevice              = new ETController();
            calibrateET           = new ETCalibrate();
            screenVideo           = new CustomScreenCapture();
            updatePoints          = true;
            serverListenerEnabled = true;
            recordData            = false;
            dataPoints            = new ETSampleManager(ETDevice);
            dataPoints.startDataFeedback();
            dataSampleRate = 5;
            //init ui components (auto generated)
            InitializeComponent();

            //setup the default combobox selections
            callibrationPointComboBox.SelectedIndex = 2;
            targetShapeComboBox.SelectedIndex       = 0;
            dataExportComboBox.SelectedIndex        = 0;
            dataSampleRateComboBox.SelectedIndex    = 2;


            Thread serverListener = new Thread(new ThreadStart(startServerListener));

            serverListener.Name = "Server Listener Thread";
            serverListener.Start();

            //setup Escape key to exit ET mouse control
            RegisterHotKey(this.Handle, this.GetHashCode(), 0, (int)Keys.Escape);
        }
Example #3
0
        //This function is called everytime new data is sent
        public virtual void GetSampleCallbackFunction(ETController.SampleStruct sampleData)
        {
            etPositionData = sampleData;

            //do something here (this method should be overridden in your code see ExampleDataUpdate.cs)
        }
Example #4
0
 public ETSampleManager(ETController inETDevice)
 {
     ETDevice = inETDevice;
 }
Example #5
0
 public ETSampleManager(ETController inETDevice)
 {
     ETDevice = inETDevice;
 }