Sunshine/sunshine/input.h

33 lines
606 B
C
Raw Normal View History

//
// Created by loki on 6/20/19.
//
#ifndef SUNSHINE_INPUT_H
#define SUNSHINE_INPUT_H
#include "platform/common.h"
2021-05-17 19:21:57 +00:00
#include "thread_safe.h"
namespace input {
2020-03-15 20:22:42 +00:00
struct input_t;
void print(void *input);
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
2020-03-15 20:22:42 +00:00
void init();
std::shared_ptr<input_t> alloc(safe::mail_t mail);
struct touch_port_t : public platf::touch_port_t {
int env_width, env_height;
// inverse of scalar used for aspect ratio
float scalar_inv;
};
2021-05-17 19:21:57 +00:00
} // namespace input
#endif //SUNSHINE_INPUT_H