What is the proper way to unsubscribe for an event after I have subscribed?
I'd like to disconnect the mechanism given a certain circumstance but I can't find a clean way to do that.
Thanks,
Chris
unsubscribing for events
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: unsubscribing for events
When you subscribe to an event you get returned an Event::Connection object. This can be used to unsubscribe from the event. There is also Event::ScopedConnection which will auto-unsubscribe when it goes out of scope.
HTH
CE.
HTH
CE.
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 6 guests