Search code examples
cgccsfml

deprecated mouse wheel event with csfml


Basically I have been programming in csfml and when I try to compile my code it will give me two warnings the first one would be: 'sfMouseWheelEvent' is deprecated [-Wdeprecated-declarations]and the second warning is: deprecated [-Wdeprecated-declarations].

typedef struct CSFML_DEPRECATED I've been trying to execute the programm but it gives me a window which doesn't show up and stops reacting imediatly.


Solution

  • If it helps: https://www.sfml-dev.org/changelog.php#sfml-2.3

    Deprecated API

    sf::Event::MouseWheelEvent: This event is deprecated and potentially inaccurate. Use MouseWheelScrollEvent instead.