mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-25 12:46:41 +00:00
Fix pointing device feature
This commit is contained in:
parent
c9a0436422
commit
2d77f9cbb9
@ -71,6 +71,7 @@ endif
|
|||||||
|
|
||||||
ifeq ($(strip $(POINTING_DEVICE_ENABLE)), yes)
|
ifeq ($(strip $(POINTING_DEVICE_ENABLE)), yes)
|
||||||
OPT_DEFS += -DPOINTING_DEVICE_ENABLE
|
OPT_DEFS += -DPOINTING_DEVICE_ENABLE
|
||||||
|
OPT_DEFS += -DMOUSE_ENABLE
|
||||||
SRC += $(QUANTUM_DIR)/pointing_device.c
|
SRC += $(QUANTUM_DIR)/pointing_device.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -349,7 +349,7 @@ static void send_keyboard(report_keyboard_t *report)
|
|||||||
|
|
||||||
static void send_mouse(report_mouse_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;
|
if (!iwrap_connected() && !iwrap_check_connection()) return;
|
||||||
MUX_HEADER(0x01, 0x09);
|
MUX_HEADER(0x01, 0x09);
|
||||||
// HID raw mode header
|
// HID raw mode header
|
||||||
|
@ -23,6 +23,11 @@ ifdef EXTRAKEY_ENABLE
|
|||||||
SRC += $(PJRC_DIR)/usb_extra.c
|
SRC += $(PJRC_DIR)/usb_extra.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
ifdef POINTING_DEVICE_ENABLE
|
||||||
|
SRC += $(PJRC_DIR)/usb_mouse.c
|
||||||
|
endif
|
||||||
|
|
||||||
# Search Path
|
# Search Path
|
||||||
VPATH += $(TMK_DIR)/$(PJRC_DIR)
|
VPATH += $(TMK_DIR)/$(PJRC_DIR)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user