Doug Gehringer <[EMAIL PROTECTED]> on 03/03/99 01:07:34 PM
To: Gary Moss/arl@arl
cc:
Subject: Re: [java3d] Button bindings in MouseBehavior
> From: [EMAIL PROTECTED]
>
> OK, I figured out how to key on mouse movement (w/o buttons pressed), I was
> using MOUSE_DRAGGED rather than MOUSE_MOVED. Still curious how the
individual
> buttons are bound to MouseRotate, MouseZoom and MouseTranslate.
Check out the processStimulus methods on MouseRotate, MouseZoom and
MouseTranslate. They code which check the mouse events to see if they have the
right mouse button pressed. They use the "standard" Java mappings to handle
the
differences between 1, 2 and 3 mouse buttons, i.e. mouse button 3 == mouse
button 1 with the META down.
Ohhhhhhh, I didn't get that "MouseEvent)event[i]).isMetaDown()" mapped to a
mouse button! So, no modifier (neither Alt or Meta) is button 1, Meta is
button 2 and Alt is button 3.
Thanks Doug!
-Gary
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/