Doly C++ SDK v1.00
Loading...
Searching...
No Matches
EyeEvent.h File Reference

Event registration API for EyeControl. More...

#include <stdint.h>
#include <vector>
#include <algorithm>
#include "EyeEventListener.h"

Go to the source code of this file.

Namespaces

namespace  EyeEvent

Functions

void EyeEvent::AddListener (EyeEventListener *observer, bool priority=false)
 Register an EyeEventListener to receive events.
void EyeEvent::RemoveListener (EyeEventListener *observer)
 Unregister a previously added EyeEventListener.
void EyeEvent::AddListenerOnStart (void(*onStart)(uint16_t))
 Register a static callback invoked when an eye action/animation starts.
void EyeEvent::RemoveListenerOnStart (void(*onStart)(uint16_t))
 Unregister a previously added start callback.
void EyeEvent::AddListenerOnComplete (void(*onComplete)(uint16_t))
 Register a static callback invoked when an eye action/animation completes.
void EyeEvent::RemoveListenerOnComplete (void(*onComplete)(uint16_t))
 Unregister a previously added complete callback.
void EyeEvent::AddListenerOnAbort (void(*onAbort)(uint16_t))
 Register a static callback invoked when an eye action/animation is aborted.
void EyeEvent::RemoveListenerOnAbort (void(*onAbort)(uint16_t))
 Unregister a previously added abort callback.

Detailed Description

Event registration API for EyeControl.

Use this module to subscribe to EyeControl lifecycle events. You can register either: