From 3e248fe54a3efec3ee8a373ec1f0acc7823507de Mon Sep 17 00:00:00 2001 From: OBattler Date: Sat, 2 May 2020 01:13:30 +0200 Subject: [PATCH] Changed absolute mouse to divide the deltas by 25 instead of 100, works much better over RDP. --- src/win/win_mouse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win/win_mouse.c b/src/win/win_mouse.c index 09a27f052..2e91085ec 100644 --- a/src/win/win_mouse.c +++ b/src/win/win_mouse.c @@ -89,8 +89,8 @@ win_mouse_handle(PRAWINPUT raw) * seems to work fine for RDP on Windows 10 * Not sure about other environments. */ - mousestate.dx += (state.lLastX - x)/100; - mousestate.dy += (state.lLastY - y)/100; + mousestate.dx += (state.lLastX - x)/25; + mousestate.dy += (state.lLastY - y)/25; x=state.lLastX; y=state.lLastY; } else {