1
0
Fork 0

Generic Pointing Device (#1767)

This commit is contained in:
Snipeye 2017-10-06 11:13:08 -06:00 committed by Jack Humbert
parent ea819268f3
commit ee13228486
6 changed files with 155 additions and 1 deletions

View file

@ -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();