-
-
Notifications
You must be signed in to change notification settings - Fork 42.4k
core: fix compilation issues with USB programmable buttons #14454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
found an edge case right after merge, too. Sorry. If mousekeys is enabled and usb programmable keys are enabled, it looks like mousekeys do not work/are not sent.
|
|
@drashna Works for me on |
|
A little more testing, the mouse movement keys works fine, but the mouse buttons do not work. Tested on 2x atmega32u4 boards and a at90usb1286 board, so all pure LUFA boards. |
|
can confirm that mouse buttons 1-5 don't work. but the directions do work. Note that this happens when and the code change from 14455 doesn't seem to help that |
|
I'll take a look. |
|
It works for me with this diff over diff --git a/keyboards/evyd13/wasdat/keymaps/default/keymap.c b/keyboards/evyd13/wasdat/keymaps/default/keymap.c
index f1b11e201f..ce7dd98a76 100644
--- a/keyboards/evyd13/wasdat/keymaps/default/keymap.c
+++ b/keyboards/evyd13/wasdat/keymaps/default/keymap.c
@@ -33,7 +33,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘ └───┴───┴───┘ └───────┴───┴───┘
*/
LAYOUT_fullsize_ansi(
- KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS,
+ KC_ESC, PB_1, KC_MS_BTN1, PB_3, KC_MS_UP, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS,
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9, KC_PPLS,
diff --git a/keyboards/evyd13/wasdat/rules.mk b/keyboards/evyd13/wasdat/rules.mk
index 000b9ec5e0..28879ea673 100644
--- a/keyboards/evyd13/wasdat/rules.mk
+++ b/keyboards/evyd13/wasdat/rules.mk
@@ -8,7 +8,9 @@ BOOTLOADER = qmk-dfu
# change yes to no to disable
#
BOOTMAGIC_ENABLE = lite # Enable Bootmagic Lite
-MOUSEKEY_ENABLE = no # Mouse keys
+MOUSEKEY_ENABLE = yes # Mouse keys
+PROGRAMMABLE_BUTTON_ENABLE = yes
+KEYBOARD_SHARED_EP = yes
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = no # Console for debug
COMMAND_ENABLE = no # Commands for debug and configuration |
|
Using develop, I can confirm that it's not working for multiple boards. However, this seems to be limited to macOS. On windows, it seems to be fine. |
|
I don't have access to a macOS machine to work on this unfortunately. Does it work with a vusb based device? Maybe macOS gets confused because the Programmable Buttons are the same way as mouse buttons are. |
|
@drashna Can you set qmk_firmware/tmk_core/protocol/usb_descriptor.c Lines 240 to 257 in e2994ee
|
Removing the ifdef, and setting the feature off causes the issue when shared EP is enabled. Without the shared EP, mouse buttons work fine. |
Description
Types of Changes
Issues Fixed or Closed by This PR
Checklist