diff options
author | Marvin Borner | 2021-04-26 00:43:59 +0200 |
---|---|---|
committer | Marvin Borner | 2021-04-26 00:43:59 +0200 |
commit | 6b71accbaf4be52a1e2d3a696675c5e610a4c9b3 (patch) | |
tree | 4f2aa853d0bbcca23ad51c0a5d76278c536f83c9 /kernel/features | |
parent | 0fe14a1ff936c38ab9aa7f85219d0c155d276823 (diff) |
Added VMMouse support and improved PS/2 mouse
Diffstat (limited to 'kernel/features')
-rw-r--r-- | kernel/features/io.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 <str.h> #include <syscall.h> #include <timer.h> +#include <vmware.h> 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(); |