Browse Source

Enable PS/2 mouse for TentaPad

core
Kai Ryu 9 years ago
parent
commit
ad93671a09
2 changed files with 3 additions and 3 deletions
  1. 3
    2
      common/keyboard.c
  2. 0
    1
      protocol/ps2.h

+ 3
- 2
common/keyboard.c View File

@@ -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

+ 0
- 1
protocol/ps2.h 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(void);
void ps2_host_set_led(uint8_t usb_led);
uint8_t ps2_enabled(void);


/*--------------------------------------------------------------------