Added support for Logitech PTZ Pro camera.
Fixed bug, that settigs dialog didn't show the matching camera names.
This commit is contained in:
@@ -27,7 +27,9 @@
|
||||
#define REG_NORESET _T("NoReset")
|
||||
#define REG_NOGUARD _T("NoGuard")
|
||||
|
||||
#define DEFAULT_DEVICE_NAME_1 _T("PTZ Pro 2")
|
||||
// Allow the cameras with the following tags in the device name.
|
||||
// This will match all Logitech PRT Pro, PTZ Pro 2 and Rally camers.
|
||||
#define DEFAULT_DEVICE_NAME_1 _T("PTZ Pro")
|
||||
#define DEFAULT_DEVICE_NAME_2 _T("Logi Rally")
|
||||
|
||||
#define TIMER_FOCUS_CHECK 4711
|
||||
|
||||
Binary file not shown.
@@ -496,6 +496,9 @@ CStringArray aStrCameraNameToSearch;
|
||||
}
|
||||
}
|
||||
|
||||
// save the camera names.
|
||||
m_strCameraDeviceNames = strCameras;
|
||||
|
||||
// On SHIFT and CTRL key down we show all found camera device names.
|
||||
if (theApp.m_bShowDevices || (::GetAsyncKeyState(VK_SHIFT) & 0x8000) && (::GetAsyncKeyState(VK_CONTROL) & 0x8000))
|
||||
{
|
||||
@@ -789,7 +792,8 @@ void CPTZControlDlg::OnBtUnpushed()
|
||||
void CPTZControlDlg::OnBtSettings()
|
||||
{
|
||||
CSettingsDlg dlg;
|
||||
dlg.m_strCameraName = m_strCameraDeviceName;
|
||||
dlg.m_strCameraName = m_strCameraDeviceNames;
|
||||
dlg.m_strCameraName.Replace(_T("\r\n"), _T(", "));
|
||||
dlg.m_bLogitechCameraControl = GetCurrentWebCam().UseLogitechMotionControl();
|
||||
dlg.m_iMotorIntervalTimer = GetCurrentWebCam().GetMotorIntervalTimer();
|
||||
|
||||
|
||||
@@ -100,7 +100,7 @@ protected:
|
||||
CString m_strTooltips[NUM_MAX_WEBCAMS][CWebcamController::NUM_PRESETS];
|
||||
|
||||
HACCEL m_hAccel;
|
||||
CString m_strCameraDeviceName;
|
||||
CString m_strCameraDeviceNames;
|
||||
int m_iCurrentWebCam; // zero based index to m_aWebCams
|
||||
int m_iNumWebCams;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user