#include <QMainWindow>
#include <QStringList>
#include <SDL/SDL.h>
+#include <QTimer>
+
+#define eventTimeout 1
namespace Ui {
class jstt;
~jstt();
protected:
- void changeEvent(QEvent *e);
+ void init();
+ void jsOpen(int js);
+ void jsClose();
+ void processJs();
+ bool jsIsOpen() { return joystick != NULL; }
private:
Ui::jstt *ui;
+ SDL_Joystick *joystick;
+ QTimer jsPullTimer;
- QStringList jsNames;
+private slots:
+ void on_Joysticks_currentIndexChanged(int index);
};
#endif // JSTT_H