diff options
Diffstat (limited to 'src/video/allegro_v.cpp')
-rw-r--r-- | src/video/allegro_v.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video/allegro_v.cpp b/src/video/allegro_v.cpp index aa4c3c9a4..60a05d3fd 100644 --- a/src/video/allegro_v.cpp +++ b/src/video/allegro_v.cpp @@ -329,7 +329,7 @@ static uint32 ConvertAllegroKeyIntoMy(WChar *character) static const uint LEFT_BUTTON = 0; static const uint RIGHT_BUTTON = 1; -static void PollEvent() +bool VideoDriver_Allegro::PollEvent() { poll_mouse(); @@ -403,6 +403,8 @@ static void PollEvent() uint keycode = ConvertAllegroKeyIntoMy(&character); HandleKeypress(keycode, character); } + + return false; } /** @@ -482,7 +484,6 @@ void VideoDriver_Allegro::MainLoop() for (;;) { InteractiveRandom(); // randomness - PollEvent(); if (_exit_game) return; if (this->Tick()) { |