mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
Add getevent utility for monitoring input events including mouse clicks/movement, multi-touch coordinates/pressure, and keyboard key presses. Supports automatic device detection in /dev and command-line device path specification with non-blocking I/O. Signed-off-by: liuhongchao <liuhongchao@xiaomi.com>
97 lines
2.3 KiB
Text
97 lines
2.3 KiB
Text
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
config GRAPHICS_INPUT_GENERATOR
|
|
bool
|
|
default n
|
|
---help---
|
|
This is a simple input generator library that can be used to
|
|
generate input events for testing graphics applications.
|
|
|
|
menuconfig GRAPHICS_INPUT_MONKEY
|
|
tristate "Monkey test"
|
|
select UINPUT_TOUCH
|
|
select UINPUT_BUTTONS
|
|
select GRAPHICS_INPUT_GENERATOR
|
|
select LIBC_PRINT_EXTENSION
|
|
default n
|
|
|
|
if GRAPHICS_INPUT_MONKEY
|
|
|
|
config GRAPHICS_INPUT_MONKEY_PRIORITY
|
|
int "Task priority"
|
|
default 110
|
|
|
|
config GRAPHICS_INPUT_MONKEY_STACKSIZE
|
|
int "Stack size"
|
|
default 4096
|
|
|
|
config GRAPHICS_INPUT_MONKEY_REC_DIR_PATH
|
|
string "Recorder directory path"
|
|
default "/data/monkey"
|
|
|
|
endif
|
|
|
|
menuconfig GRAPHICS_INPUT_TOOL
|
|
tristate "Enable input tool"
|
|
default n
|
|
select UINPUT_TOUCH
|
|
select UINPUT_BUTTONS
|
|
select UINPUT_MOUSE
|
|
select GRAPHICS_INPUT_GENERATOR
|
|
---help---
|
|
Enable support for a command line input tool.
|
|
|
|
if GRAPHICS_INPUT_TOOL
|
|
|
|
config GRAPHICS_INPUT_TOOL_STACKSIZE
|
|
int "input stack size"
|
|
default DEFAULT_TASK_STACKSIZE
|
|
---help---
|
|
The size of stack allocated for the input task.
|
|
|
|
config GRAPHICS_INPUT_TOOL_PRIORITY
|
|
int "input priority"
|
|
default 110
|
|
---help---
|
|
The priority of the input task.
|
|
|
|
endif # GRAPHICS_INPUT_TOOL
|
|
|
|
menuconfig GRAPHICS_INPUT_GETEVENT
|
|
tristate "Enable getevent tool"
|
|
default n
|
|
---help---
|
|
The getevent is a command-line input event monitor. It
|
|
captures and displays real-time events from mouse,
|
|
touchscreen, and keyboard devices via the input subsystem.
|
|
|
|
Use getevent to debug and verify input drivers, inspect
|
|
raw event data during device bring-up, or diagnose
|
|
input issues on a running system. It supports automatic
|
|
device detection in /dev as well as manual device path
|
|
specification.
|
|
|
|
if GRAPHICS_INPUT_GETEVENT
|
|
|
|
config GRAPHICS_INPUT_GETEVENT_STACKSIZE
|
|
int "getevent stack size"
|
|
default DEFAULT_TASK_STACKSIZE
|
|
---help---
|
|
The size of stack allocated for the getevent task.
|
|
|
|
config GRAPHICS_INPUT_GETEVENT_PRIORITY
|
|
int "getevent priority"
|
|
default 100
|
|
---help---
|
|
The priority of the getevent task.
|
|
|
|
config GRAPHICS_INPUT_GETEVENT_DETAIL_INFO
|
|
bool "getevent detail info"
|
|
default n
|
|
---help---
|
|
Enable detailed information in getevent output.
|
|
|
|
endif # GRAPHICS_INPUT_GETEVENT
|