]> git.defcon.no Git - rctxduino/blob - tools/jstt/jstt.h
Added some code for the controllers testing tool. The code is still not functional.
[rctxduino] / tools / jstt / jstt.h
1 #ifndef JSTT_H
2 #define JSTT_H
3
4 #include <QMainWindow>
5 #include <QStringList>
6 #include <SDL/SDL.h>
7 #include <QTimer>
8
9 #define eventTimeout 1
10
11 namespace Ui {
12 class jstt;
13 }
14
15 class jstt : public QMainWindow {
16 Q_OBJECT
17 public:
18 jstt(QWidget *parent = 0);
19 ~jstt();
20
21 protected:
22 void init();
23 void jsOpen(int js);
24 void jsClose();
25 void processJs();
26 bool jsIsOpen() { return joystick != NULL; }
27
28 private:
29 Ui::jstt *ui;
30 SDL_Joystick *joystick;
31 QTimer jsPullTimer;
32
33 private slots:
34 void on_Joysticks_currentIndexChanged(int index);
35 };
36
37 #endif // JSTT_H