mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
Kernel: Clean up VMWareMouseDevice and VMWareBackdoor
No functional changes.
This commit is contained in:
parent
53c8faaafc
commit
8a65a9c30f
Notes:
sideshowbarker
2024-07-18 01:30:04 +09:00
Author: https://github.com/gmta
Commit: 8a65a9c30f
Pull-request: https://github.com/SerenityOS/serenity/pull/10791
2 changed files with 3 additions and 4 deletions
|
@ -204,9 +204,9 @@ Optional<MousePacket> VMWareBackdoor::receive_mouse_packet()
|
|||
send(command);
|
||||
|
||||
int buttons = (command.ax & 0xFFFF);
|
||||
int x = (command.bx);
|
||||
int y = (command.cx);
|
||||
int z = (i8)(command.dx); // signed 8 bit value only!
|
||||
int x = command.bx;
|
||||
int y = command.cx;
|
||||
int z = static_cast<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