[SOLVED] How do Button ShortCuts work?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Caelan Douglas

I’ve added an InputEventAction ShortCut to my Button:

enter image description here

Visually, when the button is pressed, the sprite changes as expected - however, it doesn’t actually trigger anything in code (for example, when using if (Input.IsActionPressed("ui_left"))).

Am I using ShortCut wrong or mistaking its actual purpose?

:bust_in_silhouette: Reply From: kidscancode

Currently, ShortCut is broken on Button when using input actions.

See here for more information: BaseButton's Shortcut system doesn't work with InputEventActions · Issue #15979 · godotengine/godot · GitHub

Thanks! Solved.

Caelan Douglas | 2018-04-24 14:54