]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/gui/glwidget.h
Fixes for fullscreen mode, initial stab at multiple controller configs
[virtualjaguar] / src / gui / glwidget.h
index 39ed1815438b39755c045ea33c3e50a2fde9f283..e7d7406811410168c4c5eefd3d82eb7d7d445e1b 100644 (file)
@@ -17,6 +17,8 @@ class GLWidget: public QGLWidget
                GLWidget(QWidget * parent = 0);
                ~GLWidget();
 
+               void HandleMouseHiding(void);
+               void CheckAndRestoreMouseCursor(void);
 //             QSize minimumSizeHint() const;
 //             QSize sizeHint() const;
 
@@ -24,11 +26,16 @@ class GLWidget: public QGLWidget
 //             void clicked();
 
        protected:
-               void initializeGL();
-               void paintGL();
+               void initializeGL(void);
+               void paintGL(void);
                void resizeGL(int width, int height);
+               void mouseMoveEvent(QMouseEvent *);
+//             void mousePressEvent(QMouseEvent * event);
+//             void mouseReleaseEvent(QMouseEvent * event);
+
+       private:
+               void CreateTextures(void);
 
-//     private:
        public:
                GLuint texture;
                int textureWidth, textureHeight;
@@ -38,6 +45,10 @@ class GLWidget: public QGLWidget
 
                bool synchronize;
                unsigned filter;
+               int offset;
+               bool fullscreen;
+               int outputWidth;
+               int32_t hideMouseTimeout;
 };
 
 #endif // __GLWIDGET_H__