I am testing out the feature in the SFML library mouseWheelScroll.delta
but I always get a return value of 0. Why could this be?
My code that I used is below, note that on some of the first lines of code in the program I initialised the variable sf::Event event;
.
if (event.type == sf::Event::MouseWheelScrolled) {
std::cout << "wheel movement: " << event.mouseWheelScroll.delta << std::endl;
}
Does the SFML library need a window or could it use the console? (I only ask because I am creating a console application)