Cheetah Software
1.0
Main Page
Namespaces
Classes
Files
File List
File Members
GameController.h
Go to the documentation of this file.
1
7
#ifndef PROJECT_GAMECONTROLLER_H
8
#define PROJECT_GAMECONTROLLER_H
9
10
#include "
SimUtilities/GamepadCommand.h
"
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
();
23
~GameController
();
24
25
private
:
26
QGamepad *
_qGamepad
=
nullptr
;
27
};
28
29
#endif // PROJECT_GAMECONTROLLER_H
GameController::_qGamepad
QGamepad * _qGamepad
Definition:
GameController.h:26
GameController::~GameController
~GameController()
Definition:
GameController.cpp:86
GameController::updateGamepadCommand
void updateGamepadCommand(GamepadCommand &gamepadCommand)
Definition:
GameController.cpp:59
GameController::GameController
GameController(QObject *parent=0)
Definition:
GameController.cpp:22
GamepadCommand
Definition:
GamepadCommand.h:12
GameController::findNewController
void findNewController()
Definition:
GameController.cpp:31
GamepadCommand.h
The GamepadCommand type containing joystick information.
GameController
Definition:
GameController.h:17
home
dhkim
Public_Repository
Cheetah-Software
sim
include
GameController.h
Generated by
1.8.11