You could wake up your behaviour on MouseEvents and then use the getModifiers() method
to determine which button is down.
samples... where 'e' is the MouseEvent object
if (((e.getModifiers() & InputEvent.BUTTON1_MASK) ==
InputEvent.BUTTON1_MASK))
mouseRotate(dx, dy, 0);
else if ((e.getModifiers() & InputEvent.BUTTON2_MASK) ==
InputEvent.BUTTON2_MASK)
mouseDolly(dx, dy);
else if ((e.getModifiers() & InputEvent.BUTTON3_MASK) ==
InputEvent.BUTTON3_MASK)
mouseTranslate(dx, dy);
>>> [EMAIL PROTECTED] 01/12/02 10:56AM >>>
does anyone know how to assign an action when a right button of the mouse is pressed?
like the left activates the translation and the right activates the rotation.
__________________________________
www.edsamail.com
===========================================================================
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".
==========================================================================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".