]>
git.defcon.no Git - rctxduino/blob - tools/jstt/jstt.h
8 #include <QProgressBar>
11 #define eventTimeout 100
12 #define percentBar(value) (((32768 + value) * 100) / 65536)
18 class jstt
: public QMainWindow
{
21 jstt(QWidget
*parent
= 0);
30 bool jsIsOpen() { return joystick
!= NULL
; }
33 SDL_Joystick
*joystick
;
35 QProgressBar
*bars
[4];
39 void on_Joysticks_currentIndexChanged(int index
) { jsOpen(index
); }
40 void on_actionQuit_triggered();
41 void on_actionHelp_triggered();
42 void on_actionAbout_triggered();