Fixed the most common crash on exit, still one more hiding and crashing in libc

This commit is contained in:
2018-02-17 14:54:43 -08:00
parent d6bdcbdeca
commit c17d937ee5
13 changed files with 37 additions and 13 deletions

View File

@@ -7,10 +7,28 @@
class VrEventPublisher;
/**
*
* VrEventSubscriber
*
* When inherited, the user must impliment a
*
*
*
*
*
*
*
*/
class VrEventSubscriber {
public:
virtual ~VrEventSubscriber();
virtual void recieve_event(VrEventPublisher* publisher, std::unique_ptr<vr::Event> event) = 0;
virtual void event_handler(VrEventPublisher *publisher, std::unique_ptr<vr::Event> event) = 0;
void subscribe_to_publisher(VrEventPublisher* publisher, vr::Event::EventType type);
void subscribe_to_publisher(VrEventPublisher* publisher, std::vector<vr::Event::EventType> type);
void unsubscribe(VrEventPublisher* publisher, vr::Event::EventType type);