We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f84052c commit 3804117Copy full SHA for 3804117
src/Gui/GuiApplicationNativeEventAware.cpp
@@ -59,7 +59,11 @@ Gui::GUIApplicationNativeEventAware::~GUIApplicationNativeEventAware() = default
59
void Gui::GUIApplicationNativeEventAware::initSpaceball(QMainWindow *window)
60
{
61
#if defined(_USE_3DCONNEXION_SDK) || defined(SPNAV_FOUND)
62
- nativeEvent->initSpaceball(window);
+ ParameterGrp::handle hViewGrp = App::GetApplication().GetParameterGroupByPath(
63
+ "User parameter:BaseApp/Preferences/View");
64
+ if (nativeEvent && hViewGrp->GetBool("LegacySpaceMouseDevices", false)) {
65
+ nativeEvent->initSpaceball(window);
66
+ }
67
#else
68
Q_UNUSED(window);
69
#endif
0 commit comments