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

RawGameControllerRemoved event provides broken instance #45

Open
LordOfDragons opened this issue Nov 11, 2023 · 0 comments
Open

RawGameControllerRemoved event provides broken instance #45

LordOfDragons opened this issue Nov 11, 2023 · 0 comments

Comments

@LordOfDragons
Copy link

LordOfDragons commented Nov 11, 2023

Assign a listener to the RawGameController.RawGameControllerRemoved event.

Upon firing the even try to find the controller in the std::vector of controls you stored away. You will find no match since the controller provided in the RawGameControllerRemoved event is broken and does not match anymore the one you added in RawGameControllerAdded. It is as if the operator==() is not working making it impossible to match the controller.

As a result RawGameController can be added when attached to the system but never removed causing broken controller instances to pile up in your application.

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

1 participant