Fixed mouse hovering detection
[sixth-3d.git] / src / main / java / eu / svjatoslav / sixth / e3d / gui / humaninput / MouseInteractionController.java
index f2c84b2..5fd43f4 100644 (file)
@@ -12,18 +12,21 @@ package eu.svjatoslav.sixth.e3d.gui.humaninput;
 public interface MouseInteractionController {
 
     /**
-     * Called when mouse is clicked on component
+     * Called when mouse is clicked on component.
+     * @return <code>true</code> if view update is needed as a consequence of this mouse click.
      */
-    void mouseClicked();
+    boolean mouseClicked();
 
     /**
      * Called when mouse gets over given component.
+     * @return <code>true</code> if view update is needed as a consequence of this mouse enter.
      */
-    void mouseEntered();
+    boolean mouseEntered();
 
     /**
      * Called when mouse leaves screen area occupied by component.
+     * @return <code>true</code> if view update is needed as a consequence of this mouse exit.
      */
-    void mouseExited();
+    boolean mouseExited();
 
 }