diff --git a/PTZControl/PTZControl.h b/PTZControl/PTZControl.h index 595c698..24ce5da 100644 --- a/PTZControl/PTZControl.h +++ b/PTZControl/PTZControl.h @@ -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 diff --git a/PTZControl/PTZControl.rc b/PTZControl/PTZControl.rc index 2506143..e49360e 100644 Binary files a/PTZControl/PTZControl.rc and b/PTZControl/PTZControl.rc differ diff --git a/PTZControl/PTZControlDlg.cpp b/PTZControl/PTZControlDlg.cpp index a7307a5..882c9a0 100644 --- a/PTZControl/PTZControlDlg.cpp +++ b/PTZControl/PTZControlDlg.cpp @@ -495,6 +495,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(); diff --git a/PTZControl/PTZControlDlg.h b/PTZControl/PTZControlDlg.h index e3e7318..1bb3570 100644 --- a/PTZControl/PTZControlDlg.h +++ b/PTZControl/PTZControlDlg.h @@ -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;