private void CheckForKeyUps()
{
bool changeLeap = false;
if (Input.GetKeyUp(KeyCode.Z)) {
currentDevice = Device.Leap;
currentTask = Task.TranslationRotation;
changeLeap = true;
} else if (Input.GetKeyUp(KeyCode.X)) {
currentDevice = Device.Leap;
currentTask = Task.TranslationIntensity;
changeLeap = true;
if (currentTrial == -1) {
currentLightTarget = lightTargets[12];
}
} else if (Input.GetKeyUp(KeyCode.C)) {
currentDevice = Device.Mouse;
currentTask = Task.TranslationRotation;
changeLeap = true;
} else if (Input.GetKeyUp(KeyCode.V)) {
currentDevice = Device.Mouse;
currentTask = Task.TranslationIntensity;
changeLeap = true;
print (currentTrial);
if (currentTrial == -1) {
currentLightTarget = lightTargets[12];
}
} else if (Input.GetKeyUp(KeyCode.B)) {
currentDevice = Device.Mouse;
currentTask = Task.Setup;
changeLeap = true;
} else if (Input.GetKeyUp(KeyCode.N)) {
PrintCurrentParameters();
currentDevice = Device.Mouse;
currentTask = Task.TranslationIntensity;
changeLeap = true;
}
if (changeLeap) {
int leapMode = currentTask == Task.TranslationRotation ? 0 : 1;
LeapInput.ChangeMode(currentDevice == Device.Leap ? leapMode : -5);
changeLeap = false;
}
}