@@ -59,11 +59,15 @@ Gui::GUIApplicationNativeEventAware::~GUIApplicationNativeEventAware() = default
|
||||
void Gui::GUIApplicationNativeEventAware::initSpaceball(QMainWindow *window)
|
||||
{
|
||||
#if defined(_USE_3DCONNEXION_SDK) || defined(SPNAV_FOUND)
|
||||
# if defined(USE_3DCONNEXION_NAVLIB)
|
||||
ParameterGrp::handle hViewGrp = App::GetApplication().GetParameterGroupByPath(
|
||||
"User parameter:BaseApp/Preferences/View");
|
||||
if (nativeEvent && hViewGrp->GetBool("LegacySpaceMouseDevices", false)) {
|
||||
nativeEvent->initSpaceball(window);
|
||||
}
|
||||
# else
|
||||
nativeEvent->initSpaceball(window);
|
||||
# endif
|
||||
#else
|
||||
Q_UNUSED(window);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user