From 010d82e9392bd2fb5cafe6fbae03c9cdc301a2f8 Mon Sep 17 00:00:00 2001 From: Wim Vriend Date: Sat, 4 Jun 2011 12:37:46 +0000 Subject: Eagle Dynamics API implemented, added some 'nice to haves'. git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@87 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb --- FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.cpp | 9 +++++++++ FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.h | 1 + 2 files changed, 10 insertions(+) (limited to 'FTNoIR_Protocol_PPJOY') diff --git a/FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.cpp b/FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.cpp index a94680a2..8a092d2e 100644 --- a/FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.cpp +++ b/FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.cpp @@ -195,6 +195,15 @@ bool FTNoIR_Protocol_PPJOY::checkServerInstallationOK( HANDLE handle ) return true; } +// +// Return a name, if present the name from the Game, that is connected... +// +void FTNoIR_Protocol_PPJOY::getNameFromGame( char *dest ) +{ + sprintf_s(dest, 99, "Virtual PPJoy joystick"); + return; +} + //////////////////////////////////////////////////////////////////////////////// // Factory function that creates instances if the Protocol object. diff --git a/FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.h b/FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.h index 8333a2ef..d1cfa05d 100644 --- a/FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.h +++ b/FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.h @@ -70,6 +70,7 @@ public: bool checkServerInstallationOK( HANDLE handle ); void sendHeadposeToGame( T6DOF *headpose ); + void getNameFromGame( char *dest ); // Take care dest can handle up to 100 chars... private: HANDLE h; -- cgit v1.2.3