Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InputMapEditor control is not updated when adding actions in tool mode #44776

Closed
me2beats opened this issue Dec 29, 2020 · 4 comments
Closed

Comments

@me2beats
Copy link

me2beats commented Dec 29, 2020

Godot version:

3.2.3

OS/device including version:

Windows

Issue description:

tool
extends Control

func _ready():
    InputMap.add_action("test")
    print (InputMap.has_action("test"))

After running this, I can see

True

In Output
But I don't see new action in InputMap list (Project-ProjectSetting-InputMap).

And when I reopen the project, the input data (new test action) is lost.

Steps to reproduce:

  1. Create a project
  2. Create a node (in this example I use Control) and attach the script above.
  3. Save the script and reopen the scene (for triggering the Control _ready())
    now True should be printed in Output
  4. Select Project - ProjectSettings - InputMap to open InputMap window.
    As you can see, new test action is not added.

Minimal reproduction project:

@AnidemDex
Copy link

Still happens in Godot 3.4.2

@AnidemDex
Copy link

Additional note: You can add actions from plugins, but they're only visible when you restart the editor

@alazifk
Copy link

alazifk commented Mar 14, 2023

Same thing happens in Godot 4.0. InputMap.add_action() appears to be broken.

@Calinou
Copy link
Member

Calinou commented Nov 21, 2024

Thanks for the report! Consolidating in #25865.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants