mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Replaced event handling break system with key capturing
This commit is contained in:
@@ -441,10 +441,12 @@ bool CVideoPlayer::playVideo(int x, int y, bool stopOnKey)
|
||||
|
||||
while(nextFrame())
|
||||
{
|
||||
GH.input().fetchEvents();
|
||||
|
||||
if(stopOnKey && GH.input().ignoreEventsUntilInput())
|
||||
return false;
|
||||
if(stopOnKey)
|
||||
{
|
||||
GH.input().fetchEvents();
|
||||
if(GH.input().ignoreEventsUntilInput())
|
||||
return false;
|
||||
}
|
||||
|
||||
SDL_Rect rect = CSDL_Ext::toSDL(pos);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user