From 60d6d66385ac96c9ef05d8f541020a727b19ae51 Mon Sep 17 00:00:00 2001 From: Matteo Hausner Date: Fri, 13 Oct 2023 23:20:39 +0200 Subject: [PATCH] ToKeyAction, ToMouseButtonAction: fixed action not getting handled when configured as SINGLE_ON_RELEASE IActivatableAction.init() default method was no longer getting called, after the introduction of the MinActivationIntervalAction super class, which defines its own init() method --- .../bwravencl/controllerbuddy/input/action/ToKeyAction.java | 6 ++++++ .../controllerbuddy/input/action/ToMouseButtonAction.java | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/ToKeyAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/ToKeyAction.java index fc0e25a6..9b2e9b28 100644 --- a/src/main/java/de/bwravencl/controllerbuddy/input/action/ToKeyAction.java +++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/ToKeyAction.java @@ -116,6 +116,12 @@ void handleAction(boolean hot, final Input input) { } } + @Override + public void init(final Input input) { + super.init(input); + IActivatableAction.super.init(input); + } + @Override public boolean isLongPress() { return longPress; diff --git a/src/main/java/de/bwravencl/controllerbuddy/input/action/ToMouseButtonAction.java b/src/main/java/de/bwravencl/controllerbuddy/input/action/ToMouseButtonAction.java index 6916ebbf..94e93ffb 100644 --- a/src/main/java/de/bwravencl/controllerbuddy/input/action/ToMouseButtonAction.java +++ b/src/main/java/de/bwravencl/controllerbuddy/input/action/ToMouseButtonAction.java @@ -109,6 +109,12 @@ void handleAction(boolean hot, final Input input) { } } + @Override + public void init(final Input input) { + super.init(input); + IActivatableAction.super.init(input); + } + @Override public boolean isLongPress() { return longPress;