SFML community forums

Help => Window => Topic started by: OdraEncoded on March 09, 2011, 01:58:13 pm

Title: Mouse scroll wheel input
Post 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.
Title: Mouse scroll wheel input
Post by: Laurent on March 09, 2011, 02:06:37 pm
No, because the mouse wheel has no state. It can only trigger a relative delta, there's no "absolute" wheel position.
Title: Mouse scroll wheel input
Post by: devlin on March 09, 2011, 06:54:15 pm
You could maintain two internal values counting the number of up and down scrolls that has been performed.