Use std::vector to copy Spacemouse data from helper class to Application

This commit is contained in:
Torsten Sadowski
2018-11-06 22:16:34 +01:00
committed by wmayer
parent 46aa5fb0ad
commit 0d3c670785
10 changed files with 17 additions and 12 deletions

View File

@@ -102,7 +102,7 @@ bool Gui::GUIApplicationNativeEventAware::processSpaceballEvent(QObject *object,
return true;
}
void Gui::GUIApplicationNativeEventAware::postMotionEvent(int *const motionDataArray)
void Gui::GUIApplicationNativeEventAware::postMotionEvent(std::vector<int> motionDataArray)
{
auto currentWidget(focusWidget());
if (!currentWidget) {
@@ -148,7 +148,7 @@ float Gui::GUIApplicationNativeEventAware::convertPrefToSensitivity(int value)
}
}
void Gui::GUIApplicationNativeEventAware::importSettings(int *const motionDataArray)
void Gui::GUIApplicationNativeEventAware::importSettings(std::vector<int>& motionDataArray)
{
ParameterGrp::handle group = App::GetApplication().GetUserParameter().GetGroup("BaseApp")->GetGroup("Spaceball")->GetGroup("Motion");