From 22adeb39022d16c56af1dafaad6414d22b54c4ca Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 16 Jan 2023 20:58:03 -0600 Subject: [PATCH] Enable high resolution scroll events on Sunshine --- src/InputStream.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/InputStream.c b/src/InputStream.c index 6822429..523461f 100644 --- a/src/InputStream.c +++ b/src/InputStream.c @@ -66,7 +66,9 @@ int initializeInputStream(void) { // // GFE 3.13.1.30 is not using NVVHCI for mouse/keyboard (and is confirmed unaffected) // GFE 3.15.0.164 seems to be the first release using NVVHCI for mouse/keyboard - needsBatchedScroll = APP_VERSION_AT_LEAST(7, 1, 409); + // + // Sunshine also uses SendInput() so it's not affected either. + needsBatchedScroll = APP_VERSION_AT_LEAST(7, 1, 409) && !IS_SUNSHINE(); batchedScrollDelta = 0; // Start with the virtual mouse centered