瀏覽代碼

Add serial_mouse_task in keyboard.c

tags/v1.9
tmk 9 年之前
父節點
當前提交
c4530ab0a8
共有 1 個檔案被更改,包括 11 行新增0 行删除
  1. 11
    0
      common/keyboard.c

+ 11
- 0
common/keyboard.c 查看文件

@@ -37,6 +37,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifdef PS2_MOUSE_ENABLE
# include "ps2_mouse.h"
#endif
#ifdef SERIAL_MOUSE_ENABLE
#include "serial_mouse.h"
#endif


#ifdef MATRIX_HAS_GHOST
@@ -64,6 +67,10 @@ void keyboard_init(void)
#ifdef PS2_MOUSE_ENABLE
ps2_mouse_init();
#endif
#ifdef SERIAL_MOUSE_ENABLE
serial_mouse_init();
#endif


#ifdef BOOTMAGIC_ENABLE
bootmagic();
@@ -126,6 +133,10 @@ MATRIX_LOOP_END:
ps2_mouse_task();
#endif

#ifdef SERIAL_MOUSE_ENABLE
serial_mouse_task();
#endif

// update LED
if (led_status != host_keyboard_leds()) {
led_status = host_keyboard_leds();

Loading…
取消
儲存