SFML community forums
Help => Window => Topic started by: OdraEncoded on March 09, 2011, 01:58:13 pm
-
Hi, is there a built in implementation of mouse scroll wheel values in sf::Input? I found out you can use sf::Event but I couldn't find it in sf::Input. Thanks.
-
No, because the mouse wheel has no state. It can only trigger a relative delta, there's no "absolute" wheel position.
-
You could maintain two internal values counting the number of up and down scrolls that has been performed.