X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Fkeygrabber.cpp;h=e1c33d0e3eada8aefb61210650c88f739603ecb4;hb=2e7108fbe3b1a8a42f155069e4648d43fda57789;hp=87fc6404dda44590fdc5a1d65c8927c5ca32ebb5;hpb=d45cbbf10d32c4b44a924e19b0f4ee2fbe51b46c;p=virtualjaguar diff --git a/src/gui/keygrabber.cpp b/src/gui/keygrabber.cpp index 87fc640..e1c33d0 100644 --- a/src/gui/keygrabber.cpp +++ b/src/gui/keygrabber.cpp @@ -15,8 +15,15 @@ #include "gamepad.h" +// Class variables +// These need to be preserved between calls to this class, otherwise bad stuff +// (like controllers not working correctly) can happen. +/*static*/ bool KeyGrabber::buttonDown = false; +/*static*/ int KeyGrabber::button = -1; + + KeyGrabber::KeyGrabber(QWidget * parent/*= 0*/): QDialog(parent), - label(new QLabel), timer(new QTimer), buttonDown(false) + label(new QLabel), timer(new QTimer)//, buttonDown(false) { // label = new QLabel(this); QVBoxLayout * mainLayout = new QVBoxLayout;