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

Enhancement - hook for open/close console #56

Open
aurumvorax opened this issue Sep 14, 2020 · 2 comments
Open

Enhancement - hook for open/close console #56

aurumvorax opened this issue Sep 14, 2020 · 2 comments

Comments

@aurumvorax
Copy link

Basically, I'd like to pause my game while the console is open. Can we perhaps get an empty protected method in CommandExecutor that gets called when the console is opened or closed? If this is of interest, I could create a PR

@StrongJoshua
Copy link
Owner

You could hack this by creating your input multiplexer on top of the Console's one, then on receiving the open/close key event, first pause the game, then let the event propagate to the console. I haven't tested this, and it would be a bit hacky, but could be a good interim solution. However, I'm not opposed to a hook of sorts for console events.

@aurumvorax
Copy link
Author

That's what I've done so far, but I'll come up with a PR for a cleaner way at some point. Just wanted to check before I started on the work :)

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