1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:57:35 +00:00

Kernel: Simplify VMWareBackdoor somewhat

- If there is no VMWare backdoor, don't allocate memory for it.
- Remove the "unsupported" state, instead just don't instantiate.
- Move the command-line parsing from init to the driver.
- Move mouse packet reception from PS2MouseDevice to VMWareBackdoor.
This commit is contained in:
Andreas Kling 2020-04-08 16:35:00 +02:00
parent bb2be4bb99
commit 5cc09b0245
7 changed files with 113 additions and 144 deletions

View file

@ -32,6 +32,13 @@ struct MousePacket {
int x { 0 };
int y { 0 };
int z { 0 };
enum Button {
LeftButton = 0x01,
RightButton = 0x02,
MiddleButton = 0x04,
};
unsigned char buttons { 0 };
bool is_relative { true };
};