working on big refactor
This commit is contained in:
@@ -6,17 +6,18 @@
|
||||
#define flippR_driver_DISTRIBUTINGEVENT_H
|
||||
|
||||
#include "input/Event.h"
|
||||
#include "IEventNotifier.h"
|
||||
#include "input/EventNotifier.h"
|
||||
|
||||
namespace flippR_driver
|
||||
{
|
||||
namespace input
|
||||
{
|
||||
|
||||
class DistributingEvent : public Event
|
||||
{
|
||||
public:
|
||||
DistributingEvent(char address, int priority, std::string name,
|
||||
std::chrono::milliseconds bounce_time, std::shared_ptr<IEventNotifier> event_notifier);
|
||||
std::chrono::milliseconds bounce_time, std::shared_ptr<EventNotifier> event_notifier);
|
||||
|
||||
void active();
|
||||
void inactive();
|
||||
@@ -37,11 +38,12 @@ private:
|
||||
ACTIVATED
|
||||
};
|
||||
|
||||
const std::shared_ptr<IEventNotifier> event_notifier;
|
||||
const std::shared_ptr<EventNotifier> event_notifier;
|
||||
|
||||
ActivationState activation_state;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user