From 85051eff69cdd9ea535fac207c48340064518aba Mon Sep 17 00:00:00 2001 From: Mike Erwin Date: Sat, 18 Jun 2011 20:32:14 +0000 Subject: [PATCH] disabled debug logging now that a workaround is in place (Win32 ndof buttons) --- intern/ghost/intern/GHOST_SystemWin32.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp index 76508158a14..71be69bb9fb 100644 --- a/intern/ghost/intern/GHOST_SystemWin32.cpp +++ b/intern/ghost/intern/GHOST_SystemWin32.cpp @@ -833,7 +833,7 @@ bool GHOST_SystemWin32::processNDOF(RAWINPUT const& raw) GetRawInputDeviceInfo(raw.header.hDevice, RIDI_DEVICEINFO, &info, &infoSize); if (info.dwType == RIM_TYPEHID) { - printf("hardware ID = %08X:%08X\n", info.hid.dwVendorId, info.hid.dwProductId); + // printf("hardware ID = %04X:%04X\n", info.hid.dwVendorId, info.hid.dwProductId); m_ndofManager->setDevice(info.hid.dwVendorId, info.hid.dwProductId); } else puts(" not a HID device... mouse/kb perhaps?"); @@ -882,11 +882,13 @@ bool GHOST_SystemWin32::processNDOF(RAWINPUT const& raw) } case 3: // buttons { + #if 0 // I'm getting garbage bits -- examine whole report: printf("ndof: HID report for buttons ["); for (int i = 0; i < raw.data.hid.dwSizeHid; ++i) printf(" %02X", data[i]); printf(" ]\n"); + #endif int button_bits; memcpy(&button_bits, data + 1, sizeof(button_bits));