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

Functions

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

Function Documentation

◆ AddListener()

void EyeEvent::AddListener ( EyeEventListener * observer,
bool priority = false )

Register an EyeEventListener to receive events.

Parameters
observerListener instance.
priorityIf true, listener is placed at the front of the dispatch list.
Warning
The listener object must remain valid until it is removed via RemoveListener().

◆ AddListenerOnAbort()

void EyeEvent::AddListenerOnAbort ( void(* onAbort )(uint16_t))

Register a static callback invoked when an eye action/animation is aborted.

Parameters
onAbortCallback function pointer.
Examples
EyeControl/main.cpp.

◆ AddListenerOnComplete()

void EyeEvent::AddListenerOnComplete ( void(* onComplete )(uint16_t))

Register a static callback invoked when an eye action/animation completes.

Parameters
onCompleteCallback function pointer.
Examples
EyeControl/main.cpp.

◆ AddListenerOnStart()

void EyeEvent::AddListenerOnStart ( void(* onStart )(uint16_t))

Register a static callback invoked when an eye action/animation starts.

Parameters
onStartCallback function pointer.
Examples
EyeControl/main.cpp.

◆ RemoveListener()

void EyeEvent::RemoveListener ( EyeEventListener * observer)

Unregister a previously added EyeEventListener.

Parameters
observerListener instance to remove.

◆ RemoveListenerOnAbort()

void EyeEvent::RemoveListenerOnAbort ( void(* onAbort )(uint16_t))

Unregister a previously added abort callback.

Parameters
onAbortCallback function pointer to remove.
Examples
EyeControl/main.cpp.

◆ RemoveListenerOnComplete()

void EyeEvent::RemoveListenerOnComplete ( void(* onComplete )(uint16_t))

Unregister a previously added complete callback.

Parameters
onCompleteCallback function pointer to remove.
Examples
EyeControl/main.cpp.

◆ RemoveListenerOnStart()

void EyeEvent::RemoveListenerOnStart ( void(* onStart )(uint16_t))

Unregister a previously added start callback.

Parameters
onStartCallback function pointer to remove.
Examples
EyeControl/main.cpp.