summaryrefslogtreecommitdiffstats
path: root/tmk_core/common/keyboard.c
diff options
context:
space:
mode:
authorSnipeye <Snipeye@gmail.com>2017-10-06 11:13:08 -0600
committerJack Humbert <jack.humb@gmail.com>2017-10-06 07:13:08 -1000
commitee132284861f1084046086b7ae11d56623df7834 (patch)
tree02fc3947bc636b5c99d57928632fa8c0ac2c2a19 /tmk_core/common/keyboard.c
parentea819268f3d08868ca72bd7911de7979c866d8a5 (diff)
Generic Pointing Device (#1767)
Diffstat (limited to 'tmk_core/common/keyboard.c')
-rw-r--r--tmk_core/common/keyboard.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tmk_core/common/keyboard.c b/tmk_core/common/keyboard.c
index 1b7c8c1a2f..fd2cf74f57 100644
--- a/tmk_core/common/keyboard.c
+++ b/tmk_core/common/keyboard.c
@@ -63,6 +63,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifdef VISUALIZER_ENABLE
# include "visualizer/visualizer.h"
#endif
+#ifdef POINTING_DEVICE_ENABLE
+# include "pointing_device.h"
+#endif
#ifdef MATRIX_HAS_GHOST
extern const uint16_t keymaps[][MATRIX_ROWS][MATRIX_COLS];
@@ -153,6 +156,9 @@ void keyboard_init(void) {
#ifdef FAUXCLICKY_ENABLE
fauxclicky_init();
#endif
+#ifdef POINTING_DEVICE_ENABLE
+ pointing_device_init();
+#endif
#if defined(NKRO_ENABLE) && defined(FORCE_NKRO)
keymap_config.nkro = 1;
#endif
@@ -239,6 +245,10 @@ MATRIX_LOOP_END:
visualizer_update(default_layer_state, layer_state, visualizer_get_mods(), host_keyboard_leds());
#endif
+#ifdef POINTING_DEVICE_ENABLE
+ pointing_device_task();
+#endif
+
// update LED
if (led_status != host_keyboard_leds()) {
led_status = host_keyboard_leds();