NDOF: suppress buttons debug log
authorMike Erwin <significant.bit@gmail.com>
Wed, 17 Aug 2016 04:12:28 +0000 (00:12 -0400)
committerMike Erwin <significant.bit@gmail.com>
Thu, 18 Aug 2016 04:22:18 +0000 (00:22 -0400)
Accidentally left this in the 3D mouse code. Mac only.

intern/ghost/intern/GHOST_NDOFManagerCocoa.mm

index 6fee39dcb82aa30d2b3587e07e3f4aef7ab7b3a4..b56757cd0fe8239d2894c6fa0d032a6181e1c7f3 100644 (file)
@@ -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;