mirror of https://github.com/snes9xgit/snes9x.git
Update EmuApplication.cpp: handle Quit binding
Added handling of binding for Quit.
This commit is contained in:
parent
b83f789343
commit
6794f51461
|
@ -386,6 +386,10 @@ void EmuApplication::handleBinding(std::string name, bool pressed)
|
||||||
{
|
{
|
||||||
window->openFile();
|
window->openFile();
|
||||||
}
|
}
|
||||||
|
else if (name == "Quit" && pressed)
|
||||||
|
{
|
||||||
|
window->close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool EmuApplication::isBound(EmuBinding b)
|
bool EmuApplication::isBound(EmuBinding b)
|
||||||
|
@ -741,4 +745,4 @@ void EmuThread::run()
|
||||||
void EmuThread::setMainLoop(std::function<void ()> loop)
|
void EmuThread::setMainLoop(std::function<void ()> loop)
|
||||||
{
|
{
|
||||||
main_loop = loop;
|
main_loop = loop;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue