@Override
    public void mousePressed(MouseEvent awtEvt) {
        // Must flip Y!
        int y = component.getHeight() - awtEvt.getY();
        MouseButtonEvent evt = new MouseButtonEvent(getJMEButtonIndex(awtEvt), true, awtEvt.getX(), y);
        evt.setTime(awtEvt.getWhen());
        synchronized (eventQueue) {
            eventQueue.add(evt);
        }
    }
<code>AwtMouseInput</code>

@author Joshua Slack
@author MHenze (cylab)

@version $Revision$
jme3-desktop/src/main/java/com/jme3/input/awt/AwtMouseInput.java