Implement horizontal scrolling and Sunshine detection for Moonlight (#793)

This commit is contained in:
Cameron Gutman 2023-01-21 17:42:08 -06:00 committed by GitHub
commit 4b642f6e01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 52 additions and 4 deletions

View file

@ -303,6 +303,18 @@ void scroll(input_t &input, int distance) {
send_input(i);
}
void hscroll(input_t &input, int distance) {
INPUT i {};
i.type = INPUT_MOUSE;
auto &mi = i.mi;
mi.dwFlags = MOUSEEVENTF_HWHEEL;
mi.mouseData = distance;
send_input(i);
}
void keyboard(input_t &input, uint16_t modcode, bool release) {
auto raw = (input_raw_t *)input.get();