1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-23 04:37:40 +00:00
serenity/Kernel/Devices/HID
Jelle Raaijmakers a4b1c0fd0c Kernel: Process available VMWare mouse events immediately
The Qemu I8042 controller does not send one IRQ per event, it sends
over four since it will not stop trying to emulate the PS/2 mouse.

If the VMWare backdoor is active, a fake I8042 mouse event will be sent
that we can then use to check if there are VMWare mouse events present.
However, we were only processing one mouse event at a time, even though
multiple events could have been queued up. Luckily this does not often
lead to issues, since after the first IRQ we would still get three
additional interrupts that would then empty the queue.

This change makes sure we always empty the event queue immediately,
instead of waiting on the next interrupt to happen. Functionally this
changes nothing - it could merely improve latency by not waiting for
new interrupts to come in.

Coincidently, this brings our implementation closer to how Linux deals
with the VMMouse.
2021-11-04 18:53:37 +01:00
..
HIDDevice.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
HIDManagement.cpp Kernel: Move ACPI and BIOS code into the new Firmware directory 2021-09-12 11:52:16 +02:00
HIDManagement.h AK+Kernel: Move KResult.h to Kernel/API for userspace access 2021-09-05 12:54:48 +02:00
I8042Controller.cpp Kernel: Do not detect mouse or keyboard when handling IRQ for I8042 2021-10-24 21:59:08 +02:00
I8042Controller.h Kernel: Enumify all magic constants for I8042 devices 2021-10-24 21:59:08 +02:00
KeyboardDevice.cpp Kernel: Let MouseDevice and KeyboardDevice write method return EINVAL 2021-09-18 22:57:42 +03:00
KeyboardDevice.h Kernel: Use operator ""sv in all class_name() implementations 2021-10-03 13:36:10 +02:00
MouseDevice.cpp Kernel: Let MouseDevice and KeyboardDevice write method return EINVAL 2021-09-18 22:57:42 +03:00
MouseDevice.h Kernel: Use operator ""sv in all class_name() implementations 2021-10-03 13:36:10 +02:00
PS2KeyboardDevice.cpp Kernel: Enumify all magic constants for I8042 devices 2021-10-24 21:59:08 +02:00
PS2KeyboardDevice.h Kernel: Use operator ""sv in all class_name() implementations 2021-10-03 13:36:10 +02:00
PS2MouseDevice.cpp Everywhere: Rename back-click to backward-click 2021-10-27 22:05:58 +03:00
PS2MouseDevice.h Kernel: Introduce the DeviceManagement singleton 2021-09-17 01:02:48 +03:00
VMWareMouseDevice.cpp Kernel: Process available VMWare mouse events immediately 2021-11-04 18:53:37 +01:00
VMWareMouseDevice.h Kernel: Introduce the DeviceManagement singleton 2021-09-17 01:02:48 +03:00