Pages: 1
  Print  
Author Topic: High Frequency Mouse Capture  (Read 1208 times)
Offline (Male) Goombert
Posted on: March 03, 2014, 12:58:01 AM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3110

View Profile
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.
« Last Edit: March 03, 2014, 02:41:21 AM by Robert B Colton » Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Male) time-killer-games
Reply #1 Posted on: June 02, 2014, 10:20:04 PM

Contributor
Location: Virginia Beach
Joined: Jan 2013
Posts: 1166

View Profile Email
I tend to agree with beowolf on this one, we don't need more things broken.
Logged
Offline (Unknown gender) Darkstar2
Reply #2 Posted on: June 02, 2014, 10:33:22 PM
Member
Joined: Jan 2014
Posts: 1244

View Profile Email
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


Logged
Pages: 1
  Print