This commit is contained in:
Lendemor 2018-04-10 00:29:34 +02:00
commit 01ef5c4e1c

View File

@ -138,10 +138,8 @@ void Input::updateEvents(){
if (event.mouseWheelScroll.wheel == sf::Mouse::VerticalWheel) if (event.mouseWheelScroll.wheel == sf::Mouse::VerticalWheel)
m_delta_vertical_scroll = event.mouseWheelScroll.delta; m_delta_vertical_scroll = event.mouseWheelScroll.delta;
} }
break; else
case sf::Event::MouseWheelMoved: io.MouseWheel += event.mouseWheelScroll.delta;
if (focus_on_imgui)
io.MouseWheel += static_cast<float>(event.mouseWheel.delta);
break; break;
case sf::Event::MouseButtonPressed: case sf::Event::MouseButtonPressed:
if (!focus_on_imgui) if (!focus_on_imgui)