implemented socket handler
This commit is contained in:
@@ -37,7 +37,6 @@ private:
|
||||
ACTIVATED
|
||||
};
|
||||
std::shared_ptr<IEventNotifier> event_notifier;
|
||||
std::chrono::time_point<std::chrono::high_resolution_clock> last_activation;
|
||||
|
||||
ActivationState activation_state;
|
||||
|
||||
|
||||
40
FlippR-Driver/src/input/EventHandler.h
Normal file
40
FlippR-Driver/src/input/EventHandler.h
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* InputEventHandler.h
|
||||
*
|
||||
* This interface must be implemented to be informed about input events.
|
||||
*
|
||||
* Please be aware that handle must be implemented thread safe!
|
||||
*
|
||||
* Created on: Apr 5, 2018
|
||||
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert
|
||||
*/
|
||||
|
||||
#ifndef INPUTEVENTHANDLER_H_
|
||||
#define INPUTEVENTHANDLER_H_
|
||||
|
||||
#include "input/IInputDriver.h"
|
||||
|
||||
#include "input/IEventHandler.h"
|
||||
#include "input/Event.h"
|
||||
|
||||
namespace flippR_driver
|
||||
{
|
||||
namespace input
|
||||
{
|
||||
class EventHandler;
|
||||
|
||||
class EventHandler : public IEventHandler
|
||||
{
|
||||
public:
|
||||
EventHandler(std::shared_ptr<IInputDriver> input_driver);
|
||||
virtual ~EventHandler();
|
||||
virtual void handle(Event& event);
|
||||
|
||||
private:
|
||||
std::shared_ptr<IInputDriver> input_driver;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user