private void camDown(object sender, EventArgs e) { int wasButton = CameraRig.ConnectedCameras[CameraRig.ConfigCam].displayButton; int nowButton; if (wasButton == 1) { nowButton = 9; } else { nowButton = wasButton - 1; } CameraRig.changeDisplayButton(bubble.profileInUse, selectedWebcam, CameraRig.ConfigCam, nowButton); cameraSwitch(nowButton, true); }
private void camDown(object sender, EventArgs e) { int wasButton = CameraRig.rig[CameraRig.drawCam].displayButton; int nowButton; if (wasButton == 1) { nowButton = 9; } else { nowButton = wasButton - 1; } CameraRig.changeDisplayButton(bubble.profileInUse, selectedWebcam, CameraRig.drawCam, nowButton); //cameraSwitch(nowButton, false); camButtons.changeDisplayButton(wasButton, nowButton); cameraSwitch(nowButton, true); //camButtonSetColours(); }