Improved code readability. Components now aware of what mouse button was clicked.
[sixth-3d.git] / src / main / java / eu / svjatoslav / sixth / e3d / gui / humaninput / MouseInteractionController.java
index dc86b52..e29f978 100644 (file)
@@ -1,12 +1,7 @@
 /*
- * Sixth 3D engine. Copyright ©2012-2020, 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
- * or later as published by the Free Software Foundation.
- *
+ * Sixth 3D engine. Author: Svjatoslav Agejenko. 
+ * This project is released under Creative Commons Zero (CC0) license.
  */
-
 package eu.svjatoslav.sixth.e3d.gui.humaninput;
 
 public interface MouseInteractionController {
@@ -15,7 +10,7 @@ public interface MouseInteractionController {
      * Called when mouse is clicked on component.
      * @return <code>true</code> if view update is needed as a consequence of this mouse click.
      */
-    boolean mouseClicked();
+    boolean mouseClicked(int button);
 
     /**
      * Called when mouse gets over given component.