changed to inputgpiointerface
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
namespace Input
|
namespace Input
|
||||||
{
|
{
|
||||||
|
|
||||||
Detector::Detector(GPIOInterface* in_gpio_interface, std::map<char, InputEvent> events, InputEventNotifier* input_event_notifier) :
|
Detector::Detector(InputGPIOInterface* in_gpio_interface, std::map<char, InputEvent> events, InputEventNotifier* input_event_notifier) :
|
||||||
in_gpio_interface(in_gpio_interface), input_events(events), is_running(true), input_event_notifier(input_event_notifier)
|
in_gpio_interface(in_gpio_interface), input_events(events), is_running(true), input_event_notifier(input_event_notifier)
|
||||||
{
|
{
|
||||||
detect_thread = std::thread(&Detector::detect, this);
|
detect_thread = std::thread(&Detector::detect, this);
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
#include <thread>
|
#include <thread>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
#include "../utilities/GPIOInterface.hpp"
|
#include "../utilities/InputGPIOInterface.h"
|
||||||
#include "InputEvent.h"
|
#include "InputEvent.h"
|
||||||
#include "InputEventNotifier.h"
|
#include "InputEventNotifier.h"
|
||||||
|
|
||||||
@@ -36,7 +36,7 @@ class Detector
|
|||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Detector(GPIOInterface* in_gpio_interface, std::map<char, InputEvent> events, InputEventNotifier* input_event_notifier);
|
Detector(InputGPIOInterface* in_gpio_interface, std::map<char, InputEvent> events, InputEventNotifier* input_event_notifier);
|
||||||
~Detector();
|
~Detector();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@@ -44,7 +44,7 @@ private:
|
|||||||
bool check_inputs(char& address);
|
bool check_inputs(char& address);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
GPIOInterface* in_gpio_interface;
|
InputGPIOInterface* in_gpio_interface;
|
||||||
|
|
||||||
std::map<char, InputEvent> input_events;
|
std::map<char, InputEvent> input_events;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user