Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Window
»
pEvent->mouseWheelScroll.delta .. not put back worth
Print
Pages: [
1
]
Author
Topic: pEvent->mouseWheelScroll.delta .. not put back worth (Read 3280 times)
0 Members and 1 Guest are viewing this topic.
HeinzK
Newbie
Posts: 41
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
»
Logged
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: 11032
Re: pEvent->mouseWheelScroll.delta .. not put back worth
«
Reply #1 on:
November 03, 2015, 08:51:25 am »
Quote from: HeinzK on November 03, 2015, 08:46:15 am
the last worth still return.
I'm not sure what you want to say with that...
Logged
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: 32498
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.
Logged
Laurent Gomila - SFML developer
AlexAUT
Sr. Member
Posts: 396
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
Logged
Android (Play Store):
https://play.google.com/store/apps/details?id=com.alexaut.kroniax.android
Print
Pages: [
1
]
SFML community forums
»
Help
»
Window
»
pEvent->mouseWheelScroll.delta .. not put back worth