zephyr/drivers/input/Kconfig.evdev
Fabio Baltieri f9313b1745 input: add a linux-evdev device
Add a device driver to read events from a Linux evdev device node and
inject them back as Zephyr input events.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-12-18 12:23:59 +01:00

29 lines
760 B
Plaintext

# Copyright 2023 Google LLC
# SPDX-License-Identifier: Apache-2.0
config NATIVE_LINUX_EVDEV
bool "Native Linux evdev based input device"
default y
depends on DT_HAS_ZEPHYR_NATIVE_LINUX_EVDEV_ENABLED
depends on ARCH_POSIX
help
Enable reading input from a Linux evdev device, requires specifying
an evdev device path in the --evdev command line argument.
if NATIVE_LINUX_EVDEV
config NATIVE_LINUX_EVDEV_THREAD_PRIORITY
int "Priority for the Linux evdev thread"
default 0
help
Priority level of the internal thread handling Linux input events.
config NATIVE_LINUX_THREAD_SLEEP_MS
int "Sleep period for the Linux evdev thread"
default 10
help
How long to sleep between checking for new events in the Linux input
events thread.
endif