Browse Source

Fix pointing device feature

pull/1944/head 0.5.149
Rob Rogers 6 years ago
committed by Jack Humbert
parent
commit
2d77f9cbb9
3 changed files with 9 additions and 3 deletions
  1. +3
    -2
      common_features.mk
  2. +1
    -1
      tmk_core/protocol/iwrap/iwrap.c
  3. +5
    -0
      tmk_core/protocol/pjrc.mk

+ 3
- 2
common_features.mk View File

@ -70,8 +70,9 @@ ifeq ($(strip $(FAUXCLICKY_ENABLE)), yes)
endif
ifeq ($(strip $(POINTING_DEVICE_ENABLE)), yes)
OPT_DEFS += -DPOINTING_DEVICE_ENABLE
SRC += $(QUANTUM_DIR)/pointing_device.c
OPT_DEFS += -DPOINTING_DEVICE_ENABLE
OPT_DEFS += -DMOUSE_ENABLE
SRC += $(QUANTUM_DIR)/pointing_device.c
endif
ifeq ($(strip $(UCIS_ENABLE)), yes)


+ 1
- 1
tmk_core/protocol/iwrap/iwrap.c View File

@ -349,7 +349,7 @@ static void send_keyboard(report_keyboard_t *report)
static void send_mouse(report_mouse_t *report)
{
#if defined(MOUSEKEY_ENABLE) || defined(PS2_MOUSE_ENABLE)
#if defined(MOUSEKEY_ENABLE) || defined(PS2_MOUSE_ENABLE) || defined(POINTING_DEVICE_ENABLE)
if (!iwrap_connected() && !iwrap_check_connection()) return;
MUX_HEADER(0x01, 0x09);
// HID raw mode header


+ 5
- 0
tmk_core/protocol/pjrc.mk View File

@ -23,6 +23,11 @@ ifdef EXTRAKEY_ENABLE
SRC += $(PJRC_DIR)/usb_extra.c
endif
ifdef POINTING_DEVICE_ENABLE
SRC += $(PJRC_DIR)/usb_mouse.c
endif
# Search Path
VPATH += $(TMK_DIR)/$(PJRC_DIR)


Loading…
Cancel
Save