Changed absolute mouse to divide the deltas by 25 instead of 100, works much better over RDP.

This commit is contained in:
OBattler
2020-05-02 01:13:30 +02:00
parent 416150683a
commit 3e248fe54a

View File

@@ -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 {