1
0

Enable PS/2 mouse for TentaPad

This commit is contained in:
Kai Ryu 2014-08-28 11:33:46 +09:00
parent fcbddae2cc
commit ad93671a09
2 changed files with 3 additions and 3 deletions

View File

@ -66,6 +66,7 @@ static bool has_ghost_in_row(uint8_t row)
} }
#endif #endif
extern uint8_t ps2_mouse_enabled;
void keyboard_init(void) void keyboard_init(void)
{ {
@ -77,7 +78,7 @@ void keyboard_init(void)
#endif #endif
#ifdef PS2_MOUSE_ENABLE #ifdef PS2_MOUSE_ENABLE
if (ps2_enabled()) { if (ps2_mouse_enabled) {
ps2_mouse_init(); ps2_mouse_init();
} }
#endif #endif
@ -163,7 +164,7 @@ MATRIX_LOOP_END:
#endif #endif
#ifdef PS2_MOUSE_ENABLE #ifdef PS2_MOUSE_ENABLE
if (ps2_enabled()) { if (ps2_mouse_enabled) {
ps2_mouse_task(); ps2_mouse_task();
} }
#endif #endif

View File

@ -91,7 +91,6 @@ uint8_t ps2_host_send(uint8_t data);
uint8_t ps2_host_recv_response(void); uint8_t ps2_host_recv_response(void);
uint8_t ps2_host_recv(void); uint8_t ps2_host_recv(void);
void ps2_host_set_led(uint8_t usb_led); void ps2_host_set_led(uint8_t usb_led);
uint8_t ps2_enabled(void);
/*-------------------------------------------------------------------- /*--------------------------------------------------------------------