fix rawmouse input regression for regular relative mouse movement
This commit is contained in:
@@ -104,11 +104,7 @@ win_mouse_handle(LPARAM lParam, int infocus)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (state.usFlags & MOUSE_MOVE_RELATIVE) {
|
if (state.usFlags & MOUSE_MOVE_ABSOLUTE) {
|
||||||
/* relative mouse, i.e. regular mouse */
|
|
||||||
mousestate.dx += state.lLastX;
|
|
||||||
mousestate.dy += state.lLastY;
|
|
||||||
} else if (state.usFlags & MOUSE_MOVE_ABSOLUTE) {
|
|
||||||
/* absolute mouse, i.e. RDP or VNC
|
/* absolute mouse, i.e. RDP or VNC
|
||||||
* seems to work fine for RDP on Windows 10
|
* seems to work fine for RDP on Windows 10
|
||||||
* Not sure about other environments.
|
* Not sure about other environments.
|
||||||
@@ -118,6 +114,10 @@ win_mouse_handle(LPARAM lParam, int infocus)
|
|||||||
mousestate.dy += (state.lLastY - y)/100;
|
mousestate.dy += (state.lLastY - y)/100;
|
||||||
x=state.lLastX;
|
x=state.lLastX;
|
||||||
y=state.lLastY;
|
y=state.lLastY;
|
||||||
|
} else {
|
||||||
|
/* relative mouse, i.e. regular mouse */
|
||||||
|
mousestate.dx += state.lLastX;
|
||||||
|
mousestate.dy += state.lLastY;
|
||||||
}
|
}
|
||||||
|
|
||||||
err:
|
err:
|
||||||
|
Reference in New Issue
Block a user