-
-
Notifications
You must be signed in to change notification settings - Fork 39.8k
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
core: fix compilation issues with USB programmable buttons #14454
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. |
* qmk/develop: (69 commits) Use opendrain pin with external pullup again (qmk#14474) Add i2c defaults for Convert to Proton C (qmk#14470) [Keyboard] Increase the way to add oled code for helix/rev3. (qmk#14426) [Bug] fix logical minimum in Programmable Button rdesc (qmk#14464) Adds optional hebrew layout (Unicode) (qmk#14156) New CLI subcommand to create clang-compatible compilation database (`compile_commands.json`) (qmk#14370) [Keyboard] Add the Idobao ID96 keyboard (qmk#14371) [Keyboard] Add FJLabs TF60 Variants and TF65 Variant (qmk#14392) [Keyboard] Add Absolute Designs AD65 Keyboard (qmk#14391) [Bug] Fix descriptor for USB Programmable Buttons (qmk#14455) Make ChibiOS PAL interactions less STM32 specific - Round 2 (qmk#14456) core: fix compilation issues with USB programmable buttons (qmk#14454) [Keyboard] add Matrix Me (qmk#14331) [Keyboard] Replaced Maker Keyboards & FJLabs Legacy Code (qmk#14393) [Keyboard] Add `NO_LED` positions to match key matrix. (qmk#14417) [Keymap] A slight improvement to my own ErgoDox keymap (qmk#14425) [Keymap] Trying again with Prime-e update! (qmk#14429) [Keyboard] Update lighting effects for xbows keyboard (qmk#14432) [Docs] add sync options heading, update led indicators (qmk#14441) [Bug] Fix IS31fl3741 driver to accept 1 or 2 addresses (qmk#14451) ...
Description
Types of Changes
Issues Fixed or Closed by This PR
Checklist