@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
|
||||
#include <boost/asio/any_io_executor.hpp>
|
||||
|
||||
#include <luma.hpp>
|
||||
|
||||
#include <vamp_protocol/page_control.hpp>
|
||||
|
||||
|
||||
namespace vamp_zero {
|
||||
|
||||
class touch_input {
|
||||
public:
|
||||
touch_input(boost::asio::any_io_executor executor, std::function<void(vamp_protocol::page_command)> handler);
|
||||
~touch_input();
|
||||
touch_input(touch_input const &) = delete;
|
||||
auto operator=(touch_input const &) -> touch_input & = delete;
|
||||
auto handle(luma::touch_event const &event) -> std::bool_t;
|
||||
auto stop() -> void;
|
||||
private:
|
||||
struct state;
|
||||
std::shared_ptr<state> state_;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user