pqrs-org / Karabiner-Elements

Karabiner-Elements is a powerful utility for keyboard customization on macOS Sierra (10.12) or later.
https://pqrs.org/osx/karabiner/
The Unlicense
18.86k stars 838 forks source link

Buttons 3 and 4 on Kensington Slimblade #2627

Open beloglazov opened 3 years ago

beloglazov commented 3 years ago

First of all, thanks for the awesome tool!

Unfortunately, I'm having problems with mapping buttons 3 and 4 on a Kensington Slimblade trackball. It seems like these buttons are not recognized by Karabiner. EventViewer shows that buttons 1 and 2 and captured correctly; however, buttons 3 and 4 are not logged at all. The buttons do work if I uncheck the trackball in the Devices tab.

Is there some solution to this? Thanks!

ghost commented 3 years ago

I am not sure if Karabiner is really the right tool for this task.

Have you taken a look at SteerMouse (it is by the creator of CursorSense)?

For your mouse, the indexes are as follows:

---------
| 2 | 8 |
---------
| 1 | 3 |
---------
beloglazov commented 3 years ago

Thanks for the suggestion Clemens! IIUC, SteerMouse is not open source, which is why I have a strong preference for Karabiner.

Karabiner does support remapping mouse buttons, could you please clarify why you think it's not the right tool for this?

ghost commented 3 years ago

When EventViewer is not able to capture the buttons correctly, then it becomes difficult to achieve it. So you would need at least to wait until tekezo implements it.

tannerellen commented 3 years ago

I'm trying to map buttons on my Slimblade as well and running into this same issue. Steermouse is able to map to the 2 top buttons just fine but for some reason those buttons in Karabiner just aren't recognized when they are clicked.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

cdigames commented 1 year ago

So Karabiner definitely knows buttons are being pushed. Under 14.11.0 in the events viewer, under "Unknown Events" my Slimblade shows buttons 3 and 4 as

usage page: 65280 (0xff00) in general, and the top left button as `usage: 1 (0x0001)' with the top right being 2s for those.

However if you enable "Modify events" for the Slimblade under "Devices" in the settings, those button presses are sent to the void, not showing up under known or unknown events for the viewer. Strange!

For the record my mouse is showing up under usage page: 9 (0x0009) in the events viewer, and a Vendor ID of 1149 and product ID of 8257 in the settings.

I did find another page where someone was asking about addressing unknown events specifically about their remote control, but the response was to update to a beta build, and nothing about how to perhaps intercept these unknown events and do things with them.

For what it is worth those two button presses are the only unknown events that Karabiner has logged on my system entirely. I really hope there is some way to fix this instead of having to go back to KensingtonWorks or installing Steermouse which seems a bit too much for what I want, and I already use Karabiner to modify my keyboards anyway.

onelaview commented 1 year ago

Mine is exactly the same as @cdigames mentioned.

Here is the screenshot in the EventViewer when disable "Modify events" for the Slimblade.

image

image

Below is the details in the EventViewer's Devices tab.

    {
        "device_id": 4298316082,
        "is_karabiner_virtual_hid_device": false,
        "is_keyboard": false,
        "is_pointing_device": true,
        "location_id": 51462672,
        "manufacturer": "Kensington",
        "product": "Kensington Slimblade Trackball",
        "product_id": 8257,
        "transport": "USB",
        "vendor_id": 1149
    }