diff options
| author | Linnea Gräf <nea@nea.moe> | 2025-09-06 17:48:07 +0200 |
|---|---|---|
| committer | Linnea Gräf <nea@nea.moe> | 2025-09-06 17:48:07 +0200 |
| commit | 67da8fd538070bcb652538741fcfe89252173abe (patch) | |
| tree | 24053cc0b409a15f562289b8b3effd13f6de4bd0 /src/compat | |
| parent | d62ee562abe14cf06275b30411226e440a6ac3a7 (diff) | |
| download | Firmament-67da8fd538070bcb652538741fcfe89252173abe.tar.gz Firmament-67da8fd538070bcb652538741fcfe89252173abe.tar.bz2 Firmament-67da8fd538070bcb652538741fcfe89252173abe.zip | |
feat: add support for mouse button binds
Diffstat (limited to 'src/compat')
| -rw-r--r-- | src/compat/yacl/java/KeybindingController.kt | 4 |
1 files changed, 2 insertions, 2 deletions
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) |
