private void UpdateTask() { if (trialList[currentTrial] % tasksPerTrial < tasksPerTrial / 2) currentDevice = Device.Mouse; else currentDevice = Device.Leap; }