equal
deleted
inserted
replaced
|
1 #ifndef ROTATIONCONTROLLER_H |
|
2 #define ROTATIONCONTROLLER_H |
|
3 |
|
4 |
|
5 #include "inputcontroller.h" |
|
6 #include <qrotationsensor.h> |
|
7 |
|
8 QTM_USE_NAMESPACE |
|
9 |
|
10 class RotationController : public InputController |
|
11 { |
|
12 Q_OBJECT |
|
13 |
|
14 public: |
|
15 RotationController(); |
|
16 virtual ~RotationController(); |
|
17 virtual void updateCoordinates(); |
|
18 |
|
19 public slots: |
|
20 virtual void doStart(); |
|
21 virtual void doStop(); |
|
22 |
|
23 private slots: |
|
24 void update(); |
|
25 |
|
26 private: |
|
27 QTM_NAMESPACE::QRotationSensor m_rotationSensor; |
|
28 int m_dx, m_dy; |
|
29 qtimestamp m_exTimestamp; |
|
30 qreal m_factor; |
|
31 |
|
32 }; |
|
33 |
|
34 |
|
35 #endif // ROTATIONCONTROLLER_H |