X-Git-Url: https://git.defcon.no/?a=blobdiff_plain;f=tools%2Fjstt%2Fjstt.h;h=c2123e5a44bb26473634832f77a2f297ff06d2b0;hb=072ed3afd98d2630e8cdffa48c69041bb05c6572;hp=dd3c478775d88489a9edf6b1d78b88bb11cfe570;hpb=49c14ececbf03a67b8ff1fa76c55489a7ad10371;p=rctxduino diff --git a/tools/jstt/jstt.h b/tools/jstt/jstt.h index dd3c478..c2123e5 100644 --- a/tools/jstt/jstt.h +++ b/tools/jstt/jstt.h @@ -4,6 +4,9 @@ #include #include #include +#include + +#define eventTimeout 1 namespace Ui { class jstt; @@ -16,12 +19,19 @@ public: ~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