Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: How to get the real displacement of the mouse wheel  (Read 953 times)

0 Members and 1 Guest are viewing this topic.

andrewkoro105

  • Newbie
  • *
  • Posts: 5
    • View Profile
How to get the real displacement of the mouse wheel
« on: September 04, 2022, 01:32:56 pm »
How to get the real displacement of the mouse wheel (which means fractional delta value).

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: How to get the real displacement of the mouse wheel
« Reply #1 on: September 08, 2022, 04:53:13 pm »
Make sure you're using the MouseWheelScrolled event and not just the MouseWheelMoved event.
https://www.sfml-dev.org/documentation/2.5.1/structsf_1_1Event_1_1MouseWheelScrollEvent.php

Other than that, I don't really know what you're looking for.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything