1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 08:28:11 +00:00

Kernel: Clean up VMWareMouseDevice and VMWareBackdoor

No functional changes.
This commit is contained in:
Jelle Raaijmakers 2021-11-04 15:34:13 +01:00 committed by Andreas Kling
parent 53c8faaafc
commit 8a65a9c30f
2 changed files with 3 additions and 4 deletions

View file

@ -44,7 +44,6 @@ void VMWareMouseDevice::irq_handle_byte_read(u8)
}
evaluate_block_conditions();
}
return;
}
VMWareMouseDevice::VMWareMouseDevice(const I8042Controller& ps2_controller)

View file

@ -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);