#include <QStringList>
#include <SDL/SDL.h>
#include <QTimer>
+#include <QProgressBar>
+#include <QLabel>
-#define eventTimeout 1
+#define eventTimeout 100
+#define percentBar(value) (((32768 + value) * 100) / 65536)
namespace Ui {
class jstt;
~jstt();
protected:
+
+private:
void init();
void jsOpen(int js);
void jsClose();
- void processJs();
bool jsIsOpen() { return joystick != NULL; }
-private:
Ui::jstt *ui;
SDL_Joystick *joystick;
QTimer jsPullTimer;
+ QProgressBar *bars[4];
+ QLabel *labels[4];
private slots:
- void on_Joysticks_currentIndexChanged(int index);
+ void on_Joysticks_currentIndexChanged(int index) { jsOpen(index); }
+ void on_actionQuit_triggered();
+ void on_actionHelp_triggered();
+ void on_actionAbout_triggered();
+ void processJs();
};
#endif // JSTT_H