2019-12-03 19:23:33 +00:00
|
|
|
//
|
|
|
|
// Created by loki on 6/20/19.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef SUNSHINE_INPUT_H
|
|
|
|
#define SUNSHINE_INPUT_H
|
|
|
|
|
2021-05-11 21:30:56 +00:00
|
|
|
#include "platform/common.h"
|
2021-05-17 19:21:57 +00:00
|
|
|
#include "thread_safe.h"
|
2019-12-03 19:23:33 +00:00
|
|
|
namespace input {
|
|
|
|
|
2020-03-15 20:22:42 +00:00
|
|
|
struct input_t;
|
2019-12-22 20:24:50 +00:00
|
|
|
|
|
|
|
void print(void *input);
|
2021-05-11 16:01:56 +00:00
|
|
|
void reset(std::shared_ptr<input_t> &input);
|
2019-12-22 22:34:12 +00:00
|
|
|
void passthrough(std::shared_ptr<input_t> &input, std::vector<std::uint8_t> &&input_data);
|
2020-03-15 20:22:42 +00:00
|
|
|
|
2021-05-11 21:30:56 +00:00
|
|
|
|
2020-03-15 20:22:42 +00:00
|
|
|
void init();
|
|
|
|
|
|
|
|
std::shared_ptr<input_t> alloc();
|
2021-05-11 21:30:56 +00:00
|
|
|
|
|
|
|
using touch_port_event_t = std::unique_ptr<safe::event_t<platf::touch_port_t>>;
|
|
|
|
extern touch_port_event_t touch_port_event;
|
2021-05-17 19:21:57 +00:00
|
|
|
} // namespace input
|
2019-12-03 19:23:33 +00:00
|
|
|
|
|
|
|
#endif //SUNSHINE_INPUT_H
|