33 lines
506 B
C++
33 lines
506 B
C++
//
|
|
// Created by rhetenor on 27.11.18.
|
|
//
|
|
|
|
#ifndef FLIPPR_DRIVER_INPUTSOCKETHANDLER_H
|
|
#define FLIPPR_DRIVER_INPUTSOCKETHANDLER_H
|
|
|
|
#include "input/EventHandler.h"
|
|
|
|
#include <Poco/JSON/JSON.h>
|
|
|
|
#include <string>
|
|
|
|
namespace flippR_driver
|
|
{
|
|
namespace utility
|
|
{
|
|
class InputSocketHandler : public input::EventHandler
|
|
{
|
|
public:
|
|
InputSocketHandler();
|
|
|
|
void handle(input::Event &event) override;
|
|
|
|
private:
|
|
std::string serialize_event(input::Event &event);
|
|
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif //FLIPPR_DRIVER_INPUTSOCKETHANDLER_H
|