[Player-cvs] hxclientkit/src HXClientCFuncs.cpp,1.23,1.24

[Player-cvs] hxclientkit/src HXClientCFuncs.cpp,1.23,1.24

sehancher at helixcommunity.org sehancher at helixcommunity.org
Fri Jul 15 15:16:06 PDT 2005


Update of /cvsroot/player/hxclientkit/src
In directory cvs:/tmp/cvs-serv29001

Modified Files:
	HXClientCFuncs.cpp 
Log Message:
Moved ClientEngineHandleClassicEvent() implementation from CHXClientEngineMac.cpp to HXClientCFuncs.cpp to support static builds.

Index: HXClientCFuncs.cpp
===================================================================
RCS file: /cvsroot/player/hxclientkit/src/HXClientCFuncs.cpp,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- HXClientCFuncs.cpp	1 Jul 2005 00:19:24 -0000	1.23
+++ HXClientCFuncs.cpp	15 Jul 2005 22:16:03 -0000	1.24
@@ -64,6 +64,26 @@
 HX_SMART_POINTER_INLINE( SPIHXPlayer, IHXPlayer );
 #include "exit_hx_headers.h"
 
+#ifdef _MAC_MACHO
+bool
+ClientEngineHandleClassicEvent( EventRecord* classicEvent )
+{
+	SPIHXClientEngine spIClientEngine;
+	if ( CHXClientEngine::GetEngine( spIClientEngine.AsInOutParam() ) )
+	{
+		HXxEvent hxEvent;
+		memset( &hxEvent, 0, sizeof( HXxEvent ) );
+		hxEvent.event = classicEvent->what;
+		hxEvent.param1 = ( void* ) classicEvent;
+		
+		spIClientEngine->EventOccurred( &hxEvent );
+
+		return hxEvent.handled ? true : false;
+	}
+	return false;
+}
+#endif
+
 /*!
   @function ClientEngineSetCallbacks
   @param pClientEngineCallbacks




More information about the Player-cvs mailing list
 

Site Map   |   Terms of Use   |   Privacy Policy   |   Contact Us

Copyright © 1995-2007 RealNetworks, Inc. All rights reserved. RealNetworks and Helix are trademarks of RealNetworks.
All other trademarks or registered trademarks are the property of their respective holders.