17#ifndef JOYSTICKS_CONTROLLER_HPP
18#define JOYSTICKS_CONTROLLER_HPP
40 std::function<
void(
int)> speedCallback,
41 QObject *parent =
nullptr);
JoysticksController(std::function< void(int)> steeringCallback, std::function< void(int)> speedCallback, QObject *parent=nullptr)
Construct a JoysticksController object.
SDL_Joystick * m_joystick
void requestStop()
Requests the joystick controller to stop.
std::function< void(int)> m_updateSpeed
bool init()
Initializes the joystick controller.
void processInput()
Runs the joystick controller loop.
~JoysticksController()
Destruct a JoysticksController object.
std::function< void(int)> m_updateSteering