SFML community forums

Help => General => Topic started by: etixpp on June 01, 2013, 03:14:41 pm

Title: Zoom in and out , mouse scroll
Post by: etixpp on June 01, 2013, 03:14:41 pm
Hello,
i want to zoom in when mouse scrolls in front and zoom out when mouse scrolls back, but i find only the option sf::Mouse::middle so it activates when middle mouse button is pressed but i want a event if middle mouse button is scrolled :/ is there a way to do this?
Title: Re: Zoom in and out , mouse scroll
Post by: Laurent on June 01, 2013, 03:34:23 pm
http://www.sfml-dev.org/tutorials/2.0/window-events.php#the-mousewheelmoved-event