X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fsixth%2Fe3d%2Fgui%2Fhumaninput%2FMouseInteractionController.java;h=e29f978dcf866587092c8525925ca7f536ac35db;hb=a377e3094d304bbc815b36edc2eb303ec023ea48;hp=2064343566b2e87ed30d556a1b4bfaa7fad9a0b0;hpb=b1e8d7bd8c9d0905e9fe3c46fc84a11779b95982;p=sixth-3d.git diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/gui/humaninput/MouseInteractionController.java b/src/main/java/eu/svjatoslav/sixth/e3d/gui/humaninput/MouseInteractionController.java index 2064343..e29f978 100644 --- a/src/main/java/eu/svjatoslav/sixth/e3d/gui/humaninput/MouseInteractionController.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/gui/humaninput/MouseInteractionController.java @@ -1,29 +1,27 @@ /* - * Sixth 3D engine. Copyright ©2012-2017, 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 { /** - * Called when mouse is clicked on component + * Called when mouse is clicked on component. + * @return true if view update is needed as a consequence of this mouse click. */ - void mouseClicked(); + boolean mouseClicked(int button); /** * Called when mouse gets over given component. + * @return true 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 true if view update is needed as a consequence of this mouse exit. */ - void mouseExited(); + boolean mouseExited(); }