added eventhandler test file
This commit is contained in:
@@ -6,10 +6,11 @@
|
|||||||
*/
|
*/
|
||||||
#include "EventHandler.h"
|
#include "EventHandler.h"
|
||||||
|
|
||||||
using namespace Input;
|
namespace Input
|
||||||
|
{
|
||||||
|
|
||||||
EventHandler::EventHandler(std::shared_ptr<IInputDriver> input_driver) :
|
EventHandler::EventHandler(std::shared_ptr<IInputDriver> input_driver) :
|
||||||
input_driver(input_driver)
|
input_driver(input_driver)
|
||||||
{
|
{
|
||||||
this->input_driver->register_event_handler(this);
|
this->input_driver->register_event_handler(this);
|
||||||
|
|
||||||
@@ -28,4 +29,4 @@ using namespace Input;
|
|||||||
CLOG(WARNING, INPUT_LOGGER) << "Called EventHandler parent class";
|
CLOG(WARNING, INPUT_LOGGER) << "Called EventHandler parent class";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
7
FlippR-Driver/tests/input/TestEventHandler.cpp
Normal file
7
FlippR-Driver/tests/input/TestEventHandler.cpp
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
/*
|
||||||
|
* TestEventHandler.cpp
|
||||||
|
*
|
||||||
|
* Created on: Jun 28, 2018
|
||||||
|
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert, Rafael Vinci, Dr. Franca Rupprecht
|
||||||
|
*/
|
||||||
|
|
||||||
Reference in New Issue
Block a user