From 8748316162ea2517095b0dfb5cc3102e0855649b Mon Sep 17 00:00:00 2001 From: filterpaper Date: Thu, 28 Oct 2021 19:28:59 +0800 Subject: [PATCH 1/2] Improve settings for Cradio default keymaps --- keyboards/cradio/keymaps/default/config.h | 40 +++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 keyboards/cradio/keymaps/default/config.h diff --git a/keyboards/cradio/keymaps/default/config.h b/keyboards/cradio/keymaps/default/config.h new file mode 100644 index 000000000000..bc8d3a3d074c --- /dev/null +++ b/keyboards/cradio/keymaps/default/config.h @@ -0,0 +1,40 @@ +/* Copyright 2018-2021 + * ENDO Katsuhiro + * David Philip Barr <@davidphilipbarr> + * Pierre Chevalier + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#pragma once + +// Defaults for usable home row mods +#define TAPPING_TERM 230 +#define PERMISSIVE_HOLD +#define IGNORE_MOD_TAP_INTERRUPT + +// Improved mouse key defaults +// Delay between pressing a key and cursor movement +#define MOUSEKEY_DELAY 16 +// Time between cursor movements in milliseconds +#define MOUSEKEY_INTERVAL 16 +// Step size for acceleration +#define MOUSEKEY_MOVE_DELTA 9 +#define MOUSEKEY_MAX_SPEED 12 +#define MOUSEKEY_TIME_TO_MAX 70 +#define MOUSEKEY_WHEEL_DELAY 16 +#define MOUSEKEY_WHEEL_INTERVAL 30 +#define MOUSEKEY_WHEEL_MAX_SPEED 10 +#define MOUSEKEY_WHEEL_TIME_TO_MAX 95 + From f7ef8c32cd3d09f3e02e284ef6ff209a8a50780c Mon Sep 17 00:00:00 2001 From: filterpaper Date: Thu, 28 Oct 2021 19:37:05 +0800 Subject: [PATCH 2/2] Remove permissive hold to avoid false triggers --- keyboards/cradio/keymaps/default/config.h | 1 - 1 file changed, 1 deletion(-) diff --git a/keyboards/cradio/keymaps/default/config.h b/keyboards/cradio/keymaps/default/config.h index bc8d3a3d074c..dd469ca5533e 100644 --- a/keyboards/cradio/keymaps/default/config.h +++ b/keyboards/cradio/keymaps/default/config.h @@ -21,7 +21,6 @@ // Defaults for usable home row mods #define TAPPING_TERM 230 -#define PERMISSIVE_HOLD #define IGNORE_MOD_TAP_INTERRUPT // Improved mouse key defaults