diff options
author | Marvin Borner | 2021-04-26 16:49:49 +0200 |
---|---|---|
committer | Marvin Borner | 2021-04-26 16:49:49 +0200 |
commit | 6ab6e1d1568380f87bf0276cfac4487db553245b (patch) | |
tree | cce0fad7a4711f9d26c27d066da54eae6e0c9ca9 /kernel/drivers/ps2/mouse.c | |
parent | 6b71accbaf4be52a1e2d3a696675c5e610a4c9b3 (diff) |
PS/2 mouse aah
Diffstat (limited to 'kernel/drivers/ps2/mouse.c')
-rw-r--r-- | kernel/drivers/ps2/mouse.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/kernel/drivers/ps2/mouse.c b/kernel/drivers/ps2/mouse.c index 7154eef..7748c99 100644 --- a/kernel/drivers/ps2/mouse.c +++ b/kernel/drivers/ps2/mouse.c @@ -98,7 +98,7 @@ CLEAR static void mouse_rate(u8 device, u8 rate) ps2_write_device(device, rate); } -CLEAR void ps2_mouse_install(u8 device) +CLEAR void ps2_mouse_enable(u8 device) { // Enable auxiliary mouse device ps2_write_device(device, 0xa8); @@ -133,7 +133,13 @@ CLEAR void ps2_mouse_install(u8 device) extra_buttons = 1; } - // Setup the mouse handler + mouse_rate(device, 20); +} + +CLEAR void ps2_mouse_install(u8 device) +{ + ps2_mouse_enable(device); + irq_install_handler(12, mouse_handler); queue = stack_new(); |