]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/gui/mainwin.cpp
Added user controlled blitter logging.
[virtualjaguar] / src / gui / mainwin.cpp
index 3c93d03a8a62ce02a06b87e12372d8f0520c2639..042e607d099025aa42529b9abf486950ee2b7095 100644 (file)
@@ -439,6 +439,11 @@ void MainWin::keyPressEvent(QKeyEvent * e)
 {
        // From jaguar.cpp
        extern bool startM68KTracing;
+       // From joystick.cpp
+       extern int blit_start_log;
+       // From blitter.cpp
+       extern bool startConciseBlitLogging;
+
 
        // We ignore the Alt key for now, since it causes problems with the GUI
        if (e->key() == Qt::Key_Alt)
@@ -452,8 +457,21 @@ void MainWin::keyPressEvent(QKeyEvent * e)
                e->accept();
                return;
        }
+       else if (e->key() == Qt::Key_F12)
+       {
+               blit_start_log = true;
+               e->accept();
+               return;
+       }
+       else if (e->key() == Qt::Key_F10)
+       {
+               startConciseBlitLogging = true;
+               e->accept();
+               return;
+       }
 
 /*
+This is done now by a QAction...
        if (e->key() == Qt::Key_F9)
        {
                ToggleFullScreen();