Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: pEvent->mouseWheelScroll.delta .. not put back worth  (Read 2385 times)

0 Members and 1 Guest are viewing this topic.

HeinzK

  • Newbie
  • *
  • Posts: 41
    • View Profile
    • ZwiAner
    • Email
pEvent->mouseWheelScroll.delta .. not put back worth
« on: November 03, 2015, 08:46:15 am »
deleted
« Last Edit: December 04, 2019, 08:31:52 am by HeinzK »
The trees, that obstruct the view on the forest, can be allowed to fall! (Die Bäume, die die Sicht auf einen Wald versperren, dürfen gefällt werden!)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10821
    • View Profile
    • development blog
    • Email
Re: pEvent->mouseWheelScroll.delta .. not put back worth
« Reply #1 on: November 03, 2015, 08:51:25 am »
the last worth still return.
I'm not sure what you want to say with that...
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: pEvent->mouseWheelScroll.delta .. not put back worth
« Reply #2 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.
Laurent Gomila - SFML developer

AlexAUT

  • Sr. Member
  • ****
  • Posts: 396
    • View Profile
Re: pEvent->mouseWheelScroll.delta .. not put back worth
« Reply #3 on: November 14, 2015, 01:07:16 pm »
You should have a look again at the EventHandling tutorial. 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