mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:17:35 +00:00
Kernel: Detect 5-button PS/2 mouse if present :^)
The detection works very similarly to how we detect a mouse wheel, just another magical sequence of "set sample rate" requests to the mouse followed by an ID check.
This commit is contained in:
parent
c00ff4ba62
commit
c5882d3a18
3 changed files with 47 additions and 19 deletions
|
@ -37,6 +37,8 @@ struct MousePacket {
|
|||
LeftButton = 0x01,
|
||||
RightButton = 0x02,
|
||||
MiddleButton = 0x04,
|
||||
BackButton = 0x08,
|
||||
ForwardButton = 0x10,
|
||||
};
|
||||
|
||||
unsigned char buttons { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue