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

Author Topic: Option for high precision unsmoothed mouse movement  (Read 5030 times)

0 Members and 1 Guest are viewing this topic.

sirGustav

  • Newbie
  • *
  • Posts: 22
    • View Profile
Option for high precision unsmoothed mouse movement
« on: October 17, 2012, 11:59:25 pm »
Sfml uses WM_MOUSEMOVE, there should be a option to switch to/from WM_INPUT.

Msdn explains why:
Quote
WM_MOUSEMOVE applies pointer acceleration (also known as ballistics) to the raw mouse data. //...// WM_MOUSEMOVE is ideal for moving mouse pointers, it is not so good for moving a first-person camera, since the high-definition precision will be lost.

I don't know about the details about other platforms, but I assume there are similar settings to be made.
« Last Edit: October 18, 2012, 12:02:54 am by sirGustav »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10815
    • View Profile
    • development blog
    • Email
Re: Option for high precision unsmoothed mouse movement
« Reply #1 on: October 18, 2012, 12:13:53 am »
Just use sf::Mouse and you're not even event depended anymore... ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

sirGustav

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Option for high precision unsmoothed mouse movement
« Reply #2 on: October 18, 2012, 07:34:53 am »
sf::Mouse uses GetCursorPos that is resolution dependent(i.e low precision) and I assume it also is smoothed since it gets the cursor position and not the HID data, so that's no improvement :)
« Last Edit: October 18, 2012, 07:37:02 am by sirGustav »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Option for high precision unsmoothed mouse movement
« Reply #3 on: October 18, 2012, 08:09:19 am »
Raw input (directly from the device, not filtered/adjusted by the OS) has already been requested before. You should first try to find the corresponding topics, and see what my answer was. There's no corresponding task on the tracker so I probably was against it ;D

It would also be nice to know why you need this feature.
Laurent Gomila - SFML developer

sirGustav

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Option for high precision unsmoothed mouse movement
« Reply #4 on: October 18, 2012, 04:16:33 pm »
I did a search and nothing relevant came up. Searching again using the menu search(instead of the search box that I used before) gives me this and this:
Yes, raw input looks like an important feature (not only for mouse, for keyboard too).

Doesn't look like you are against it :)

Why? Unfiltered high precision input is not enough? ;)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Option for high precision unsmoothed mouse movement
« Reply #5 on: October 18, 2012, 06:21:52 pm »
Quote
Doesn't look like you are against it
Ok, then maybe you can create a new task in the tracker which summarizes what you found on the forum.
Laurent Gomila - SFML developer

sirGustav

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Option for high precision unsmoothed mouse movement
« Reply #6 on: October 18, 2012, 09:14:54 pm »
Added the issue: https://github.com/SFML/SFML/issues/304

I can only provide arguments for raw mouse movement so my issue only relates to that.

 

anything