The EventHandler class receives events (touch, key, mouse, gyroscope, etc.) and triggers actions, taking object states and context into account.
More...
#include <eventhandler.h>
The EventHandler class receives events (touch, key, mouse, gyroscope, etc.) and triggers actions, taking object states and context into account.
terminus::EventHandler::EventHandler |
( |
Game * |
game = nullptr | ) |
|
void terminus::EventHandler::buttonInput |
( |
int |
type | ) |
|
Handles a click on a QML UI button.
void terminus::EventHandler::gyroMoveEvent |
( |
qreal |
x, |
|
|
qreal |
y |
|
) |
| |
|
protected |
void terminus::EventHandler::keyInput |
( |
Qt::Key |
key | ) |
|
void terminus::EventHandler::keyPressEvent |
( |
Qt::Key |
key | ) |
|
|
protected |
void terminus::EventHandler::mouseMoveEvent |
( |
qreal |
x, |
|
|
qreal |
y |
|
) |
| |
|
protected |
void terminus::EventHandler::moveInput |
( |
int |
type, |
|
|
qreal |
x, |
|
|
qreal |
y |
|
) |
| |
Handles mouse and gyroscope movements.
void terminus::EventHandler::switchToNextWagon |
( |
| ) |
|
|
protected |
void terminus::EventHandler::switchToPreviousWagon |
( |
| ) |
|
|
protected |
void terminus::EventHandler::touchChargeFire |
( |
| ) |
|
|
protected |
void terminus::EventHandler::touchFire |
( |
| ) |
|
|
protected |
void terminus::EventHandler::touchInput |
( |
qreal |
oldx, |
|
|
qreal |
oldy, |
|
|
qreal |
x, |
|
|
qreal |
y |
|
) |
| |
Game* terminus::EventHandler::m_game |
|
protected |
The documentation for this class was generated from the following files: