Skip to content

Commit

Permalink
Kernel: Fix scrolling up in VMware
Browse files Browse the repository at this point in the history
The mouse wheel delta is provided as a signed 8 bit value.
  • Loading branch information
tomuta authored and awesomekling committed Mar 1, 2021
1 parent 152af3a commit b4c1b96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Kernel/Devices/VMWareBackdoor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ Optional<MousePacket> VMWareBackdoor::receive_mouse_packet()
int buttons = (command.ax & 0xFFFF);
int x = (command.bx);
int y = (command.cx);
int z = (command.dx);
int z = (i8)(command.dx); // signed 8 bit value only!

if constexpr (PS2MOUSE_DEBUG) {
dbgln("Absolute Mouse: Buttons {:x}", buttons);
Expand Down

0 comments on commit b4c1b96

Please sign in to comment.