]> git.defcon.no Git - joysticktest/blob - joystickdata.h
Working test with Qt GUI. Threaded, with no thread safety.
[joysticktest] / joystickdata.h
1 #ifndef JOYSTICKDATA_H
2 #define JOYSTICKDATA_H
3
4 #include <QObject>
5
6 class JoystickData : public QObject
7 {
8 Q_OBJECT
9
10 private:
11 int axis_values[6];
12 bool button_values[10];
13
14 public:
15 JoystickData();
16 void setAxis( int axis, int value );
17 void setButton( int button, bool value );
18 int getAxis( int axis );
19 bool getButton( int button );
20
21 signals:
22 void valuechanged( );
23 };
24
25 #endif // JOYSTICKDATA_H