verbose ndof event trace for a tester
authorMike Erwin <significant.bit@gmail.com>
Fri, 1 Jul 2011 03:44:03 +0000 (03:44 +0000)
committerMike Erwin <significant.bit@gmail.com>
Fri, 1 Jul 2011 03:44:03 +0000 (03:44 +0000)
intern/ghost/intern/GHOST_NDOFManager.h
source/blender/editors/space_view3d/view3d_edit.c

index 2a7ecd90025f91e1d52a1aa86f9aa59372902715..ab1ad49dea1e7268b877a52773a01d660dd3fc71 100644 (file)
@@ -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;
 
index b334ed91df6c2c1754b65a071f187942c0cd0fa0..42a41be05e0d6048c459b28e8db1c815b77bd689 100644 (file)
@@ -997,6 +997,11 @@ static int viewndof_invoke(bContext *C, wmOperator *op, wmEvent *event)
                /* 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!