mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +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
Notes:
sideshowbarker
2024-07-18 21:50:12 +09:00
Author: https://github.com/tomuta Commit: https://github.com/SerenityOS/serenity/commit/b4c1b96d96d Pull-request: https://github.com/SerenityOS/serenity/pull/5576
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…
Reference in a new issue