3 Commits

Author SHA1 Message Date
Martin Richter
31d356e7b4 Small fix for a 64bit build. Compile error due to wrong type usage.
Switch to VS-2022 platform v143.
2023-09-07 08:11:36 +02:00
Martin Richter
eb09cf2aa1 Merge pull request #15 from cuppajoeman/patch-1
Update README.md
@cuppajoeman  Thanks for the fixes
2023-05-25 09:18:51 +02:00
ccn
32bdee48a6 Update README.md
typos
2023-05-24 16:08:15 -04:00
3 changed files with 12 additions and 12 deletions

View File

@@ -29,14 +29,14 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
<UseOfMfc>Static</UseOfMfc>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
<UseOfMfc>Static</UseOfMfc>
@@ -44,14 +44,14 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
<UseOfMfc>Static</UseOfMfc>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
<UseOfMfc>Static</UseOfMfc>

View File

@@ -433,7 +433,7 @@ UINT AFX_CDECL CPTZControlDlg::GuardThread(LPVOID p)
// Event is set.
return 0;
DWORD dwResult = 0;
DWORD_PTR dwResult = 0;
// Check if the application is blocking
if (::SendMessageTimeout(pWnd->GetSafeHwnd(), WM_NULL, 0, 0, SMTO_ABORTIFHUNG | SMTO_NORMAL, 1000, &dwResult)==0)
{

View File

@@ -11,7 +11,7 @@ And finnaly as last feature the PTZcontrol now supports three cameras.
### Where is the basic code from?
It wasn't easy to get code that shows how to control a PTZ camera.
Finally I contacted Lgoitech and I received download link to the `Logitech Collaboration Software Reference Kit` (Logitech CSRK)
Finally I contacted Logitech and I received download link to the `Logitech Collaboration Software Reference Kit` (Logitech CSRK)
I found some Lync remote control code in it, that gave me some hints and the guids and usage for the Logitect camera interface.
## Used interfaces
@@ -29,14 +29,14 @@ Standard controls from the Windows Driver API are used
The program supports tooltips that and you can define them yourself to give the camera presets useful names. (Separate for each camera)
## Used environment and libraries
I used the Visual Studoi 2019 Community Edition to develop this program with C++.
MFC and ATL as the library. No additional software is used.
I used the Visual Studio 2019 Community Edition to develop this program with C++.
Using MFC and ATL as libraries. No additional software is used.
The EXE runs alone, without installing any other files or DLLs or any installation.
## Behaviour
The program is always in the foreground and has been designed relatively compact and small, so that you can hover somewhere over your OBS program and it is really easy to use.
Current selected preset or home position are shown with a green background on the buttons.
Recalling a presets are simply done by clicking on one of the number buttons.
The program is always in the foreground and has been designed relatively compact and small, so that you can hover somewhere over your OBS program and it is really easy to use.
Currently selected preset or home position are shown with a green background on the buttons.
Recalling a preset is simply done by clicking on one of the number buttons.
Presets are changed by pressing the M button (Memory) followed by a number key. The M button turns red as long as it is active.
The program remembers its last position on the screen and is automatically repositioned to when it is started.
@@ -58,7 +58,7 @@ Through an internal guard thread, the application can determine that it is no lo
Otherwise you would have to use the task manager and this can take a lot of time to terminate the application in the hustle and bustle of a livestream.
### Logitech Motion Control
The Logitech cameras have their own interface for pan/tilt control. This moves the camera in X/Y Axe by a certain step value, This control is a special Logitech feature.
The Logitech cameras have their own interface for pan/tilt control. This moves the camera in X/Y axes by a certain step value, This control is a special Logitech feature.
If you click on a direction button once, exactly one step pulse is output.
If you hold down a direction button, a pulse is sent to the camera again and again at a certain interval to change the direction.