Login  Register

Re: Capturing relative mouse input (for 1st person shooters etc)

Posted by gouessej on Jul 19, 2012; 2:06pm
URL: https://forum.jogamp.org/Capturing-relative-mouse-input-for-1st-person-shooters-etc-tp4025593p4025594.html

Hi

Several free open source first person shooters use JOGL including jogl-shooter and TUER (mine). The way you get events depends on the canvas you use. Please look at my Ardor3D renderer based on JOGL 2, you will see how I do that with AWT and NEWT :
http://gouessej.wordpress.com/2011/09/18/le-moteur-3d-ardor3d-fonctionne-desormais-avec-jogl-2-the-3d-engine-ardor3d-now-works-with-jogl-2/

Of course you don't need to add any new API to do that, it has worked fine for years, it is a common problem.

You can use an approach based on events or JInput for JogAmp.
Julien Gouesse | Personal blog | Website