summaryrefslogtreecommitdiffstats
path: root/users/bcat/rules.mk
diff options
context:
space:
mode:
authorJonathan Rascher <jon@bcat.name>2020-07-23 10:27:01 -0400
committerGitHub <noreply@github.com>2020-07-23 15:27:01 +0100
commitd699fd1fb4127c9a0c13eaa1348b934ccd639627 (patch)
tree7835a20304da5fde40d32c86de0d7e220e329233 /users/bcat/rules.mk
parente38331d94cff278e193f12a9dfab3da956e1daf8 (diff)
Switch bcat Chrome OS media keys workaround from mouse keys to NKRO (#9790)
* Switch Chrome OS mouse keys workaround to NKRO * Add NKRO toggle to keymaps * USE NK_TOGG keycode instead of defining my own
Diffstat (limited to 'users/bcat/rules.mk')
-rw-r--r--users/bcat/rules.mk15
1 files changed, 10 insertions, 5 deletions
diff --git a/users/bcat/rules.mk b/users/bcat/rules.mk
index f979c703f8..a595d1f588 100644
--- a/users/bcat/rules.mk
+++ b/users/bcat/rules.mk
@@ -3,10 +3,15 @@ SRC += bcat.c
# Enable Bootmagic Lite to consistently reset to bootloader and clear EEPROM.
BOOTMAGIC_ENABLE = lite
-# Enable media keys on all keyboards. (Even though I don't use mouse keys, they
-# seem to be required for media keys to register on Chrome OS.)
+# Enable media keys on all keyboards.
EXTRAKEY_ENABLE = yes
-MOUSEKEY_ENABLE = yes
+
+# Enable N-key rollover on all keyboards. In addition to its intended
+# functionality, as of July 2020, this is required for Chrome OS to process
+# media keys. (It appears that Chrome OS filters out key events from the second
+# USB endpoint's consumer and system control devices unless that endpoint also
+# reports a keyboard or mouse device.)
+NKRO_ENABLE = yes
# Enable link-time optimization to reduce binary size.
LINK_TIME_OPTIMIZATION_ENABLE = yes
@@ -14,7 +19,7 @@ LINK_TIME_OPTIMIZATION_ENABLE = yes
# Disable unused build options on all keyboards.
COMMAND_ENABLE = no
CONSOLE_ENABLE = no
-NKRO_ENABLE = no
+MOUSEKEY_ENABLE = no
TERMINAL_ENABLE = no
# Disable unused hardware options on all keyboards.
@@ -22,7 +27,7 @@ FAUXCLICKY_ENABLE = no
MIDI_ENABLE = no
SLEEP_LED_ENABLE = no
-# Disable unused other options.
+# Disable other unused options on all keyboards.
API_SYSEX_ENABLE = no
AUTO_SHIFT_ENABLE = no
COMBO_ENABLE = no