Skip to content

feat(Input) Add keys/mappings used by CEC - #689

Open
addmix wants to merge 1 commit into
ShadowBlip:mainfrom
addmix:cec
Open

feat(Input) Add keys/mappings used by CEC#689
addmix wants to merge 1 commit into
ShadowBlip:mainfrom
addmix:cec

Conversation

@addmix

@addmix addmix commented Sep 2, 2026

Copy link
Copy Markdown

Implements a handful of keycode which are used by CEC input devices.

The new keycodes implemented are:
KEY_OK, KEY_EXIT, KEY_INFO, KEY_ROOT_MENU, KEY_RED, KEY_GREEN, KEY_YELLOW, KEY_BLUE
With the corresponding names in InputPlumber:
KeyOk, KeyExit, KeyInfo, KeyRootMenu, KeyRed, KeyGreen, KeyYellow, KeyBlue

The mapping for these keys are:

KeyOk: Gamepad South
KeyExit: Gamepad East
KeyInfo: Gamepad QuickAccess
KeyRootMenu: Gamepad Guide
KeyUp: Gamepad DPadUp
KeyDown: Gamepad DPadDown
KeyLeft: Gamepad DPadLeft
KeyRight: Gamepad DPadRight
KeyRed: Gamepad Select
KeyGreen: Gamepad Start
KeyYellow: Gamepad North
KeyBlue: Gamepad West

One aspect that I assume will need to be expanded is the source device matching.

Currently, devices are matched by name with the wildcard: DP-* (Corresponding to the graphic device's port numbering). This works for my case where I am using a UGREEN DisplayPort/HDMI adapter, but I assume it will not match for native HDMI-CEC, or Pulse8 adapters. If others with this hardware could test and contribute those matches, it would be appreciated.

source_devices:
  - group: keyboard
    udev:
      subsystem: input
      attributes:
        - name: name
          value: "DP-*"

Comment thread rootfs/usr/share/inputplumber/devices/60-cec.yaml Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants