40 lines
722 B
C++
40 lines
722 B
C++
/*
|
|
* 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 "IInputDriver.h"
|
|
|
|
#include "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 |