diff --git a/src/main/java/de/bwravencl/controllerbuddy/gui/Main.java b/src/main/java/de/bwravencl/controllerbuddy/gui/Main.java index 0dc7a788..94d2fafd 100644 --- a/src/main/java/de/bwravencl/controllerbuddy/gui/Main.java +++ b/src/main/java/de/bwravencl/controllerbuddy/gui/Main.java @@ -196,6 +196,7 @@ import de.bwravencl.controllerbuddy.input.Profile; import de.bwravencl.controllerbuddy.input.ScanCode; import de.bwravencl.controllerbuddy.input.action.AxisToRelativeAxisAction; +import de.bwravencl.controllerbuddy.input.action.ButtonToModeAction; import de.bwravencl.controllerbuddy.input.action.IAction; import de.bwravencl.controllerbuddy.input.action.IActivatableAction; import de.bwravencl.controllerbuddy.input.action.ILongPressAction; @@ -2150,8 +2151,14 @@ public void windowOpened(final WindowEvent e) { } private void addTSpanElement(final List> actions, final boolean bold, final Node parentNode) { - addTSpanElement(actions.stream().map(action -> action.getDescription(input)).distinct() - .collect(Collectors.joining(", ")), bold, parentNode); + addTSpanElement(actions.stream().map(action -> { + var description = action.getDescription(input); + + if (action instanceof final ButtonToModeAction buttonToModeAction) + description = (buttonToModeAction.isToggle() ? "⇪" : "⇧") + " " + description; + + return description; + }).distinct().collect(Collectors.joining(", ")), bold, parentNode); } private void addTSpanElement(final String textContent, final boolean bold, final Node parentNode) {