From: Svjatoslav Agejenko Date: Fri, 24 Feb 2023 21:57:39 +0000 (+0200) Subject: Improved code readability. Components now aware of what mouse button was clicked. X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=1caf289a151c0b20df3fc22c2662241145f0cddd;p=sixth-3d-demos.git Improved code readability. Components now aware of what mouse button was clicked. --- diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/examples/life_demo/Cell.java b/src/main/java/eu/svjatoslav/sixth/e3d/examples/life_demo/Cell.java index 6b1ee8e..6df2b59 100755 --- a/src/main/java/eu/svjatoslav/sixth/e3d/examples/life_demo/Cell.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/examples/life_demo/Cell.java @@ -98,7 +98,7 @@ class Cell extends AbstractCompositeShape implements } @Override - public boolean mouseClicked() { + public boolean mouseClicked(int button) { setActive(!isActive()); return true; }