Update main.cpp

This commit is contained in:
Valentin Vanelslande 2017-10-10 14:20:43 -05:00 committed by GitHub
parent d15e15bd05
commit 0fe6551ee3

View File

@ -824,6 +824,12 @@ void GMainWindow::dragMoveEvent(QDragMoveEvent* event) {
event->acceptProposedAction(); event->acceptProposedAction();
} }
void GMainWindow::keyPressEvent(QKeyEvent* event) {
if (event->key() == Qt::Key_F4 && emulation_running) {
OnPauseGame();
}
}
bool GMainWindow::ConfirmChangeGame() { bool GMainWindow::ConfirmChangeGame() {
if (emu_thread == nullptr) if (emu_thread == nullptr)
return true; return true;