godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.1k stars 69 forks source link

Add ability to save/load Inputmap profiles #9014

Closed jtbourke closed 6 months ago

jtbourke commented 6 months ago

Describe the project you are working on

This applies to every project.

Describe the problem or limitation you are having in your project

Input Maps must be set up for each project, but they are often very similar as different classes of games (e.g. platformer, driving sim, fps) have standardized input maps. Different regions have their own standard.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

Allow users to save Input Maps as profiles, share the files, and load them into new projects. Create a standardized set of Input Maps for the most common game types and regions, and provide these to users via the asset store. This will allow developers to more quickly begin work on new projects and provide better support for internationalization.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

Add Save and Load buttons to Input Map. These would live at the top of the Input Map tab.

It would also be possible to realize this feature by allowing all Project Settings to be saved and loaded, with an interface that allows the user to toggle which tabs to store in the save file.

If this enhancement will not be used often, can it be worked around with a few lines of script?

It can be worked around by copy/pasting the Input Map section of the project.godot file.

Is there a reason why this should be core and not an add-on in the asset library?

I don't think there is a way to programmatically create Input Map entries, but if that is possible then it could be a plugin.

AThousandShips commented 6 months ago

Thank you for your proposal, closing as a duplicate of:

Consolidating there