X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Fkeygrabber.h;h=56494e1340d85f43d51e0757bacd2f1cc7963644;hb=d207b11e613703aff7d00191c4595b7359f29700;hp=6ea19d2e76b516f2052212b39c11fd71f0c6d019;hpb=0c6ed444bbb07e5cc0513a7d3075fb24d06e61eb;p=virtualjaguar diff --git a/src/gui/keygrabber.h b/src/gui/keygrabber.h index 6ea19d2..56494e1 100644 --- a/src/gui/keygrabber.h +++ b/src/gui/keygrabber.h @@ -1,14 +1,14 @@ // // keygrabber.h - Widget to grab a key and dismiss itself // -// by James L. Hammons +// by James Hammons // (C) 2011 Underground Software // #ifndef __KEYGRABBER_H__ #define __KEYGRABBER_H__ -#include +#include class KeyGrabber: public QDialog { @@ -22,8 +22,14 @@ class KeyGrabber: public QDialog 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;