mirror of
https://github.com/LizardByte/Sunshine.git
synced 2024-11-18 11:10:04 +00:00
33 lines
606 B
C++
33 lines
606 B
C++
//
|
|
// Created by loki on 6/20/19.
|
|
//
|
|
|
|
#ifndef SUNSHINE_INPUT_H
|
|
#define SUNSHINE_INPUT_H
|
|
|
|
#include "platform/common.h"
|
|
#include "thread_safe.h"
|
|
|
|
namespace input {
|
|
|
|
struct input_t;
|
|
|
|
void print(void *input);
|
|
void reset(std::shared_ptr<input_t> &input);
|
|
void passthrough(std::shared_ptr<input_t> &input, std::vector<std::uint8_t> &&input_data);
|
|
|
|
|
|
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;
|
|
};
|
|
} // namespace input
|
|
|
|
#endif //SUNSHINE_INPUT_H
|