From b555a70eac2998bf61ae7c07d0bf6f6443fa4a30 Mon Sep 17 00:00:00 2001 From: Ian Rees Date: Sun, 10 Apr 2016 13:01:14 +1200 Subject: [PATCH] Added some logging to Windows 3Dconnexion handler --- src/Gui/GuiApplicationNativeEventAware.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Gui/GuiApplicationNativeEventAware.cpp b/src/Gui/GuiApplicationNativeEventAware.cpp index 829572dc1..35cbdc783 100644 --- a/src/Gui/GuiApplicationNativeEventAware.cpp +++ b/src/Gui/GuiApplicationNativeEventAware.cpp @@ -69,6 +69,7 @@ Gui::GUIApplicationNativeEventAware::~GUIApplicationNativeEventAware() #ifdef Q_WS_WIN if (gMouseInput == this) { gMouseInput = 0; + Base::Console().Log("3Dconnexion device detached.\n"); } #endif //mac @@ -111,9 +112,14 @@ void Gui::GUIApplicationNativeEventAware::initSpaceball(QMainWindow *window) if (InitializeRawInput(mainWindow->winId())){ gMouseInput = this; qApp->setEventFilter(Gui::GUIApplicationNativeEventAware::RawInputEventFilter); + Base::Console().Log("3Dconnexion device initialized.\n"); + } else { + Base::Console().Log("3Dconnexion device is attached, but not initialized.\n"); } + } else { + Base::Console().Log("3Dconnexion device not attached.\n"); } -#endif +#endif // #ifdef Q_WS_WIN //mac #ifdef Q_WS_MACX OSStatus err;