Cheetah Software  1.0
GameController.h
Go to the documentation of this file.
1 
7 #ifndef PROJECT_GAMECONTROLLER_H
8 #define PROJECT_GAMECONTROLLER_H
9 
11 
12 #include <QtCore/QObject>
13 
14 class QGamepad; // for an unknown reason, #including <QtGamepad/QGamepad> here
15  // makes compilation *very* slow
16 
17 class GameController : public QObject {
18  Q_OBJECT
19  public:
20  explicit GameController(QObject *parent = 0);
21  void updateGamepadCommand(GamepadCommand &gamepadCommand);
22  void findNewController();
24 
25  private:
26  QGamepad *_qGamepad = nullptr;
27 };
28 
29 #endif // PROJECT_GAMECONTROLLER_H
QGamepad * _qGamepad
void updateGamepadCommand(GamepadCommand &gamepadCommand)
GameController(QObject *parent=0)
void findNewController()
The GamepadCommand type containing joystick information.