So I'm trying to program a zoom feature with using the mouse scroll. I want to be able to zoom in and out. This is what you see in every day games when you want to change the weapon or when you scroll up and down web pages - so you know what I mean.
if (Mouse.IsButtonPressed(Mouse.Button.Right))
{
gameZoom += 0.01f;
}
else if (Mouse.IsButtonPressed(Mouse.Button.Left))
{
gameZoom -= 0.01f;
}
This is the code that I'm using right now to control the zooming. And it works perfectly just using right and left buttons of the mouse. However it's not as practical as using the mouse wheel to do it. I have looked through the tutorials and tried googling a dozen times for an example with C# and SFML.Net - no such luck...
Please, don't bother giving a another link to the tutorial page. If you have the courtesy to answer, please attach a short C# code which can lead me to my goal. Thank you.