Skip to content

Commit

Permalink
Add protocol doc;
Browse files Browse the repository at this point in the history
Update files;
Add new example.
  • Loading branch information
BigBro2014 committed Mar 23, 2024
1 parent 2b05188 commit 66d1162
Show file tree
Hide file tree
Showing 32 changed files with 936 additions and 108 deletions.
Binary file modified bin/windows/gforce32.dll
Binary file not shown.
Binary file modified bin/windows/gforce32d.dll
Binary file not shown.
Binary file modified bin/windows/gforce64.dll
Binary file not shown.
Binary file modified bin/windows/gforce64d.dll
Binary file not shown.
Binary file modified bin/windows/gforcecsharp32.dll
Binary file not shown.
Binary file modified bin/windows/gforcecsharp32d.dll
Binary file not shown.
Binary file modified bin/windows/gforcecsharp64.dll
Binary file not shown.
Binary file modified bin/windows/gforcecsharp64d.dll
Binary file not shown.
Empty file added doc/.gitkeep
Empty file.
Binary file added doc/gForce_Data_Protocol-chs.docx
Binary file not shown.
Binary file added doc/gForce_Data_Protocol-eng.docx
Binary file not shown.
8 changes: 4 additions & 4 deletions example/EmgRawDataCapture/EmgRawDataCapture.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,26 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</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>
</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>
</PropertyGroup>
Expand Down
14 changes: 0 additions & 14 deletions example/FetchGForceData/FetchGForceData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,21 +268,7 @@ class GForceHandle : public HubListener
break;

case DeviceDataType::DDT_EMGRAW:
{
auto ptr = data->data();

for (int i = 0; i < 128/*depends on setting*/; i++)
{
//for 8bpp mode
printf("Emg data [%d] = %u\n", i, *(reinterpret_cast<const uint8_t*>(ptr++)));

//for 12bpp mode
// printf("Emg data [%d] = %u\n", i, *(reinterpret_cast<const uint16_t*>(ptr)));
// ptr += 2;
}

break;
}

case DeviceDataType::DDT_HIDMOUSE:
break;
Expand Down
8 changes: 4 additions & 4 deletions example/FetchGForceData/FetchGForceData.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,26 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</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>
</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>
</PropertyGroup>
Expand Down
Loading

0 comments on commit 66d1162

Please sign in to comment.