Skip to content

Commit

Permalink
make vmmouse report relative values
Browse files Browse the repository at this point in the history
Report mouse events as relative events EV_REL, REL_X and REL_Y to
support mouse wheel functionality.

Change-Id: I6a89e81ca93cabd8a35848ebe61c2a29ad928738
Signed-off-by: Zhi Jin <[email protected]>
  • Loading branch information
zjin7 authored and JeevakaPrabu committed Aug 27, 2024
1 parent 0ab5173 commit 2517f05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/mouse/vmmouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ static int vmmouse_enable(struct psmouse *psmouse)
VMMOUSE_CMD(ABSPOINTER_RESTRICT, VMMOUSE_RESTRICT_CPL0,
dummy1, dummy2, dummy3, dummy4);

VMMOUSE_CMD(ABSPOINTER_COMMAND, VMMOUSE_CMD_REQUEST_ABSOLUTE,
VMMOUSE_CMD(ABSPOINTER_COMMAND, VMMOUSE_CMD_REQUEST_RELATIVE,
dummy1, dummy2, dummy3, dummy4);

return 0;
Expand Down

0 comments on commit 2517f05

Please sign in to comment.