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 warning message to controller docs about automatic SDL_GameControllerClose call on drop #1425

Closed
wants to merge 2 commits into from

Conversation

kaphula
Copy link
Contributor

@kaphula kaphula commented Aug 5, 2024

Just in case nobody wastes their time wondering why controller events are not being fired if they initialize controllers in a scope that destroys the opened controller instances on exit.

@Cobrand
Copy link
Member

Cobrand commented Aug 6, 2024

I don't really feel like it's that necessary. I don't mind merging it but it's pretty much in line with everything else in Rust that use structs like File, UdpSocket, AudioStream, etc close their resources when they are dropped. Are you new to Rust by any chance?

@kaphula
Copy link
Contributor Author

kaphula commented Aug 7, 2024

I see, makes sense. I will close it.

@kaphula kaphula closed this Aug 7, 2024
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

Successfully merging this pull request may close these issues.

2 participants