]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/gui/keygrabber.h
More gamepad work.
[virtualjaguar] / src / gui / keygrabber.h
index 481debbe71cbfcd5e67ade7a3ea98173f32ffbf8..cb0abaf7352499413590e2e96d115103d59f7c2c 100644 (file)
@@ -1,7 +1,7 @@
 //
 // keygrabber.h - Widget to grab a key and dismiss itself
 //
-// by James L. Hammons
+// by James Hammons
 // (C) 2011 Underground Software
 //
 
 
 #include <QtGui>
 
-//class GeneralTab;
-//class ControllerTab;
-//class AlpineTab;
-
 class KeyGrabber: public QDialog
 {
        Q_OBJECT
@@ -21,26 +17,22 @@ class KeyGrabber: public QDialog
        public:
                KeyGrabber(QWidget * parent = 0);
                ~KeyGrabber();
-//             void UpdateVJSettings(void);
-               void SetText(QString);
-//             int GetKeyGrabbed(void);
+               void SetKeyText(int);
 
        protected:
                void keyPressEvent(QKeyEvent *);
 
-//     private:
-//             void LoadDialogFromSettings(void);
+       private slots:
+               void CheckGamepad();
 
        private:
-//             QTabWidget * tabWidget;
-//             QDialogButtonBox * buttonBox;
                QLabel * label;
+               QTimer * timer;
+               bool buttonDown;
+               int button;
 
        public:
                int key;
-//             GeneralTab * generalTab;
-//             ControllerTab * controllerTab;
-//             AlpineTab * alpineTab;
 };
 
 #endif // __KEYGRABBER_H__