Pressing 'W' has no effect in sing screen if no devices were found

This commit is contained in:
Stephan Sundermann committed 2012-07-13 15:18:32 +02:00
1 parent 0be378605d
commit 02f1811d35
1 file changed
+8 -5
+8 -5
View File
@@ -203,11 +203,14 @@ namespace Vocaluxe.Screens
break; break;
case Keys.W: case Keys.W:
_Webcam = !_Webcam; if (CWebcam.GetDevices().Length > 0)
if (_Webcam) {
CWebcam.Start(); _Webcam = !_Webcam;
else if (_Webcam)
CWebcam.Stop(); CWebcam.Start();
else
CWebcam.Stop();
}
break; break;
case Keys.Enter: case Keys.Enter: