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:
parent
53c8faaafc
commit
8a65a9c30f
2 changed files with 3 additions and 4 deletions
|
@ -44,7 +44,6 @@ void VMWareMouseDevice::irq_handle_byte_read(u8)
|
|||
}
|
||||
evaluate_block_conditions();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
VMWareMouseDevice::VMWareMouseDevice(const I8042Controller& ps2_controller)
|
||||
|
|
|
@ -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