I've been working with ways to implement a virtual mouse within the java environment.
By virtual mouse I mean a system overlying the mouse input that will capture movement, 
append that movement to a virtual positioning system, and immediately reset the 
position of the mouse back to the center of the screen.
By setting the mouse cursor to a fully transparent bitmap, you can now have a model 
drawing at the virtual positions. Clamping the positions is possible in this mode, 
whereas before if you moved the mouse outside your application window, you would 
simply stop getting mouse events, and the mouse would be free to move around the rest 
of the screen.
So essentially, all this does is allow the use of mouse positional constraints.

I have got a partial solution implemented with the java.Robot methods, but the problem 
is that the Robot.mouseMove are not immediate, and flushing is unreliable in my tests. 
JNI code, though it would work perfectly, is not an option at this point because it 
will immediately kill the number on benefit of using j3d/java for my game project - 
portability.

So I was wondering: There have got to be others coming up to this hurdle, is there any 
plans within the j3d team to implement a virtualMouseBehavior that can use limits? Or 
maybe i'm just using the wrong methods to get what I want?

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to