mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:47:34 +00:00
Kernel: Fix scrolling up in VMware
The mouse wheel delta is provided as a signed 8 bit value.
This commit is contained in:
parent
152af3a297
commit
b4c1b96d96
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue