Doly C++ SDK v1.00
Loading...
Searching...
No Matches
EyeEvent.h
Go to the documentation of this file.
1#pragma once
2#include <stdint.h>
3#include <vector>
4#include <algorithm>
5#include "EyeEventListener.h"
6
18
19namespace EyeEvent
20{
29 void AddListener(EyeEventListener* observer, bool priority = false);
30
36
41 void AddListenerOnStart(void(*onStart)(uint16_t));
42
47 void RemoveListenerOnStart(void(*onStart)(uint16_t));
48
53 void AddListenerOnComplete(void(*onComplete)(uint16_t));
54
59 void RemoveListenerOnComplete(void(*onComplete)(uint16_t));
60
65 void AddListenerOnAbort(void(*onAbort)(uint16_t));
66
71 void RemoveListenerOnAbort(void(*onAbort)(uint16_t));
72} // namespace EyeEvent
Public listener interface for EyeControl events.
Interface for receiving EyeControl events.
Definition EyeEventListener.h:36
Definition EyeEvent.h:20
void AddListenerOnComplete(void(*onComplete)(uint16_t))
Register a static callback invoked when an eye action/animation completes.
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 AddListener(EyeEventListener *observer, bool priority=false)
Register an EyeEventListener to receive events.
void RemoveListenerOnStart(void(*onStart)(uint16_t))
Unregister a previously added start callback.
void RemoveListenerOnAbort(void(*onAbort)(uint16_t))
Unregister a previously added abort callback.
void AddListenerOnAbort(void(*onAbort)(uint16_t))
Register a static callback invoked when an eye action/animation is aborted.
void RemoveListenerOnComplete(void(*onComplete)(uint16_t))
Unregister a previously added complete callback.