SFML community forums

Help => Window => Topic started by: HeinzK on November 03, 2015, 08:46:15 am

Title: pEvent->mouseWheelScroll.delta .. not put back worth
Post by: HeinzK on November 03, 2015, 08:46:15 am
deleted
Title: Re: pEvent->mouseWheelScroll.delta .. not put back worth
Post by: eXpl0it3r on November 03, 2015, 08:51:25 am
the last worth still return.
I'm not sure what you want to say with that...
Title: Re: pEvent->mouseWheelScroll.delta .. not put back worth
Post by: Laurent on November 03, 2015, 09:08:38 am
Can you show your event loop? My guess is that you're reusing an event without calling pollEvent again.
Title: Re: pEvent->mouseWheelScroll.delta .. not put back worth
Post by: AlexAUT on November 14, 2015, 01:07:16 pm
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