hide the mouse

I am making a jogl renderer for jme and using jinput for input. everything is working ok except that I can not figure out how to hide the mouse with java 1.4/jinput.jogl. can any one tell me how to do this.

Set the cursor to a 1,1 transparent image?

Kev

That my work for a full screen program but when it is not full screen then I would have problems when the mouse goes of my screen. When this happens and the user clicks the mouse then the game would lose focus which is a bigger problem then the mouse being visible.

Ah so, its not you want to make it invisible, you want to disable it? Is this for some sort of mouse look thing, if so, the way its been done in the past is with java.awt.Robot and make the cursor invisible. You force the mouse to stay in the center of your screen rather than letting it out.

Not sure if this helps you :wink:

Kev

I tried using the robot code but it effected the readings I got with jogl. Is there any way that I can tell jinput not to look at that data that robot is giving.

Not really, Robot is actually moving the mouse. Is this for mouse look?

Kev

It is for any program that wants to use the mouse input for something including mouse look.