1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:47:34 +00:00

Kernel: Fix mouse lag when VMWareBackdoor absolute mode is enabled

We won't be receiving full PS/2 mouse packets when the VMWareBackdoor
absolute mouse mode is enabled. So, read just one byte every time
and retrieve the latest mouse packet from VMWareBackdoor immediately.

Fixes #4086
This commit is contained in:
Tom 2020-11-14 13:46:16 -07:00 committed by Andreas Kling
parent 13383f3267
commit 53cffb5ad9
2 changed files with 24 additions and 20 deletions

View file

@ -85,7 +85,7 @@ private:
I8042Controller& m_controller;
mutable SpinLock<u8> m_queue_lock;
CircularQueue<RawPacket, 100> m_queue;
CircularQueue<MousePacket, 100> m_queue;
u8 m_data_state { 0 };
RawPacket m_data;
bool m_has_wheel { false };