diff -r 000000000000 -r 876b1a06bc25 examples/sensors/panorama/inputcontroller.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/sensors/panorama/inputcontroller.h Wed Aug 25 15:49:42 2010 +0300 @@ -0,0 +1,37 @@ +#ifndef INPUTCONTROLLER_H +#define INPUTCONTROLLER_H + +#include +#include + + +class InputController : public QObject +{ +// Q_OBJECT +public: + + InputController(); + virtual ~InputController(){}; + virtual void updateCoordinates(); + + static int getX(), getY(); + static void setX(int x), setY(int y); + + virtual void keyPressEvent(QKeyEvent *e); + + static const QString QACCELEROMETER, + QORIENTATIONSENSOR, QROTATIONSENSOR, + QMAGNETOMETER, QTAPSENSOR, QCOMPASS, QKEYS; + + +protected: + //current coordinates + static int m_x,m_y; + + + + +}; + + +#endif // INPUTCONTROLLER_H