Capturing relative mouse input (for 1st person shooters etc)
Posted by GiGurra on Jul 19, 2012; 1:56pm
URL: https://forum.jogamp.org/Capturing-relative-mouse-input-for-1st-person-shooters-etc-tp4025593.html
Is there any standard way to capture relative mouse input with jogl? From what I can tell I can only get absolute coordinates from the Event Listeners, but maybe I'm missing something.
An (ugly) workaround would be to simply place the cursor back in the center all the time, but I don't particularly like that idea. Also, what if I would want to capture some sub-pixel precision (not sure it's possible but I think if you go through a more raw system API for example API like DirectX I think you can do something like that)
Any ideas, suggestions or hints on where I should start looking?
I guess one could also Jni/Jna up some native solution, but I'd like to avoid that if possible.