TONY: Added an extra check for shouldQuit into the main event loop
This commit is contained in:
parent
61d460a854
commit
b8d5e17fef
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ void RMInput::poll() {
|
|||
_leftClickMouse = _leftReleaseMouse = _rightClickMouse = _rightReleaseMouse = false;
|
||||
|
||||
// Get pending events
|
||||
while (g_system->getEventManager()->pollEvent(_event)) {
|
||||
while (g_system->getEventManager()->pollEvent(_event) && !_vm->shouldQuit()) {
|
||||
switch (_event.type) {
|
||||
case Common::EVENT_MOUSEMOVE:
|
||||
case Common::EVENT_LBUTTONDOWN:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue