From 1caf289a151c0b20df3fc22c2662241145f0cddd Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Fri, 24 Feb 2023 23:57:39 +0200 Subject: [PATCH] Improved code readability. Components now aware of what mouse button was clicked. --- .../java/eu/svjatoslav/sixth/e3d/examples/life_demo/Cell.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1