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

Inverse lookup of controls #19

Open
weakman54 opened this issue Jun 18, 2018 · 2 comments
Open

Inverse lookup of controls #19

weakman54 opened this issue Jun 18, 2018 · 2 comments

Comments

@weakman54
Copy link

Having the ability of checking which inputs match which actions would be helpful in some situations, for example in tutorials. For example showing all the controls corresponding to "attack" with a message along the lines of "To counter an enemy attack, press attack {Show graphics corresponding to the controls attached to "attack"}

I'm pretty sure this is pretty easy to get at already by digging into the config table, but would be nice to have "official" functions for it.

Other features I realized might be nice: Pattern matching for these too (see my other issue: #18 ) and/or a flag to only get the controls that correspond to the current active control-method (keyboard vs. controller)

@tesselode
Copy link
Owner

Is there anything you find unsatisfactory about reading the config table? Is it awkward to parse strings like 'key:return'?

@weakman54
Copy link
Author

Not really, I do feel like it would be nice to have an actual function for it, since right now I had to actually look into the source code to figure out how to do it, and I would also have to implement the function myself. So all in all, just a Quality of Life feature =)

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

No branches or pull requests

2 participants