Skip to content

gamepad() overrides commands from different controllers #717

Description

@peagha

Hello! 👋

When I bind the same button in different controllers it seems the last bind wins; I expected to be able to have one binding per controller+button+modifier, but they appear to be only scoped to button+modifier:

Example 1: two Xbox Wireless Controllers (different device IDs), same button+modifier:

mode: command
-
# Xbox Wireless Controller (device 1) — 0300.5e04.130b.1705
gamepad(0300.5e04.130b.1705:south:down): user.gamepad_pressed("right")
gamepad(0300.5e04.130b.1705:south:up):   user.gamepad_released("right")

# Xbox Wireless Controller (device 2) — 0300.5e04.210b.2305
gamepad(0300.5e04.210b.2305:south:down): user.gamepad_pressed("right")
gamepad(0300.5e04.210b.2305:south:up):   user.gamepad_released("right")

Expected: both controllers trigger their respective bindings independently.
Actual: adding the second binding breaks the first, only the last-defined south:down fires, regardless of which physical controller sent the event.

Note: this does not reproduce when the modifiers differ -> e.g. south:down and south (no modifier) coexist fine.

Talon: 0.4.0-1050-3c4a (1050), macos sequoia and macos tahoe
I have observed this conflict for a long time. So, not something related to a new update. I have never managed to make this work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions