diff options
| author | tmk <nobody@nowhere> | 2014-08-26 17:36:44 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2014-08-26 17:36:44 +0900 |
| commit | c4530ab0a8d7cf09ec37b082695f8f17f02c2b00 (patch) | |
| tree | dae961f9b9d39a61c600be2f33037b2ca8973877 | |
| parent | 8f5f25fcd50d93da0f6ad53d0b622a258387c6a1 (diff) | |
| download | qmk_firmware-c4530ab0a8d7cf09ec37b082695f8f17f02c2b00.tar.gz qmk_firmware-c4530ab0a8d7cf09ec37b082695f8f17f02c2b00.zip | |
Add serial_mouse_task in keyboard.c
| -rw-r--r-- | common/keyboard.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/common/keyboard.c b/common/keyboard.c index 2b66f20a0..020be8ead 100644 --- a/common/keyboard.c +++ b/common/keyboard.c | |||
| @@ -37,6 +37,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 37 | #ifdef PS2_MOUSE_ENABLE | 37 | #ifdef PS2_MOUSE_ENABLE |
| 38 | # include "ps2_mouse.h" | 38 | # include "ps2_mouse.h" |
| 39 | #endif | 39 | #endif |
| 40 | #ifdef SERIAL_MOUSE_ENABLE | ||
| 41 | #include "serial_mouse.h" | ||
| 42 | #endif | ||
| 40 | 43 | ||
| 41 | 44 | ||
| 42 | #ifdef MATRIX_HAS_GHOST | 45 | #ifdef MATRIX_HAS_GHOST |
| @@ -64,6 +67,10 @@ void keyboard_init(void) | |||
| 64 | #ifdef PS2_MOUSE_ENABLE | 67 | #ifdef PS2_MOUSE_ENABLE |
| 65 | ps2_mouse_init(); | 68 | ps2_mouse_init(); |
| 66 | #endif | 69 | #endif |
| 70 | #ifdef SERIAL_MOUSE_ENABLE | ||
| 71 | serial_mouse_init(); | ||
| 72 | #endif | ||
| 73 | |||
| 67 | 74 | ||
| 68 | #ifdef BOOTMAGIC_ENABLE | 75 | #ifdef BOOTMAGIC_ENABLE |
| 69 | bootmagic(); | 76 | bootmagic(); |
| @@ -126,6 +133,10 @@ MATRIX_LOOP_END: | |||
| 126 | ps2_mouse_task(); | 133 | ps2_mouse_task(); |
| 127 | #endif | 134 | #endif |
| 128 | 135 | ||
| 136 | #ifdef SERIAL_MOUSE_ENABLE | ||
| 137 | serial_mouse_task(); | ||
| 138 | #endif | ||
| 139 | |||
| 129 | // update LED | 140 | // update LED |
| 130 | if (led_status != host_keyboard_leds()) { | 141 | if (led_status != host_keyboard_leds()) { |
| 131 | led_status = host_keyboard_leds(); | 142 | led_status = host_keyboard_leds(); |
