simulate release of keyboard/gamepad/mouse buttons when stopping session

This commit is contained in:
loki
2019-12-31 12:22:47 +01:00
parent daaec4ba46
commit b5fe713848
3 changed files with 50 additions and 6 deletions
+4
View File
@@ -23,6 +23,9 @@ struct input_t {
input_t();
gamepad_state_t gamepad_state;
std::unordered_map<short, bool> key_press;
std::array<std::uint8_t, 3> mouse_press;
util::ThreadPool::task_id_t back_timeout_id;
platf::input_t input;
@@ -30,6 +33,7 @@ struct input_t {
void print(void *input);
void passthrough(std::shared_ptr<input_t> &input, std::vector<std::uint8_t> &&input_data);
void reset(std::shared_ptr<input_t> &input);
}
#endif //SUNSHINE_INPUT_H