From 8457bc875f4987e3b9aea00dec244e9599b3c367 Mon Sep 17 00:00:00 2001 From: dakkar Date: Fri, 1 Feb 2019 15:18:41 +0000 Subject: disable the mouse interfaces --- Makefile | 2 ++ Model01-Firmware.ino | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 417a025..7464e7f 100644 --- a/Makefile +++ b/Makefile @@ -52,4 +52,6 @@ endif BOARD_HARDWARE_PATH ?= $(SKETCHBOOK_DIR)/hardware KALEIDOSCOPE_PLUGIN_MAKEFILE_DIR ?= keyboardio/avr/build-tools/makefiles/ +export LOCAL_CFLAGS= -DKALEIDOSCOPE_HIDADAPTOR_DISABLE_ABSOLUTE_MOUSE=1 -DKALEIDOSCOPE_HIDADAPTOR_DISABLE_MOUSE=1 + include $(BOARD_HARDWARE_PATH)/$(KALEIDOSCOPE_PLUGIN_MAKEFILE_DIR)/rules.mk diff --git a/Model01-Firmware.ino b/Model01-Firmware.ino index 638d4a9..1415dc8 100644 --- a/Model01-Firmware.ino +++ b/Model01-Firmware.ino @@ -24,7 +24,7 @@ #include "Kaleidoscope-FocusSerial.h" // Support for keys that move the mouse -#include "Kaleidoscope-MouseKeys.h" +//#include "Kaleidoscope-MouseKeys.h" // Support for macros #include "Kaleidoscope-Macros.h" @@ -258,9 +258,9 @@ KEYMAPS( [FUNCTION] = KEYMAP_STACKED (___, Key_F1, Key_F2, Key_F3, Key_F4, Key_F5, Key_CapsLock, - Key_Tab, ___, Key_mouseUp, ___, Key_mouseBtnR, Key_mouseWarpEnd, Key_mouseWarpNE, - Key_Home, Key_mouseL, Key_mouseDn, Key_mouseR, Key_mouseBtnL, Key_mouseWarpNW, - Key_End, Key_PrintScreen, Key_Insert, ___, Key_mouseBtnM, Key_mouseWarpSW, Key_mouseWarpSE, + Key_Tab, ___, ___, ___, ___, ___, ___, + Key_Home, ___, ___, ___, ___, ___, + Key_End, Key_PrintScreen, Key_Insert, ___, ___, ___, ___, ___, Key_Delete, ___, ___, ___, @@ -474,7 +474,7 @@ KALEIDOSCOPE_INIT_PLUGINS( Macros, // The MouseKeys plugin lets you add keys to your keymap which move the mouse. - MouseKeys, + //MouseKeys, // The HostPowerManagement plugin allows us to turn LEDs off when then host // goes to sleep, and resume them when it wakes up. -- cgit v1.2.3