1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00

Replaced event handling break system with key capturing

This commit is contained in:
Ivan Savenko
2023-05-20 01:30:15 +03:00
parent f4d67fe675
commit c77f8482e3
8 changed files with 20 additions and 40 deletions

View File

@ -78,8 +78,6 @@ void InputHandler::processEvents()
boost::unique_lock<boost::mutex> lock(eventsMutex);
for (auto const & currentEvent : eventsQueue)
{
GH.events().allowEventHandling(true);
if (currentEvent.type == SDL_MOUSEMOTION)
{
cursorPosition = Point(currentEvent.motion.x, currentEvent.motion.y);