summaryrefslogtreecommitdiffhomepage
path: root/FTNoIR_Protocol_MOUSE
diff options
context:
space:
mode:
Diffstat (limited to 'FTNoIR_Protocol_MOUSE')
-rw-r--r--FTNoIR_Protocol_MOUSE/FTNoIR_Protocol_MOUSE.h9
-rw-r--r--FTNoIR_Protocol_MOUSE/FTNoIR_Protocol_MOUSE.vcproj46
-rw-r--r--FTNoIR_Protocol_MOUSE/FTNoIR_mousecontrols.ui10
-rw-r--r--FTNoIR_Protocol_MOUSE/Protocol.qrc5
-rw-r--r--FTNoIR_Protocol_MOUSE/images/Mouse.icobin0 -> 17542 bytes
5 files changed, 66 insertions, 4 deletions
diff --git a/FTNoIR_Protocol_MOUSE/FTNoIR_Protocol_MOUSE.h b/FTNoIR_Protocol_MOUSE/FTNoIR_Protocol_MOUSE.h
index af9574ca..dfe4ae3e 100644
--- a/FTNoIR_Protocol_MOUSE/FTNoIR_Protocol_MOUSE.h
+++ b/FTNoIR_Protocol_MOUSE/FTNoIR_Protocol_MOUSE.h
@@ -71,6 +71,10 @@ public:
void sendHeadposeToGame( T6DOF *headpose );
void getNameFromGame( char *dest ); // Take care dest can handle up to 100 chars...
+ void getFullName(QString *strToBeFilled) { *strToBeFilled = QString("Mouse Look"); };
+ void getShortName(QString *strToBeFilled) { *strToBeFilled = QString("Mouse Look"); };
+ void getDescription(QString *strToBeFilled) { *strToBeFilled = QString("Mouse Look protocol"); };
+
private:
HANDLE h;
INPUT MouseStruct;
@@ -107,6 +111,11 @@ public:
void Release(); // Member functions which are accessible from outside the DLL
void Initialize(QWidget *parent);
+ void getFullName(QString *strToBeFilled) { *strToBeFilled = QString("Mouse Look"); };
+ void getShortName(QString *strToBeFilled) { *strToBeFilled = QString("Mouse Look"); };
+ void getDescription(QString *strToBeFilled) { *strToBeFilled = QString("Mouse Look protocol"); };
+ void getIcon(QIcon *icon) { *icon = QIcon(":/images/Mouse.ico"); };
+
private:
Ui::UICMOUSEControls ui;
void loadSettings();
diff --git a/FTNoIR_Protocol_MOUSE/FTNoIR_Protocol_MOUSE.vcproj b/FTNoIR_Protocol_MOUSE/FTNoIR_Protocol_MOUSE.vcproj
index 1cfa3218..ec50f7ad 100644
--- a/FTNoIR_Protocol_MOUSE/FTNoIR_Protocol_MOUSE.vcproj
+++ b/FTNoIR_Protocol_MOUSE/FTNoIR_Protocol_MOUSE.vcproj
@@ -250,6 +250,32 @@
UniqueIdentifier="{D9D6E242-F8AF-46E4-B9FD-80ECBC20BA3E}"
ParseFiles="false"
>
+ <File
+ RelativePath=".\Protocol.qrc"
+ >
+ <FileConfiguration
+ Name="Release|Win32"
+ >
+ <Tool
+ Name="VCCustomBuildTool"
+ Description="Rcc&apos;ing $(InputFileName)..."
+ CommandLine="&quot;$(QTDIR)\bin\rcc.exe&quot; -name &quot;$(InputName)&quot; -no-compress &quot;$(InputPath)&quot; -o .\GeneratedFiles\qrc_$(InputName).cpp&#x0D;&#x0A;"
+ AdditionalDependencies="$(InputPath);.\images\FaceTrackNoIR.ico"
+ Outputs=".\GeneratedFiles\qrc_$(InputName).cpp"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug|Win32"
+ >
+ <Tool
+ Name="VCCustomBuildTool"
+ Description="Rcc&apos;ing $(InputFileName)..."
+ CommandLine="&quot;$(QTDIR)\bin\rcc.exe&quot; -name &quot;$(InputName)&quot; -no-compress &quot;$(InputPath)&quot; -o .\GeneratedFiles\qrc_$(InputName).cpp&#x0D;&#x0A;"
+ AdditionalDependencies="$(InputPath);.\images\FaceTrackNoIR.ico"
+ Outputs=".\GeneratedFiles\qrc_$(InputName).cpp"
+ />
+ </FileConfiguration>
+ </File>
</Filter>
<Filter
Name="Generated Files"
@@ -258,6 +284,26 @@
SourceControlFiles="false"
>
<File
+ RelativePath=".\generatedfiles\qrc_Protocol.cpp"
+ >
+ <FileConfiguration
+ Name="Release|Win32"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ UsePrecompiledHeader="0"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug|Win32"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ UsePrecompiledHeader="0"
+ />
+ </FileConfiguration>
+ </File>
+ <File
RelativePath=".\GeneratedFiles\ui_FTNoIR_MOUSEcontrols.h"
>
</File>
diff --git a/FTNoIR_Protocol_MOUSE/FTNoIR_mousecontrols.ui b/FTNoIR_Protocol_MOUSE/FTNoIR_mousecontrols.ui
index bb32ff11..4a6cc3b9 100644
--- a/FTNoIR_Protocol_MOUSE/FTNoIR_mousecontrols.ui
+++ b/FTNoIR_Protocol_MOUSE/FTNoIR_mousecontrols.ui
@@ -11,11 +11,11 @@
</rect>
</property>
<property name="windowTitle">
- <string>PPJoy settings FaceTrackNoIR</string>
+ <string>MouseLook settings FaceTrackNoIR</string>
</property>
<property name="windowIcon">
- <iconset>
- <normaloff>images/FaceTrackNoIR.ico</normaloff>images/FaceTrackNoIR.ico</iconset>
+ <iconset resource="Protocol.qrc">
+ <normaloff>:/images/Mouse.ico</normaloff>:/images/Mouse.ico</iconset>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
@@ -403,7 +403,9 @@
</item>
</layout>
</widget>
- <resources/>
+ <resources>
+ <include location="Protocol.qrc"/>
+ </resources>
<connections>
<connection>
<sender>slideSensX</sender>
diff --git a/FTNoIR_Protocol_MOUSE/Protocol.qrc b/FTNoIR_Protocol_MOUSE/Protocol.qrc
new file mode 100644
index 00000000..0e5e11d9
--- /dev/null
+++ b/FTNoIR_Protocol_MOUSE/Protocol.qrc
@@ -0,0 +1,5 @@
+<RCC>
+ <qresource prefix="/">
+ <file>images/Mouse.ico</file>
+ </qresource>
+</RCC>
diff --git a/FTNoIR_Protocol_MOUSE/images/Mouse.ico b/FTNoIR_Protocol_MOUSE/images/Mouse.ico
new file mode 100644
index 00000000..1151ab2b
--- /dev/null
+++ b/FTNoIR_Protocol_MOUSE/images/Mouse.ico
Binary files differ