mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-22 11:29:24 +01:00
Don't parse events with the gui active
This commit is contained in:
parent
15023a3649
commit
48b98908a8
@ -672,6 +672,10 @@ void C64Display::PollKeyboard(uint8 *key_matrix, uint8 *rev_matrix, uint8 *joyst
|
||||
while (SDL_PollEvent(&event)) {
|
||||
Gui::gui->pushEvent(&event);
|
||||
|
||||
/* Ignore keyboard input while the menu is active */
|
||||
if (Gui::gui->is_active)
|
||||
continue;
|
||||
|
||||
switch (event.type) {
|
||||
|
||||
// Key pressed
|
||||
|
Loading…
Reference in New Issue
Block a user