V software is used to collect the actual speed of the mouse, note: instead of the mouse on the computer interface movement speed hand controls the speed of the mouse
CodePudding user response:
Elementary school thinking: the GetCursorPos (), call timer to determine a time period where the mouse moves to the distance/time=speed this time is the cycle of the timer can be 1 ms 10 ms
CSND: use DirectInput components GetDevice struct
CodePudding user response:
reference 1st floor qq_29522823 response: elementary school thinking: the GetCursorPos (), summon a timer to determine a time period where the mouse moves to the distance/time=speed this time is the cycle of the timer can be 1 ms 10 ms CSND: use DirectInput components GetDevice struct Timer timer not estimate, level is very low, can't accurate trigger a 10 ms, so the accuracy of speed is impossible Compared with the underlying way, is the only accurate, DirectInput can try CodePudding user response:
refer to the second floor draculamx response: Quote: refer to 1st floor qq_29522823 response: Elementary school thinking: the GetCursorPos (), call timer to determine a time period where the mouse moves to the distance/time=speed this time is the cycle of the timer can be 1 ms 10 ms CSND: use DirectInput components GetDevice struct Timer timer not estimate, level is very low, can't accurate trigger a 10 ms, so the accuracy of speed is impossible Is at the bottom of the way, is the only accurate, DirectInput can try Who knows, let the landlord to give it a try, let's take the results of the bench, etc CodePudding user response:
The original poster is a new scholars, many places do not understand, bosses can be careful to speak, the best post code, thank you CodePudding user response:
Use the camera to use the mouse hand clap to compare, CodePudding user response:
Distance/time=speed, distance how to calculate?? Computer interface mouse movement distance? Hand to control the speed of the mouse!=computer interface mouse movement distance/time, maybe a little bit of mouse movement, the computer interface of the mouse ran a long distance,