Cosmetics

This commit is contained in:
Bertrand Songis
2020-03-17 10:04:08 +01:00
parent b9e6f9c59e
commit 288992298d
2 changed files with 23 additions and 14 deletions
+9 -6
View File
@@ -49,14 +49,17 @@ class Joystick : public QObject
QMap<int, int> deadzones;
QMap<int, int> sensitivities;
Joystick(QObject *parent = 0,
int joystickEventTimeout = SDL_JOYSTICK_DEFAULT_EVENT_TIMEOUT,
bool doAutoRepeat = true,
int autoRepeatDelay = SDL_JOYSTICK_DEFAULT_AUTOREPEAT_DELAY);
~Joystick();
explicit Joystick(QObject * parent = nullptr,
int joystickEventTimeout = SDL_JOYSTICK_DEFAULT_EVENT_TIMEOUT,
bool doAutoRepeat = true,
int autoRepeatDelay = SDL_JOYSTICK_DEFAULT_AUTOREPEAT_DELAY);
~Joystick() override;
bool open(int);
void close();
bool isOpen() { return joystick != NULL; }
bool isOpen()
{
return joystick != nullptr;
}
int getAxisValue(int);
private: