diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2010-05-01 22:14:40 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2010-05-01 22:14:40 -0400 |
commit | 0e88576feb7c577d2e6d3cda469f751db962a380 (patch) | |
tree | 4c80421b8b7528772d93c9bc8b035a44b4146a87 /src/mouse.c | |
parent | dd5a8a6b0d3c2d8320cb26ea8ac6798091070f9a (diff) | |
download | seabios-hppa-0e88576feb7c577d2e6d3cda469f751db962a380.zip seabios-hppa-0e88576feb7c577d2e6d3cda469f751db962a380.tar.gz seabios-hppa-0e88576feb7c577d2e6d3cda469f751db962a380.tar.bz2 |
Add support for USB mice.
Initial support for USB mice that follow the "boot" protocol.
Diffstat (limited to 'src/mouse.c')
-rw-r--r-- | src/mouse.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mouse.c b/src/mouse.c index cc6c4d2..09273b0 100644 --- a/src/mouse.c +++ b/src/mouse.c @@ -10,6 +10,7 @@ #include "pic.h" // eoi_pic2 #include "bregs.h" // struct bregs #include "ps2port.h" // ps2_mouse_command +#include "usb-hid.h" // usb_mouse_command void mouse_setup(void) @@ -24,6 +25,8 @@ mouse_setup(void) static inline int mouse_command(int command, u8 *param) { + if (usb_mouse_active()) + return usb_mouse_command(command, param); return ps2_mouse_command(command, param); } |