From a18ca238cedf37647098d4280c5df35a16402e76 Mon Sep 17 00:00:00 2001 From: Gregory Dymarek Date: Sat, 4 Mar 2017 11:25:20 +0000 Subject: [PATCH] Comments --- src/Joystick/JoystickManager.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Joystick/JoystickManager.cc b/src/Joystick/JoystickManager.cc index 389c90be3..617d414d2 100644 --- a/src/Joystick/JoystickManager.cc +++ b/src/Joystick/JoystickManager.cc @@ -52,8 +52,7 @@ void JoystickManager::setToolbox(QGCToolbox *toolbox) QQmlEngine::setObjectOwnership(this, QQmlEngine::CppOwnership); } -void JoystickManager::init() -{ +void JoystickManager::init() { #ifdef __sdljoystick__ if (JoystickSDL::init()) { _setActiveJoystickFromSettings(); @@ -181,6 +180,9 @@ void JoystickManager::setActiveJoystickName(const QString& name) setActiveJoystick(_name2JoystickMap[name]); } +/* + * TODO: move this to the right place: JoystickSDL.cc and JoystickAndroid.cc respectively and call through Joystick.cc + */ void JoystickManager::_updateAvailableJoysticks(void) { #ifdef __sdljoystick__ -- 2.22.0