Improved code readability. Components now aware of what mouse button was clicked.
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Fri, 24 Feb 2023 21:57:39 +0000 (23:57 +0200)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Fri, 24 Feb 2023 21:57:39 +0000 (23:57 +0200)
src/main/java/eu/svjatoslav/sixth/e3d/examples/life_demo/Cell.java

index 6b1ee8e..6df2b59 100755 (executable)
@@ -98,7 +98,7 @@ class Cell extends AbstractCompositeShape implements
     }
 
     @Override
-    public boolean mouseClicked() {
+    public boolean mouseClicked(int button) {
         setActive(!isActive());
         return true;
     }