changed to boost optional instead of errorevent
This commit is contained in:
@@ -8,8 +8,10 @@
|
||||
#ifndef SRC_INPUT_IINPUTDRIVER_H_
|
||||
#define SRC_INPUT_IINPUTDRIVER_H_
|
||||
|
||||
#include "input/IEventHandler.h"
|
||||
#include <memory>
|
||||
#include <boost/optional.hpp>
|
||||
|
||||
#include "input/IEventHandler.h"
|
||||
|
||||
namespace flippR_driver
|
||||
{
|
||||
@@ -23,7 +25,7 @@ namespace input
|
||||
|
||||
virtual void unregister_event_handler(IEventHandler *handler) = 0;
|
||||
|
||||
virtual std::shared_ptr<Event> get_event(std::string name) = 0;
|
||||
virtual boost::optional<std::shared_ptr<Event>> get_event(std::string name) = 0;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user