Browse Source

[Keymap] Set a short TAP_CODE_DELAY so media keys work (#6097)

A delay of 10ms seems sufficient. Otherwise, media keys tapped from the
encoder of my BDN9 macropad only seem to get picked up by the OS
(Windows 10) some of the time.
Jonathan Rascher 6 năm trước cách đây
mục cha
commit
c70016eee5
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      users/bcat/config.h

+ 5 - 0
users/bcat/config.h

@@ -1,3 +1,8 @@
+/* Delay between tap_code register and unregister to fix flaky media keys. */
+#undef TAP_CODE_DELAY
+
+#define TAP_CODE_DELAY 10
+
 /* Turn off RGB lighting when the host goes to sleep. */
 #define RGBLIGHT_SLEEP