Login  Register

Re: MouseListener, mouseWheelMoved and Shift

Posted by gouessej on Jan 16, 2014; 3:24pm
URL: https://forum.jogamp.org/MouseListener-mouseWheelMoved-and-Shift-tp4031233p4031244.html

Hi

Maybe it would be easier to implement with getButtonsDown().

Edit.: Moreover, wheres AWT has 2 methods returning modifiers (getModifiers() for the states that have just changed, getModifiersEx() with all states), NEWT only has a single getModifiers() method. Don't use +, rather use BUTTON1_DOWN_MASK | BUTTON2_DOWN_MASK but it won't work if NEWT getModifiers() behaves exactly like AWT getModifiers(). In Ardor3D, I only use MouseEvent.getButton(). When you press a mouse button, a new mouse event is generated. If you press the mouse button 1 and then the mouse button 2, 2 mouse (pressed) events are generated. In an high level input system, the current state should already contain the first pressed button when you press the second one.
Julien Gouesse | Personal blog | Website