aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Đorđević <vomindoraan@gmail.com>2019-03-19 22:33:44 +0100
committerDrashna Jaelre <drashna@live.com>2019-03-19 14:33:44 -0700
commit6a4884e3bdc157a00718eb157f72489c1adf30e0 (patch)
treee7a03e98a58bc5869aca57be62544e6008ec2349
parent0072fdd799ffe61bf64f12c23335da3adeb083e5 (diff)
downloadfirmware-6a4884e3bdc157a00718eb157f72489c1adf30e0.tar.gz
firmware-6a4884e3bdc157a00718eb157f72489c1adf30e0.tar.bz2
firmware-6a4884e3bdc157a00718eb157f72489c1adf30e0.zip
[Keyboard] Remove unnecessary IS_COMMAND definitions from a couple of boards (#5269)
* Remove unnecessary IS_COMMAND definition from clueboard/66_hotswap/gen1 * Remove old-style IS_COMMAND definition comment from dozen0 * Use get_mods() instead of keyboard_report->mods in georgi
-rw-r--r--keyboards/clueboard/66_hotswap/gen1/config.h5
-rw-r--r--keyboards/dozen0/config.h5
-rw-r--r--keyboards/georgi/config.h4
3 files changed, 2 insertions, 12 deletions
diff --git a/keyboards/clueboard/66_hotswap/gen1/config.h b/keyboards/clueboard/66_hotswap/gen1/config.h
index 6b0cfb60b..795adecd5 100644
--- a/keyboards/clueboard/66_hotswap/gen1/config.h
+++ b/keyboards/clueboard/66_hotswap/gen1/config.h
@@ -80,11 +80,6 @@
*/
//#define FORCE_NKRO
-/* key combination for magic key command */
-#define IS_COMMAND() ( \
- keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
-)
-
/*
* Feature disable options
* These options are also useful to firmware size reduction.
diff --git a/keyboards/dozen0/config.h b/keyboards/dozen0/config.h
index 3c409350d..6b0f8525a 100644
--- a/keyboards/dozen0/config.h
+++ b/keyboards/dozen0/config.h
@@ -112,11 +112,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-/* key combination for magic key command */
-/*#define IS_COMMAND() ( \
- keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
-)*/
-
/* control how magic key switches layers */
//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
diff --git a/keyboards/georgi/config.h b/keyboards/georgi/config.h
index 041567719..b35762fbc 100644
--- a/keyboards/georgi/config.h
+++ b/keyboards/georgi/config.h
@@ -66,8 +66,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* key combination for command */
#define IS_COMMAND() ( \
- keyboard_report->mods == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \
- keyboard_report->mods == (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)) \
+ get_mods() == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \
+ get_mods() == (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)) \
)
#define DEBOUNCE 5