ENIGMA Forums

Contributing to ENIGMA => Developing ENIGMA => Topic started by: Goombert on March 03, 2014, 12:58:01 AM

Title: High Frequency Mouse Capture
Post by: Goombert on March 03, 2014, 12:58:01 AM
http://msdn.microsoft.com/en-us/library/windows/desktop/ee418864(v=vs.85).aspx

According to this you can obtain the mouse position during a WM_MOUSEMOVE call, and I am wondering if this would be better for us to do than querying it using the WinAPI's calls every frame, or rather if the difference is very noticeable such as window_set_caption.

This is related to my decision in my recent pull request to move the Joystick code that wasn't even using DirectInput out of an extension since Microsoft doesn't even advise for DirectInput for anything except joysticks because it adds overhead. And I programmed our Joystick code for Windows using RawInput and it works fine, so I saw no reason to add overhead to Joysticks for no reason.

The only place XInput is needed is for the Xbox 360 controller.
Title: Re: High Frequency Mouse Capture
Post by: time-killer-games on June 02, 2014, 10:20:04 PM
I tend to agree with beowolf on this one, we don't need more things broken.
Title: Re: High Frequency Mouse Capture
Post by: Darkstar2 on June 02, 2014, 10:33:22 PM
I tend to agree with beowolf on this one, we don't need more things broken.

This should be made into a quote used on site :D