Skip to content

Commit 8d7eca9

Browse files
authored
Migrate mousekey to quantum (qmk#11804)
1 parent 575e716 commit 8d7eca9

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

common_features.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ ifeq ($(strip $(FAUXCLICKY_ENABLE)), yes)
7979
SRC += $(QUANTUM_DIR)/fauxclicky.c
8080
endif
8181

82+
ifeq ($(strip $(MOUSEKEY_ENABLE)), yes)
83+
OPT_DEFS += -DMOUSEKEY_ENABLE
84+
OPT_DEFS += -DMOUSE_ENABLE
85+
SRC += $(QUANTUM_DIR)/mousekey.c
86+
endif
87+
8288
ifeq ($(strip $(POINTING_DEVICE_ENABLE)), yes)
8389
OPT_DEFS += -DPOINTING_DEVICE_ENABLE
8490
OPT_DEFS += -DMOUSE_ENABLE
File renamed without changes.

tmk_core/common/mousekey.h renamed to quantum/mousekey.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
1717

1818
#pragma once
1919

20-
#include <stdbool.h>
20+
#include <stdint.h>
2121
#include "host.h"
2222

2323
#ifndef MK_3_SPEED

tmk_core/common.mk

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,6 @@ ifeq ($(strip $(KEYBOARD_SHARED_EP)), yes)
6868
endif
6969

7070
ifeq ($(strip $(MOUSEKEY_ENABLE)), yes)
71-
TMK_COMMON_SRC += $(COMMON_DIR)/mousekey.c
72-
TMK_COMMON_DEFS += -DMOUSEKEY_ENABLE
73-
TMK_COMMON_DEFS += -DMOUSE_ENABLE
74-
7571
ifeq ($(strip $(MOUSE_SHARED_EP)), yes)
7672
TMK_COMMON_DEFS += -DMOUSE_SHARED_EP
7773
SHARED_EP_ENABLE = yes

0 commit comments

Comments
 (0)