Optimized frame repainting. Fixed mouse click processing.
[sixth-3d.git] / src / main / java / eu / svjatoslav / sixth / e3d / gui / humaninput / MouseInteractionController.java
index e0b8478..75abbaf 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Sixth 3D engine. Copyright ©2012-2016, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Sixth 3D engine. Copyright ©2012-2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of version 3 of the GNU Lesser General Public License
@@ -13,17 +13,20 @@ public interface MouseInteractionController {
 
     /**
      * Called when mouse is clicked on component
+     * @return <code>true</code> if view update is needed.
      */
-    void mouseClicked();
+    boolean mouseClicked();
 
     /**
      * Called when mouse gets over given component.
+     * @return <code>true</code> if view update is needed.
      */
-    void mouseEntered();
+    boolean mouseEntered();
 
     /**
      * Called when mouse leaves screen area occupied by component.
+     * @return <code>true</code> if view update is needed.
      */
-    void mouseExited();
+    boolean mouseExited();
 
 }