fixed imgui bindings using a deprecated attribute to get the mouse scroll event
This commit is contained in:
parent
36a0b7c380
commit
f3bab1dc8c
@ -117,9 +117,7 @@ void Input::updateEvents(){
|
||||
case sf::Event::MouseWheelScrolled:
|
||||
if (event.mouseWheelScroll.wheel == sf::Mouse::VerticalWheel)
|
||||
m_delta_vertical_scroll = event.mouseWheelScroll.delta;
|
||||
break;
|
||||
case sf::Event::MouseWheelMoved:
|
||||
io.MouseWheel += static_cast<float>(event.mouseWheel.delta);
|
||||
io.MouseWheel += event.mouseWheelScroll.delta;
|
||||
break;
|
||||
case sf::Event::MouseButtonPressed:
|
||||
action = kb.getPressedAction(input::MOUSE,event.mouseButton.button);
|
||||
|
Loading…
x
Reference in New Issue
Block a user