Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
General
»
How to get the real displacement of the mouse wheel
Print
Pages: [
1
]
Author
Topic: How to get the real displacement of the mouse wheel (Read 955 times)
0 Members and 1 Guest are viewing this topic.
andrewkoro105
Newbie
Posts: 5
How to get the real displacement of the mouse wheel
«
on:
September 04, 2022, 01:32:56 pm »
How to get the real displacement of the mouse wheel (which means fractional delta value).
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11034
Re: How to get the real displacement of the mouse wheel
«
Reply #1 on:
September 08, 2022, 04:53:13 pm »
Make sure you're using the MouseWheelScrolled event and not just the MouseWheelMoved event.
https://www.sfml-dev.org/documentation/2.5.1/structsf_1_1Event_1_1MouseWheelScrollEvent.php
Other than that, I don't really know what you're looking for.
Logged
Official FAQ:
https://www.sfml-dev.org/faq.php
Official Discord Server:
https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog:
https://duerrenberger.dev/blog/
Print
Pages: [
1
]
SFML community forums
»
Help
»
General
»
How to get the real displacement of the mouse wheel