Revision: 37997
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37997
Author:   merwin
Date:     2011-07-01 03:44:03 +0000 (Fri, 01 Jul 2011)
Log Message:
-----------
verbose ndof event trace for a tester

Modified Paths:
--------------
    branches/merwin-spacenav/intern/ghost/intern/GHOST_NDOFManager.h
    branches/merwin-spacenav/source/blender/editors/space_view3d/view3d_edit.c

Modified: branches/merwin-spacenav/intern/ghost/intern/GHOST_NDOFManager.h
===================================================================
--- branches/merwin-spacenav/intern/ghost/intern/GHOST_NDOFManager.h    
2011-07-01 03:40:12 UTC (rev 37996)
+++ branches/merwin-spacenav/intern/ghost/intern/GHOST_NDOFManager.h    
2011-07-01 03:44:03 UTC (rev 37997)
@@ -29,8 +29,8 @@
 
 // --- the following type definitions will find a home somewhere else once 
finished ---
 
-//#define DEBUG_NDOF_MOTION
-//#define DEBUG_NDOF_BUTTONS
+#define DEBUG_NDOF_MOTION
+#define DEBUG_NDOF_BUTTONS
 
 typedef enum { NDOF_UnknownDevice, NDOF_SpaceNavigator, NDOF_SpaceExplorer, 
NDOF_SpacePilotPro } NDOF_DeviceT;
 

Modified: 
branches/merwin-spacenav/source/blender/editors/space_view3d/view3d_edit.c
===================================================================
--- branches/merwin-spacenav/source/blender/editors/space_view3d/view3d_edit.c  
2011-07-01 03:40:12 UTC (rev 37996)
+++ branches/merwin-spacenav/source/blender/editors/space_view3d/view3d_edit.c  
2011-07-01 03:44:03 UTC (rev 37997)
@@ -997,6 +997,11 @@
                /* TODO: replace such guesswork with a flag or field from the 
NDOF manager */
                ndof->dt = dt = 0.0125f;
 
+       #define DEBUG_NDOF_MOTION
+       #ifdef DEBUG_NDOF_MOTION
+       printf("ndof: T=(%.2f,%.2f,%.2f) R=(%.2f,%.2f,%.2f) dt=%.3f delivered 
to 3D view\n",
+               ndof->tx, ndof->ty, ndof->tz, ndof->rx, ndof->ry, ndof->rz, 
ndof->dt);
+       #endif
 
        if (ndof->tz) {
                // Zoom!

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to