From 488fc264383415d7a2a1a9397adac14c404a7b57 Mon Sep 17 00:00:00 2001 From: Gregory D Date: Fri, 14 Oct 2016 10:55:10 +0100 Subject: [PATCH] Cleanup --- src/Joystick/joysticksdl.h | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 src/Joystick/joysticksdl.h diff --git a/src/Joystick/joysticksdl.h b/src/Joystick/joysticksdl.h deleted file mode 100644 index 2c4a9ca6a..000000000 --- a/src/Joystick/joysticksdl.h +++ /dev/null @@ -1,34 +0,0 @@ -#ifndef JOYSTICKSDL_H -#define JOYSTICKSDL_H - -#include "Joystick.h" -#include "Vehicle.h" -#include "MultiVehicleManager.h" - -#include - -class JoystickSDL : public Joystick -{ -public: - JoystickSDL(const QString& name, int axisCount, int buttonCount, int hatCount, int index, bool isGameController, MultiVehicleManager* multiVehicleManager); - - static QMap discover(MultiVehicleManager* _multiVehicleManager); - -private: - static void _loadGameControllerMappings(); - - bool _open() final; - void _close() final; - bool _update() final; - - bool _getButton(int i) final; - int _getAxis(int i) final; - uint8_t _getHat(int hat,int i) final; - - SDL_Joystick *sdlJoystick; - SDL_GameController *sdlController; - bool _isGameController; - int _index; ///< Index for SDL_JoystickOpen -}; - -#endif // JOYSTICKSDL_H -- 2.22.0