[Bf-blender-cvs] [a195dd1] master: NDOF: suppress buttons debug log
Mike Erwin
noreply at git.blender.org
Thu Aug 18 06:41:26 CEST 2016
Commit: a195dd15d4373ff0e240566795ff7795ca7485e6
Author: Mike Erwin
Date: Wed Aug 17 00:12:28 2016 -0400
Branches: master
https://developer.blender.org/rBa195dd15d4373ff0e240566795ff7795ca7485e6
NDOF: suppress buttons debug log
Accidentally left this in the 3D mouse code. Mac only.
===================================================================
M intern/ghost/intern/GHOST_NDOFManagerCocoa.mm
===================================================================
diff --git a/intern/ghost/intern/GHOST_NDOFManagerCocoa.mm b/intern/ghost/intern/GHOST_NDOFManagerCocoa.mm
index 6fee39d..b56757c 100644
--- a/intern/ghost/intern/GHOST_NDOFManagerCocoa.mm
+++ b/intern/ghost/intern/GHOST_NDOFManagerCocoa.mm
@@ -210,7 +210,9 @@ static void DeviceEvent(uint32_t unused, uint32_t msg_type, void* msg_arg)
case kConnexionCmdHandleButtons:
{
int button_bits = has_old_driver ? s->buttons8 : s->buttons;
+#ifdef DEBUG_NDOF_BUTTONS
printf("button bits: 0x%08x\n", button_bits);
+#endif
ndof_manager->updateButtons(button_bits, now);
ghost_system->notifyExternalEventProcessed();
break;
More information about the Bf-blender-cvs
mailing list