//
// keygrabber.h - Widget to grab a key and dismiss itself
//
-// by James L. Hammons
+// by James Hammons
// (C) 2011 Underground Software
//
protected:
void keyPressEvent(QKeyEvent *);
-private:
+ private slots:
+ void CheckGamepad();
+
+ private:
QLabel * label;
+ QTimer * timer;
+ static bool buttonDown; // Class variable
+ static int button; // Class variable
public:
int key;