Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions graphics/input/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,17 @@ if(CONFIG_GRAPHICS_INPUT_TOOL)
SRCS
generator/input.c)
endif()

if(CONFIG_GRAPHICS_INPUT_GETEVENT)
nuttx_add_application(
MODULE
${CONFIG_GRAPHICS_INPUT_GETEVENT}
NAME
getevent
STACKSIZE
${CONFIG_GRAPHICS_INPUT_GETEVENT_STACKSIZE}
PRIORITY
${CONFIG_GRAPHICS_INPUT_GETEVENT_PRIORITY}
SRCS
getevent/getevent.c)
endif()
36 changes: 36 additions & 0 deletions graphics/input/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,39 @@ config GRAPHICS_INPUT_TOOL_PRIORITY
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
2 changes: 1 addition & 1 deletion graphics/input/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
#
############################################################################

ifneq ($(CONFIG_GRAPHICS_INPUT_GENERATOR),)
ifneq ($(CONFIG_GRAPHICS_INPUT_GENERATOR)$(CONFIG_GRAPHICS_INPUT_GETEVENT),)
CONFIGURED_APPS += $(APPDIR)/graphics/input
endif
12 changes: 12 additions & 0 deletions graphics/input/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,16 @@ MODULE += $(CONFIG_GRAPHICS_INPUT_TOOL)
MAINSRC += generator/input.c
endif

# getevent tool

ifneq ($(CONFIG_GRAPHICS_INPUT_GETEVENT),)
PROGNAME += getevent
PRIORITY += $(CONFIG_GRAPHICS_INPUT_GETEVENT_PRIORITY)
STACKSIZE += $(CONFIG_GRAPHICS_INPUT_GETEVENT_STACKSIZE)
MODULE += $(CONFIG_GRAPHICS_INPUT_GETEVENT)

MAINSRC += getevent/getevent.c
CFLAGS += -Wno-discarded-qualifiers
endif

include $(APPDIR)/Application.mk
Loading
Loading