From 796937cb13a8f21468f799e42048825d6de55afe Mon Sep 17 00:00:00 2001 From: Abe Pazos Date: Tue, 18 Apr 2023 22:57:51 +0200 Subject: [PATCH] Remove pressedButtons, now implemented via MouseTracker (#302) --- orx-view-box/src/commonMain/kotlin/ViewBox.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/orx-view-box/src/commonMain/kotlin/ViewBox.kt b/orx-view-box/src/commonMain/kotlin/ViewBox.kt index 3af77da0..8fa416e1 100644 --- a/orx-view-box/src/commonMain/kotlin/ViewBox.kt +++ b/orx-view-box/src/commonMain/kotlin/ViewBox.kt @@ -56,8 +56,10 @@ class ViewBox( override val moved = Event() override var position: Vector2 = -clientArea.corner - override val pressedButtons: MutableSet - get() = TODO("Not yet implemented") + // Note: use MouseTracker() instead of pressedButtons + //override val pressedButtons: MutableSet + // get() = TODO("Not yet implemented") + override val scrolled = Event() } @@ -298,4 +300,4 @@ fun Program.viewBox( viewBox.f() } return viewBox -} \ No newline at end of file +}