diff options
author | Sven Gothel <[email protected]> | 2014-03-16 01:36:59 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-03-16 01:36:59 +0100 |
commit | f0bb162ab18cb39e6b8e07649aa826fbe84c6950 (patch) | |
tree | 63ad91d5dc93393abe8879cc7e8c8b27b09efadc /src/newt/classes | |
parent | 101567f5f16d91a13c8067764d5e14eefb2b9936 (diff) |
NEWT: Minor edits
Diffstat (limited to 'src/newt/classes')
-rw-r--r-- | src/newt/classes/com/jogamp/newt/event/MouseListener.java | 34 | ||||
-rw-r--r-- | src/newt/classes/jogamp/newt/WindowImpl.java | 2 |
2 files changed, 18 insertions, 18 deletions
diff --git a/src/newt/classes/com/jogamp/newt/event/MouseListener.java b/src/newt/classes/com/jogamp/newt/event/MouseListener.java index 6e5142044..5e62306f3 100644 --- a/src/newt/classes/com/jogamp/newt/event/MouseListener.java +++ b/src/newt/classes/com/jogamp/newt/event/MouseListener.java @@ -43,23 +43,23 @@ import com.jogamp.newt.event.MouseEvent.PointerType; */ public interface MouseListener extends NEWTEventListener { - public void mouseClicked(MouseEvent e); - /** Only generated for {@link PointerType#Mouse} */ - public void mouseEntered(MouseEvent e); - /** Only generated for {@link PointerType#Mouse} */ - public void mouseExited(MouseEvent e); - public void mousePressed(MouseEvent e); - public void mouseReleased(MouseEvent e); - public void mouseMoved(MouseEvent e); - public void mouseDragged(MouseEvent e); + public void mouseClicked(MouseEvent e); + /** Only generated for {@link PointerType#Mouse} */ + public void mouseEntered(MouseEvent e); + /** Only generated for {@link PointerType#Mouse} */ + public void mouseExited(MouseEvent e); + public void mousePressed(MouseEvent e); + public void mouseReleased(MouseEvent e); + public void mouseMoved(MouseEvent e); + public void mouseDragged(MouseEvent e); - /** - * Traditional event name originally produced by a {@link PointerType#Mouse mouse} pointer type. - * <p> - * Triggered for any rotational pointer events, see - * {@link MouseEvent#getRotation()} and {@link MouseEvent#getRotationScale()}. - * </p> - */ - public void mouseWheelMoved(MouseEvent e); + /** + * Traditional event name originally produced by a {@link PointerType#Mouse mouse} pointer type. + * <p> + * Triggered for any rotational pointer events, see + * {@link MouseEvent#getRotation()} and {@link MouseEvent#getRotationScale()}. + * </p> + */ + public void mouseWheelMoved(MouseEvent e); } diff --git a/src/newt/classes/jogamp/newt/WindowImpl.java b/src/newt/classes/jogamp/newt/WindowImpl.java index 9593d4faa..d3f835e58 100644 --- a/src/newt/classes/jogamp/newt/WindowImpl.java +++ b/src/newt/classes/jogamp/newt/WindowImpl.java @@ -3250,7 +3250,7 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer private final void dispatchMouseEvent(MouseEvent e) { for(int i = 0; !e.isConsumed() && i < mouseListeners.size(); i++ ) { - MouseListener l = mouseListeners.get(i); + final MouseListener l = mouseListeners.get(i); switch(e.getEventType()) { case MouseEvent.EVENT_MOUSE_CLICKED: l.mouseClicked(e); |