diff --git a/FlippR-Driver/src/input/EventHandler.hpp b/FlippR-Driver/src/input/EventHandler.hpp index c25fb0c..630da7d 100644 --- a/FlippR-Driver/src/input/EventHandler.hpp +++ b/FlippR-Driver/src/input/EventHandler.hpp @@ -12,8 +12,9 @@ #ifndef INPUTEVENTHANDLER_H_ #define INPUTEVENTHANDLER_H_ -#include "InputDriver.h" +#include "InputDriver.hpp" #include "Event.hpp" +#include "Detector.h" namespace Input { @@ -21,22 +22,22 @@ namespace Input class EventHandler { public: - EventHandler(std::shared_ptr detector) : - detector(detector) + EventHandler(std::shared_ptr input_driver) : + input_driver(input_driver) { - this->detector->register_event_handler(this); + this->input_driver->register_event_handler(this); } - virtual ~InputEventHandler() + virtual ~EventHandler() { - this->detector->unregister_event_handler(this); - this->detector = NULL; + this->input_driver->unregister_event_handler(this); + this->input_driver = NULL; } - virtual void handle(InputEvent& event); + virtual void handle(Event& event); private: - std::shared_ptr detector; + std::shared_ptr input_driver; }; } diff --git a/FlippR-Driver/src/input/InputDriver.hpp b/FlippR-Driver/src/input/InputDriver.hpp index 55ea7a9..95701a1 100644 --- a/FlippR-Driver/src/input/InputDriver.hpp +++ b/FlippR-Driver/src/input/InputDriver.hpp @@ -8,7 +8,7 @@ #ifndef SRC_INPUT_INPUTDRIVER_HPP_ #define SRC_INPUT_INPUTDRIVER_HPP_ -#include "EventHandler.h" +#include "EventHandler.hpp" namespace Input {