platform for developing on SQFMI's Watchy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

22 lines
417 B

#ifndef _EVENTLISTENER_h
#define _EVENTLISTENER_h
#include "watchos.h"
#include "Queue.h"
#include "Events.h"
class EventListener
{
private:
Queue<kernel_handle_t> m_event_queue;
protected:
bool hasEvent();
Event* popEvent();
void releaseEvent(kernel_handle_t handle);
public:
void pushEvent(kernel_handle_t handle);
uint32_t getEventSourceMask();
uint16_t getEventTypeMask();
};
#endif