Skip to content

Impossible to set certain evdev event codes as capabilities for device output. #451

@pastaq

Description

@pastaq

So this issue I brought up in #296 has come up again. There is a specific use case for @hphilm new overlay that expects/responds to HAPPY_TRIGGER_5 for open/close of the window. By default this button on the Zotac Zone uses F18, which is currently mapped to QuickAccess2, which then gets translated by the default profile to Screenshot. I told him the best way forward would be to have his overlay load a new profile with HappyTrigger5 as the output event. Unfortunately, because of the previously linked change and the insistence that valid evdev outputs aren't a capability, there is currently no way to actually do that without refactoring it and possibly breaking other devices.

I'll open a PR to address this but the idea that named buttons aren't capabilities is frankly bullshit. There is no other straightforward way to emit these events otherwise.

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