SFML community forums
Help => Window => Topic started by: HeinzK on November 03, 2015, 08:46:15 am
-
deleted
-
the last worth still return.
I'm not sure what you want to say with that...
-
Can you show your event loop? My guess is that you're reusing an event without calling pollEvent again.
-
You should have a look again at the EventHandling tutorial (http://www.sfml-dev.org/tutorials/2.3/window-events.php). You did the most common misstake, you should only use the event in the event loop and not outside, so put the "if(event.type == sf::Event::MouseWheel...)" into the pollEvent loop and you code will work like expected.
AlexAUT