In Java, how can I measure the speed of the mouse movement but disable the actual cursor movement. For example, when someone swipes their mouse across a table, I want to measure how fast he/she swiped the mouse without the cursor actually moving.
I’ve tried doing this by resetting the mouse position to a specific coordinate (robot class) but the mouse is able to escape when I swipe really fast.
If this is not possible in Java, a C# or C++ solution would be okay.
Thanks
if you really want to block mouse movement events you’d need to do it much lower – in c/c++ at the input filter layer. here’s a question to point you in the right direction: Blocking mouse input from a service in Vista
might be possible using autohotkey (which does a lot of the nitty-gritty stuff for you)