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

Add Game::on_close_request #14

Merged
merged 2 commits into from
Apr 25, 2019
Merged

Conversation

jalbert-dev
Copy link
Contributor

Fixes #11

Tried to stick to the style of the original code and documentation. Let me know if there are any issues.

@hecrj
Copy link
Owner

hecrj commented Apr 25, 2019

Thank you very much! 🥂

I am thinking that maybe we could also pass a mutable reference of Self::Input as an argument to this method, like we do in on_input. This way games can track the close request if they need to. Could you add that?

@jalbert-dev
Copy link
Contributor Author

It hadn't occurred to me that a close request from the OS would be something the user might want to store in their Input type, but that does make sense! Went ahead and made that change. I also altered the function description comment to be more in line with yours, and to be a little more specific about what type of close requests the function handles.

@hecrj
Copy link
Owner

hecrj commented Apr 25, 2019

Awesome! Thank you again!

@hecrj hecrj merged commit c62ae80 into hecrj:master Apr 25, 2019
@jalbert-dev jalbert-dev deleted the feature/on_close_request branch April 25, 2019 21:39
@hecrj hecrj added the feature New feature or request label Apr 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Game::on_close_request
2 participants