From ad93671a09c6bb486fa2ddb6392a6504401f02e6 Mon Sep 17 00:00:00 2001 From: Kai Ryu Date: Thu, 28 Aug 2014 11:33:46 +0900 Subject: [PATCH] Enable PS/2 mouse for TentaPad --- common/keyboard.c | 5 +++-- protocol/ps2.h | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/keyboard.c b/common/keyboard.c index f989dc1f..312f6e53 100644 --- a/common/keyboard.c +++ b/common/keyboard.c @@ -66,6 +66,7 @@ static bool has_ghost_in_row(uint8_t row) } #endif +extern uint8_t ps2_mouse_enabled; void keyboard_init(void) { @@ -77,7 +78,7 @@ void keyboard_init(void) #endif #ifdef PS2_MOUSE_ENABLE - if (ps2_enabled()) { + if (ps2_mouse_enabled) { ps2_mouse_init(); } #endif @@ -163,7 +164,7 @@ MATRIX_LOOP_END: #endif #ifdef PS2_MOUSE_ENABLE - if (ps2_enabled()) { + if (ps2_mouse_enabled) { ps2_mouse_task(); } #endif diff --git a/protocol/ps2.h b/protocol/ps2.h index 2e75d13f..acde679c 100644 --- a/protocol/ps2.h +++ b/protocol/ps2.h @@ -91,7 +91,6 @@ uint8_t ps2_host_send(uint8_t data); uint8_t ps2_host_recv_response(void); uint8_t ps2_host_recv(void); void ps2_host_set_led(uint8_t usb_led); -uint8_t ps2_enabled(void); /*--------------------------------------------------------------------