fixed cli
This commit is contained in:
@@ -6,8 +6,10 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
PrintHandler::PrintHandler(std::shared_ptr<FlippR_Driver::Input::IInputDriver> driver) :
|
PrintHandler::PrintHandler(std::shared_ptr<FlippR_Driver::Input::IInputDriver> driver) :
|
||||||
EventHandler(driver)
|
FlippR_Driver::Input::EventHandler(driver)
|
||||||
{}
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void PrintHandler::handle(FlippR_Driver::Input::Event &event)
|
void PrintHandler::handle(FlippR_Driver::Input::Event &event)
|
||||||
|
|||||||
@@ -6,9 +6,10 @@
|
|||||||
#define FLIPPR_DRIVER_PRINTHANDLER_H
|
#define FLIPPR_DRIVER_PRINTHANDLER_H
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include "IEventHandler.h"
|
#include "EventHandler.h"
|
||||||
|
#include "IInputDriver.h"
|
||||||
|
|
||||||
class PrintHandler : public IEventHandler
|
class PrintHandler : public FlippR_Driver::Input::EventHandler
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PrintHandler(std::shared_ptr<FlippR_Driver::Input::IInputDriver> driver);
|
PrintHandler(std::shared_ptr<FlippR_Driver::Input::IInputDriver> driver);
|
||||||
|
|||||||
@@ -11,10 +11,11 @@
|
|||||||
#include "IEventHandler.h"
|
#include "IEventHandler.h"
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
namespace FlippR_Driver {
|
namespace FlippR_Driver
|
||||||
namespace Input {
|
{
|
||||||
|
namespace Input
|
||||||
class IInputDriver {
|
{
|
||||||
|
class IInputDriver {
|
||||||
public:
|
public:
|
||||||
virtual ~IInputDriver() {};
|
virtual ~IInputDriver() {};
|
||||||
|
|
||||||
@@ -23,7 +24,7 @@ namespace FlippR_Driver {
|
|||||||
virtual void unregister_event_handler(IEventHandler *handler) = 0;
|
virtual void unregister_event_handler(IEventHandler *handler) = 0;
|
||||||
|
|
||||||
virtual std::shared_ptr<Event> get_event(std::string name) = 0;
|
virtual std::shared_ptr<Event> get_event(std::string name) = 0;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* SRC_INPUT_IINPUTDRIVER_H_ */
|
#endif /* SRC_INPUT_IINPUTDRIVER_H_ */
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#include "fakeit.hpp"
|
#include "fakeit.hpp"
|
||||||
|
|
||||||
#include "utilities/LoggerFactory.h"
|
#include "utilities/LoggerFactory.h"
|
||||||
#include "input/EventHandler.h"
|
#include "EventHandler.h"
|
||||||
#include "IInputDriver.h"
|
#include "IInputDriver.h"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user