You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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 mouse_key property does at all, so I can't help with this. Although, I don't think the issue is in RP2040 PS/2 PIO driver.
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 mouse_key property does at all, so I can't help with this. Although, I don't think the issue is in RP2040 PS/2 PIO driver.
do you know how can I debug this? I dont know how to resolve it now... 😂 @gamelaster
@gamelaster I do more test and try to dig more details:
Add debug log in process_record_user and find the MS_BTN1 ~ MS_BTN3 keycode can be processed in this, so I think the pin connection and key press event should be correct?
I keep the the ps/2 mouse config and just remove ps/2 trackpoint module from my breadboard. Mouse key can send left/middle/right click after removing the module.
I find the MS_BTN3 become the scroll button(i.e. hold the MS_BTN3, trackpoint movement will become mouse wheel scroll ) even though I don't enable any scroll button setting.
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 process_record_user as a workaround? I'm not familiar with ps/2 driver code and don't know how to troubleshoot in ps/2 code
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: