3 Commits

Author SHA1 Message Date
Martin Richter
cd0af32a1f Added support for Logitech PTZ Pro camera.
Fixed bug, that settigs dialog didn't show the matching camera names.
2022-10-30 11:58:27 +01:00
Martin Richter
74b5a32679 Delete PTZControl.aps
Not required.
2022-10-06 18:19:01 +02:00
Martin Richter
77eb4db494 Added docu for hotkeys. 2022-10-06 18:17:30 +02:00
6 changed files with 21 additions and 3 deletions

Binary file not shown.

View File

@@ -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.

View File

@@ -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();

View File

@@ -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;

View File

@@ -68,6 +68,18 @@ If you click on a direction button once, the motor is turned on and off again af
If the direction button remains pressed, the motor remains switched on for the corresponding direction until the button is released again.
This control seems more effective and accurate to me and is the standard. The disadvantage is that if the timer interval is too small, the camera does not react immediately when a button is clicked. But since precision was more important to me because our camera is installed relatively far away from the podium, I use this setting with a 70msec timer.
## Hotkeys
The program has serveral hotkeys that allows a control without the mouse when it has the focus.
- Pan-Tilt control with Left, Right, Up, Down keys.
- Home position with Num-0, Home keys.
- Memory function with the M-key.
- Recall stored position with the numeric keys 1-8 or the numeric key pad keys Num-1 to Num-8.#
- Open the setings dialog with Num-Divide or Num-Multiply
- Zoom in/out Page-Up/Down, Num+Plus, Num-Minus
- Select Camera 1. Alt+1, Alt+Num-1, Alt+Page-Up
- Select Camera 2. Alt+2, Alt+Num-2, Alt+Page-Down
## Command Line Options
A few options can be set from the command line. Command-line switches override the settings in the registry.