Skip to content
This repository has been archived by the owner on Sep 12, 2019. It is now read-only.

Commit

Permalink
Fix pointing device feature
Browse files Browse the repository at this point in the history
  • Loading branch information
r2d2rogers authored and jackhumbert committed Nov 1, 2017
1 parent c9a0436 commit 2d77f9c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 3 additions & 2 deletions common_features.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion tmk_core/protocol/iwrap/iwrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions tmk_core/protocol/pjrc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 2d77f9c

Please sign in to comment.