mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:17:46 +00:00
Kernel: Expose minor device numbers for keyboard and mouse
A fix for two FIXMEs, and paving the way for multi-keyboard/mouse support, I guess.
This commit is contained in:
parent
6536a979d8
commit
370231c05c
4 changed files with 8 additions and 12 deletions
|
@ -35,9 +35,7 @@ public:
|
|||
// ^Device
|
||||
virtual mode_t required_mode() const override { return 0440; }
|
||||
|
||||
//FIXME: It should be something like String::formatted("keyboard{}", minor())
|
||||
// instead of a fixed string like this
|
||||
virtual String device_name() const override { return "keyboard"; }
|
||||
virtual String device_name() const override { return String::formatted("keyboard{}", minor()); }
|
||||
|
||||
void update_modifier(u8 modifier, bool state)
|
||||
{
|
||||
|
|
|
@ -34,9 +34,7 @@ public:
|
|||
// ^Device
|
||||
virtual mode_t required_mode() const override { return 0440; }
|
||||
|
||||
//FIXME: It should be something like String::formatted("mouse{}", minor())
|
||||
// instead of a fixed string like this
|
||||
virtual String device_name() const override { return "mouse"; }
|
||||
virtual String device_name() const override { return String::formatted("mouse{}", minor()); }
|
||||
|
||||
protected:
|
||||
MouseDevice();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue