mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:37:43 +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();
|
evaluate_block_conditions();
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
VMWareMouseDevice::VMWareMouseDevice(const I8042Controller& ps2_controller)
|
VMWareMouseDevice::VMWareMouseDevice(const I8042Controller& ps2_controller)
|
||||||
|
|
|
@ -204,9 +204,9 @@ Optional<MousePacket> VMWareBackdoor::receive_mouse_packet()
|
||||||
send(command);
|
send(command);
|
||||||
|
|
||||||
int buttons = (command.ax & 0xFFFF);
|
int buttons = (command.ax & 0xFFFF);
|
||||||
int x = (command.bx);
|
int x = command.bx;
|
||||||
int y = (command.cx);
|
int y = command.cx;
|
||||||
int z = (i8)(command.dx); // signed 8 bit value only!
|
int z = static_cast<i8>(command.dx); // signed 8 bit value only!
|
||||||
|
|
||||||
if constexpr (PS2MOUSE_DEBUG) {
|
if constexpr (PS2MOUSE_DEBUG) {
|
||||||
dbgln("Absolute Mouse: Buttons {:x}", buttons);
|
dbgln("Absolute Mouse: Buttons {:x}", buttons);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue