mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-25 13:42:37 +00:00

Fixes GUI events leaking into engines at startup. This caused Phantasmagoria 1 to skip its introduction if the game was started from the ScummVM GUI with a keyboard (Enter) but not with a mouse because the key-down event started the engine and the key-up event remained in the queue. This also purges and mouse events since we happen to already have a purgeMouseEvents() method. We may want to also clear joystick inputs, or possibly the entire event queue, but that can be done after the upcoming release. For now, the known bug is fixed.