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

GUI Input Mapping Demo does not persist keys to disk #629

Closed
SchwingSK opened this issue Jun 25, 2021 · 1 comment · Fixed by #739
Closed

GUI Input Mapping Demo does not persist keys to disk #629

SchwingSK opened this issue Jun 25, 2021 · 1 comment · Fixed by #739
Labels

Comments

@SchwingSK
Copy link

Which demo project is affected:
GUI Input Mapping Demo

OS/device including version:
tested with Godot 3.3.2 on Windows 10, does not seem to be Windows-related

Issue description:
The project description states:

- Persists the keys to disk, so they are preserved after the project is restarted.

But it does not seem to do so, as closing the program and running it again resets the input mapping.
Looking at the source code, there's only one script (ActionRemapButton.gd) and I don't see where the persitence would be trigerred.
I would really love to have an example of input mapping persistence, if there's a Godot API for it. Or does each project have to roll it's own input mapping perssitence ?
Thanks!

@SchwingSK SchwingSK added the bug label Jun 25, 2021
@Calinou
Copy link
Member

Calinou commented Jun 25, 2021

Check out Escape's Space input mapping GUI which handles saving the keys to a configuration file. Note that it uses its own Settings singleton, but you can replace it with a generic ConfigFile.

@aaronfranke aaronfranke self-assigned this Jun 25, 2021
@aaronfranke aaronfranke removed their assignment May 2, 2022
aaronfranke added a commit that referenced this issue May 7, 2022
…ng4.0

[4.0-dev] GUI Input Mapping Demo Persistent Key Mapping- Fixes #629
aaronfranke added a commit that referenced this issue May 7, 2022
…aps3.x

[3.x] GUI Input Mapping Demo Persistent Key Mapping- Fixes #629
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants