equal
deleted
inserted
replaced
|
1 |
|
2 #include "inputcontroller.h" |
|
3 #include "view.h" |
|
4 |
|
5 const QString InputController::QACCELEROMETER="QAccelerometer"; |
|
6 const QString InputController::QORIENTATIONSENSOR = "QOrientationSensor"; |
|
7 const QString InputController::QMAGNETOMETER = "QMagnetometer"; |
|
8 const QString InputController::QROTATIONSENSOR = "QRotationSensor"; |
|
9 const QString InputController::QTAPSENSOR = "QTapSensor"; |
|
10 const QString InputController::QCOMPASS = "QCompass"; |
|
11 const QString InputController::QKEYS = "Keys"; |
|
12 |
|
13 int InputController::m_x =0; |
|
14 int InputController::m_y =0; |
|
15 |
|
16 InputController::InputController() {} |
|
17 |
|
18 void InputController::keyPressEvent(QKeyEvent*){} |
|
19 |
|
20 int InputController::getX(){return m_x;} |
|
21 |
|
22 int InputController::getY() {return m_y;} |
|
23 |
|
24 void InputController::setX(int x){m_x = x;} |
|
25 |
|
26 void InputController::setY(int y){m_y = y;} |
|
27 |
|
28 void InputController::updateCoordinates(){} |