]> git.basschouten.com Git - openhab-addons.git/commit
[linuxinput] handle keys not known by libevdev (#13632)
authorThomas Weißschuh <thomas@t-8ch.de>
Tue, 1 Nov 2022 13:06:58 +0000 (08:06 -0500)
committerGitHub <noreply@github.com>
Tue, 1 Nov 2022 13:06:58 +0000 (14:06 +0100)
commit894668ffce41bacbf95b9f0f2beb1431711d0380
tree5255343f12e15302320d68b483ff018caad07228
parent33de7b426bc22c5093ff29a67d3b836d7f096500
[linuxinput] handle keys not known by libevdev (#13632)

* [linuxinput] handle keys not known by libevdev

Previously if libevdev could not resolve a numeric event code to a
symbolic name the name "null" was used.
This is useless for the user and may lead to duplicate-channel errors if
multiple unknown keys are encountered.

Instead use the numeric code itself as channel name if no symbolic code
could be determined.

Reported-in: https://community.openhab.org/t/linuxinput-binding-and-mouse-capture/122612/8
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
* [linuxinput] add channel description

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
bundles/org.openhab.binding.linuxinput/README.md
bundles/org.openhab.binding.linuxinput/src/main/java/org/openhab/binding/linuxinput/internal/LinuxInputHandler.java