#ifndef SDRPI_FPV_CONTROL_GROUND_JOYSTICK_READER_H #define SDRPI_FPV_CONTROL_GROUND_JOYSTICK_READER_H #include #include #include #ifdef _WIN32 #include #else #include #endif class JoystickReader { public: JoystickReader(int frequency = 50); ~JoystickReader(); bool initialize(); bool readData(std::vector& data); std::string getJoystickName() const; private: SDL_Joystick* joystick; int updateIntervalMs; std::string joystickName; }; #endif //SDRPI_FPV_CONTROL_GROUND_JOYSTICK_READER_H