1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:17:45 +00:00

Kernel+WindowServer: Move mouse input signal parsing to kernel driver.

It was silly for the WindowServer to have to know anything about the
format of PS/2 mouse packets.

This patch also enables use of the middle mouse button.
This commit is contained in:
Andreas Kling 2019-03-05 13:59:44 +01:00
parent 1cc32ebc7e
commit 26a9d662f4
6 changed files with 74 additions and 42 deletions

7
Kernel/MousePacket.h Normal file
View file

@ -0,0 +1,7 @@
#pragma once
struct MousePacket {
int dx { 0 };
int dy { 0 };
byte buttons;
};