-
-
Notifications
You must be signed in to change notification settings - Fork 39.5k
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
[Bug] Mouse key MS_BTN1 ~ MS_BTN8 are not working when PS/2 trackpoint enabled with RP2040 MCU #24599
Comments
Hi, from PS/2 mouse, there is bitfield which just contains left, middle and right button state. It is passed then to QMK PS/2 interface. I am just using the keyboard with PS/2 trackpoint and mouse buttons works just fine. I have no idea what |
do you know how can I debug this? I dont know how to resolve it now... 😂 @gamelaster |
@tachikomachann I am sorry, no clues :( |
@gamelaster I do more test and try to dig more details:
According above details, maybe I can confirm that the mouse key buttons behavior is overridden by ps/2 module? Can I override the behavior of MS_BTN1 ~ MS_BTN3 in |
Describe the Bug
Hi, I'm trying to create a keyboard with trackpoint module for myself.
I've got the PS/2 trackpoint module and use Raspberry PI PICO (RP2040 MCU) to test my QMK firmware.
I've enabled the PS/2 mouse and vendor driver in keyboard.json and the trackpoint works fine. Then I tried to update my keymap to support sending mouse button click(left/middle/right button click) from my keyboard, but I find it is not working. The tricky thing is only MS_BTN1 ~ MS_BTN8 are not working, others works fine(e.g. the wheel scroll keycode MS_WHLU and MS_WHLD).
I tried to disable the PS/2 module and driver then the result is MS_BTN1 ~ MS_BTN3 are working again. I can send mouse click from my keyboard.
is this a conflict between RP2040 ps2 vendor driver and mouse key feature? How can I resolve this and let my trackpoint and mouse keycode work together? Or maybe @gamelaster can give some suggestions from ps2_vendor.c side?
I used the latest master branch qmk_firmware repository.
Below are my related files (my keyboard name is nomouse):
rule.mk:
# Bootloader selection BOOTLOADER = rp2040 MOUSEKEY_ENABLE = yes BOARD = GENERIC_RP_RP2040 CONSOLE_ENABLE = yes
nomouse.h:
keyboard.json:
config.h:
keymap.c:
My config refers to these docs:
https://docs.qmk.fm/features/mouse_keys
https://docs.qmk.fm/features/ps2_mouse#rp2040-pio-version
Keyboard Used
No response
Link to product page (if applicable)
No response
Operating System
No response
qmk doctor Output
No response
Is AutoHotKey / Karabiner installed
Other keyboard-related software installed
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: