From 67da8fd538070bcb652538741fcfe89252173abe Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Sat, 6 Sep 2025 17:48:07 +0200 Subject: feat: add support for mouse button binds --- src/compat/yacl/java/KeybindingController.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compat') diff --git a/src/compat/yacl/java/KeybindingController.kt b/src/compat/yacl/java/KeybindingController.kt index e9bd500..c303da2 100644 --- a/src/compat/yacl/java/KeybindingController.kt +++ b/src/compat/yacl/java/KeybindingController.kt @@ -75,8 +75,8 @@ class KeybindingWidget( } override fun mouseClicked(mouseX: Double, mouseY: Double, button: Int): Boolean { - if (button == 0 && isHovered) { - sm.onClick() + if (isHovered) { + sm.onClick(button) return true } return super.mouseClicked(mouseX, mouseY, button) -- cgit