do not pause games when menus are pulled down

Previously I disabled this for mac because of bugs in keyboard handling,
but it turns out most people don't like the game pausing on menu
pulldown anyway, so now I disable it for all platforms.

TODO: the game still pauses for modal dialogs.
This commit is contained in:
Rafael Kitover 2018-06-08 04:14:34 -04:00
parent 6e18c3c2d4
commit 7a194fb224
1 changed files with 7 additions and 2 deletions

View File

@ -596,8 +596,13 @@ EVT_DROP_FILES(MainFrame::OnDropFile)
// pause game if menu pops up
//
// this causes problems with keyboard game keys on mac, disable for now
#ifndef __WXMAC__
// This is a feature most people don't like, and it causes problems with
// keyboard game keys on mac, so we will disable it for now.
//
// On Winodws, there will still be a pause because of how the windows event
// model works, that needs to be investigated.
//
#if 0
EVT_MENU_OPEN(MainFrame::MenuPopped)
EVT_MENU_CLOSE(MainFrame::MenuPopped)
EVT_MENU_HIGHLIGHT_ALL(MainFrame::MenuPopped)