From 6b71accbaf4be52a1e2d3a696675c5e610a4c9b3 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 26 Apr 2021 00:43:59 +0200 Subject: Added VMMouse support and improved PS/2 mouse --- kernel/features/io.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'kernel/features') diff --git a/kernel/features/io.c b/kernel/features/io.c index d4737bf..da179ab 100644 --- a/kernel/features/io.c +++ b/kernel/features/io.c @@ -17,6 +17,7 @@ #include #include #include +#include struct io_listener { u32 group; @@ -215,7 +216,10 @@ CLEAR void io_install(struct boot_info *boot) u8 ps2_mouse = ps2_mouse_detect(); if (ps2_mouse != U8_MAX) { - ps2_mouse_install(ps2_mouse); + if (vmware_detect() && vmware_mouse_detect()) + vmware_mouse_install(ps2_mouse); + else + ps2_mouse_install(ps2_mouse); } timer_install(); -- cgit v1.2.3