[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11116] branches/ndof/intern/ghost: committing Ettore Pasquini MS windows support

JLuc Peuriere jlp at nerim.net
Fri Jun 29 00:37:42 CEST 2007


Revision: 11116
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11116
Author:   lukep
Date:     2007-06-29 00:37:38 +0200 (Fri, 29 Jun 2007)

Log Message:
-----------
committing Ettore Pasquini MS windows support
for NDOF devices

I applied the patch but cant test so please
let me know if any problem.

the plugin itself can be found either 
on Ettore site http://cubelogic/blender/
or on my site http://jlp.nerim.net/dev/6dof/

on my site there is also the source of 
mac plugin

Modified Paths:
--------------
    branches/ndof/intern/ghost/GHOST_Types.h
    branches/ndof/intern/ghost/intern/GHOST_SystemWin32.cpp
    branches/ndof/intern/ghost/make/msvc_7_0/ghost.vcproj

Modified: branches/ndof/intern/ghost/GHOST_Types.h
===================================================================
--- branches/ndof/intern/ghost/GHOST_Types.h	2007-06-28 20:13:54 UTC (rev 11115)
+++ branches/ndof/intern/ghost/GHOST_Types.h	2007-06-28 22:37:38 UTC (rev 11116)
@@ -39,6 +39,10 @@
 typedef	int					GHOST_TInt32;
 typedef	unsigned int		GHOST_TUns32;
 
+#ifdef WIN32
+#define WM_BLND_3DX			WM_USER + 1
+#endif
+
 #if defined(WIN32) && !defined(FREE_WINDOWS)
 typedef __int64				GHOST_TInt64;
 typedef unsigned __int64	GHOST_TUns64;

Modified: branches/ndof/intern/ghost/intern/GHOST_SystemWin32.cpp
===================================================================
--- branches/ndof/intern/ghost/intern/GHOST_SystemWin32.cpp	2007-06-28 20:13:54 UTC (rev 11115)
+++ branches/ndof/intern/ghost/intern/GHOST_SystemWin32.cpp	2007-06-28 22:37:38 UTC (rev 11116)
@@ -64,10 +64,12 @@
 #include "GHOST_EventCursor.h"
 #include "GHOST_EventKey.h"
 #include "GHOST_EventWheel.h"
+#include "GHOST_EventNDOF.h"
 #include "GHOST_TimerTask.h"
 #include "GHOST_TimerManager.h"
 #include "GHOST_WindowManager.h"
 #include "GHOST_WindowWin32.h"
+#include "GHOST_NDOFManager.h"
 
 // Key code values not found in winuser.h
 #ifndef VK_MINUS
@@ -853,6 +855,17 @@
 			   WM_CREATE			0x01
 			   We let DefWindowProc do the work.
 			*/
+				case WM_BLND_3DX:
+					{
+						GHOST_TEventNDOFData ndofdata;
+						system->m_ndofManager->GHOST_NDOFGetDatas(ndofdata);
+						system->m_eventManager->
+							pushEvent(new GHOST_EventNDOF(
+								system->getMilliSeconds(), 
+								GHOST_kEventNDOFMotion, 
+								window, ndofdata));
+					}
+					break;
 		}
 	}
 	else {

Modified: branches/ndof/intern/ghost/make/msvc_7_0/ghost.vcproj
===================================================================
--- branches/ndof/intern/ghost/make/msvc_7_0/ghost.vcproj	2007-06-28 20:13:54 UTC (rev 11115)
+++ branches/ndof/intern/ghost/make/msvc_7_0/ghost.vcproj	2007-06-28 22:37:38 UTC (rev 11116)
@@ -281,6 +281,9 @@
 					RelativePath="..\..\intern\GHOST_EventManager.h">
 				</File>
 				<File
+					RelativePath="..\..\intern\GHOST_EventNDOF.h">
+				</File>
+				<File
 					RelativePath="..\..\intern\GHOST_EventPrinter.h">
 				</File>
 				<File
@@ -293,6 +296,9 @@
 					RelativePath="..\..\intern\GHOST_ModifierKeys.h">
 				</File>
 				<File
+					RelativePath="..\..\intern\GHOST_NDOFManager.cpp">
+				</File>
+				<File
 					RelativePath="..\..\intern\GHOST_System.h">
 				</File>
 				<File
@@ -374,6 +380,9 @@
 				RelativePath="..\..\intern\GHOST_ModifierKeys.cpp">
 			</File>
 			<File
+				RelativePath="..\..\intern\GHOST_NDOFManager.cpp">
+			</File>
+			<File
 				RelativePath="..\..\intern\GHOST_Rect.cpp">
 			</File>
 			<File





More information about the Bf-blender-cvs mailing list