From ddaa29d114713a1b2314c5d35fb5af511cc6259c Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 11 Jan 2021 13:51:19 +0100 Subject: [PATCH] Win32: [skip ci] enable logging for SpaceMouse input events to figure out why Plus XT model stopped working --- src/Gui/3Dconnexion/GuiNativeEventWin32.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Gui/3Dconnexion/GuiNativeEventWin32.cpp b/src/Gui/3Dconnexion/GuiNativeEventWin32.cpp index f490654a6a..e69faa5bd7 100644 --- a/src/Gui/3Dconnexion/GuiNativeEventWin32.cpp +++ b/src/Gui/3Dconnexion/GuiNativeEventWin32.cpp @@ -71,8 +71,8 @@ Gui::GuiNativeEvent* Gui::GuiNativeEvent::gMouseInput = 0; #define _TRACE_RI_TYPE 0 #define _TRACE_RIDI_DEVICENAME 0 #define _TRACE_RIDI_DEVICEINFO 0 -#define _TRACE_RI_RAWDATA 0 -#define _TRACE_3DINPUT_PERIOD 0 +#define _TRACE_RI_RAWDATA 1 +#define _TRACE_3DINPUT_PERIOD 1 #ifdef _WIN64 typedef unsigned __int64 QWORD; @@ -1056,6 +1056,10 @@ bool Gui::GuiNativeEvent::TranslateSpaceMouseOldGeneric(UINT nInputCode, PRAWINP pValueCaps = NULL; hHeap = GetProcessHeap(); +#ifdef _TRACE_RI_RAWDATA + qDebug("pRawInput->data.hid.bRawData[0] = 0x%x", pRawInput->data.hid.bRawData[0]); +#endif + // // Get the preparsed data block //