diff --git a/src/Joystick/joysticksdl.h b/src/Joystick/joysticksdl.h deleted file mode 100644 index 2c4a9ca6aeb93fae1880f4f8b3e266604c181eb3..0000000000000000000000000000000000000000 --- 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