]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/gui/keygrabber.cpp
Possible fix for gamepad 'Select All Keys' problem.
[virtualjaguar] / src / gui / keygrabber.cpp
index 87fc6404dda44590fdc5a1d65c8927c5ca32ebb5..e1c33d0e3eada8aefb61210650c88f739603ecb4 100644 (file)
 #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;