|
|
|
|
|
|
|
|
#ifdef PS2_MOUSE_ENABLE |
|
|
#ifdef PS2_MOUSE_ENABLE |
|
|
# include "ps2_mouse.h" |
|
|
# include "ps2_mouse.h" |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
#ifdef SERIAL_MOUSE_ENABLE |
|
|
|
|
|
#include "serial_mouse.h" |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef MATRIX_HAS_GHOST |
|
|
#ifdef MATRIX_HAS_GHOST |
|
|
|
|
|
|
|
|
#ifdef PS2_MOUSE_ENABLE |
|
|
#ifdef PS2_MOUSE_ENABLE |
|
|
ps2_mouse_init(); |
|
|
ps2_mouse_init(); |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
#ifdef SERIAL_MOUSE_ENABLE |
|
|
|
|
|
serial_mouse_init(); |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef BOOTMAGIC_ENABLE |
|
|
#ifdef BOOTMAGIC_ENABLE |
|
|
bootmagic(); |
|
|
bootmagic(); |
|
|
|
|
|
|
|
|
ps2_mouse_task(); |
|
|
ps2_mouse_task(); |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#ifdef SERIAL_MOUSE_ENABLE |
|
|
|
|
|
serial_mouse_task(); |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
// update LED |
|
|
// update LED |
|
|
if (led_status != host_keyboard_leds()) { |
|
|
if (led_status != host_keyboard_leds()) { |
|
|
led_status = host_keyboard_leds(); |
|
|
led_status = host_keyboard_leds(); |