summaryrefslogtreecommitdiffhomepage
path: root/FTNoIR_Protocol_FG
diff options
context:
space:
mode:
Diffstat (limited to 'FTNoIR_Protocol_FG')
-rw-r--r--FTNoIR_Protocol_FG/FTNoIR_Protocol_FG.cpp8
-rw-r--r--FTNoIR_Protocol_FG/FTNoIR_Protocol_FG.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/FTNoIR_Protocol_FG/FTNoIR_Protocol_FG.cpp b/FTNoIR_Protocol_FG/FTNoIR_Protocol_FG.cpp
index fbf5c8d5..f799d015 100644
--- a/FTNoIR_Protocol_FG/FTNoIR_Protocol_FG.cpp
+++ b/FTNoIR_Protocol_FG/FTNoIR_Protocol_FG.cpp
@@ -221,6 +221,14 @@ bool FTNoIR_Protocol_FG::checkServerInstallationOK( HANDLE handle )
return true;
}
+//
+// Return a name, if present the name from the Game, that is connected...
+//
+void FTNoIR_Protocol_FG::getNameFromGame( char *dest )
+{
+ sprintf_s(dest, 99, "FlightGear");
+ return;
+}
////////////////////////////////////////////////////////////////////////////////
// Factory function that creates instances if the Protocol object.
diff --git a/FTNoIR_Protocol_FG/FTNoIR_Protocol_FG.h b/FTNoIR_Protocol_FG/FTNoIR_Protocol_FG.h
index 45188257..63b64f16 100644
--- a/FTNoIR_Protocol_FG/FTNoIR_Protocol_FG.h
+++ b/FTNoIR_Protocol_FG/FTNoIR_Protocol_FG.h
@@ -50,6 +50,7 @@ public:
bool checkServerInstallationOK( HANDLE handle );
void sendHeadposeToGame( T6DOF *headpose );
+ void getNameFromGame( char *dest ); // Take care dest can handle up to 100 chars...
private:
// Tracker *headTracker; // For upstream messages...