aboutsummaryrefslogtreecommitdiff
path: root/common/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/keyboard.c')
-rw-r--r--common/keyboard.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/common/keyboard.c b/common/keyboard.c
index 601e3abe1..2b66f20a0 100644
--- a/common/keyboard.c
+++ b/common/keyboard.c
@@ -30,8 +30,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
30#include "sendchar.h" 30#include "sendchar.h"
31#include "bootmagic.h" 31#include "bootmagic.h"
32#include "eeconfig.h" 32#include "eeconfig.h"
33#include "mousekey.h"
34#include "backlight.h" 33#include "backlight.h"
34#ifdef MOUSEKEY_ENABLE
35# include "mousekey.h"
36#endif
37#ifdef PS2_MOUSE_ENABLE
38# include "ps2_mouse.h"
39#endif
35 40
36 41
37#ifdef MATRIX_HAS_GHOST 42#ifdef MATRIX_HAS_GHOST
@@ -111,10 +116,16 @@ void keyboard_task(void)
111 action_exec(TICK); 116 action_exec(TICK);
112 117
113MATRIX_LOOP_END: 118MATRIX_LOOP_END:
119
114#ifdef MOUSEKEY_ENABLE 120#ifdef MOUSEKEY_ENABLE
115 // mousekey repeat & acceleration 121 // mousekey repeat & acceleration
116 mousekey_task(); 122 mousekey_task();
117#endif 123#endif
124
125#ifdef PS2_MOUSE_ENABLE
126 ps2_mouse_task();
127#endif
128
118 // update LED 129 // update LED
119 if (led_status != host_keyboard_leds()) { 130 if (led_status != host_keyboard_leds()) {
120 led_status = host_keyboard_leds(); 131 led_status = host_keyboard_leds();