Don't parse events with the gui active

This commit is contained in:
simon.kagstrom 2010-01-30 08:38:10 +00:00
parent 15023a3649
commit 48b98908a8

View File

@ -672,6 +672,10 @@ void C64Display::PollKeyboard(uint8 *key_matrix, uint8 *rev_matrix, uint8 *joyst
while (SDL_PollEvent(&event)) { while (SDL_PollEvent(&event)) {
Gui::gui->pushEvent(&event); Gui::gui->pushEvent(&event);
/* Ignore keyboard input while the menu is active */
if (Gui::gui->is_active)
continue;
switch (event.type) { switch (event.type) {
// Key pressed // Key pressed