refactored InputName
This commit is contained in:
@@ -12,24 +12,24 @@
|
||||
#ifndef INPUTEVENTHANDLER_H_
|
||||
#define INPUTEVENTHANDLER_H_
|
||||
|
||||
#include "Detector.h"
|
||||
#include "InputDriver.h"
|
||||
#include "Event.hpp"
|
||||
|
||||
namespace Input
|
||||
{
|
||||
|
||||
class InputEventHandler
|
||||
class EventHandler
|
||||
{
|
||||
public:
|
||||
InputEventHandler(std::shared_ptr<Detector> detector) :
|
||||
EventHandler(std::shared_ptr<Detector> detector) :
|
||||
detector(detector)
|
||||
{
|
||||
this->detector->register_input_event_handler(this);
|
||||
this->detector->register_event_handler(this);
|
||||
}
|
||||
|
||||
virtual ~InputEventHandler()
|
||||
{
|
||||
this->detector->unregister_input_event_handler(this);
|
||||
this->detector->unregister_event_handler(this);
|
||||
this->detector = NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user