3D Mouse Support?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

3D Mouse Support?

tomfu
Hi-

I am new to this forum.  Just curious if Java3D supports a 3D mouse like this:  
http://www.3dconnexion.com/products/spacemouse/spacemousewireless.html 

Thanks,
Tom
Reply | Threaded
Open this post in threaded view
|

Re: 3D Mouse Support?

gouessej
Administrator
Hi

Java3D only gets what the operating system gets and passes to AWT. Therefore, I doubt that it's fully supported.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: 3D Mouse Support?

bjoern
Sure, based on jinput.jar (net.java.games.input) it is possible. I did it with a SpaceMouse Pro and I can also get the feedback of the buttons. I just used info found here:

http://www.3dconnexion.com/forum/viewtopic.php?t=672

and here:

http://fivedots.coe.psu.ac.th/~ad/jg2/ch11/index.html

Works very nice and it"s really great!

Ah, but by the way, if you installed the official driver from their website, Java might not find it. All you have to do, deactivate this process in the System's Device Manager:

HID-compliant game controller

And then kill the following process with the Task Manager:
3DxService.exe

I think, these processes are required for some games or if you want to use the Space Mouse to navigate in Windows. And then that is the problem: Windows captures the events, and Java does not get them anymore. So, that is my theory ;-)

If you need the space mouse only for Java3D, you might not even need to install the driver, because e.g. Windows 8 seems to automatically install one in the background which is sufficient for Java3D.