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.69k stars 836 forks source link

Gamepad event seems to prevent some manipulation. #3669

Open ryutei opened 10 months ago

ryutei commented 10 months ago

When connecting a Nintendo pro controller wired via USB-C, a large number of unexpected events are occurring and preventing some (but not all) key modification.

This is screenshot of that states. I have not touched the controller button, but it appears to be detecting something on or off. These events keep repeating themselves forever.

I have turned off "modify events" in "devices" but it doesn't seem to have any effect.

This problem does not occur when connected via Bluetooth. It appears to be wired only.

event log

This is my rule that will not work with controller.

{
    "description": "shift eisuu/kana",
    "manipulators": [
        {
            "from": {
                "key_code": "left_shift"
            },
            "to": {
                "key_code": "left_shift",
                "lazy": true
            },
            "to_if_alone": {
                "key_code": "japanese_eisuu"
            },
            "type": "basic"
        },
        {
            "from": {
                "key_code": "right_shift"
            },
            "to": {
                "key_code": "right_shift",
                "lazy": true
            },
            "to_if_alone": {
                "key_code": "japanese_kana"
            },
            "type": "basic"
        }
    ]
}

OS: 14.2 Karabiner-Elements 14.13.0

tekezo commented 5 months ago

@ryutei Thank you for the report! I addressed this issue in version 14.13.16. Could you check if the problem has been resolved in the latest beta version?

How to upgrade to the latest beta version: Check for beta updates

kitanic commented 5 months ago

I checked the behavior with version 14.13.17. (OS 14.4.1)

The behavior seems to be correct and the problem of large numbers of pad events flowing no longer occurs.

(Note that updating and rebooting Karabiner-Elements is not enough, it seems that a reboot of the machine is probably required.)

Thanks!