nuttx/arch
xingrentai.1 bf83ff3fbd arch/sim: guard X11 touchscreen events with CONFIG_SIM_TOUCHSCREEN
The X11 event loop in the POSIX simulator was processing MotionNotify
(touch/mouse movement)and ButtonPress/ButtonRelease events unconditionally,
even when the touchscreen feature(CONFIG_SIM_TOUCHSCREEN) was disabled.

This could lead to unnecessary event processing, potential compiler warnings
about unusedfunctions (e.g., sim_buttonevent), or unintended behavior in simulator
builds withouttouchscreen support. The touchscreen-related event handling should
only be active whenthe corresponding configuration is enabled.

This fix wraps the MotionNotify and ButtonPress/ButtonRelease event handling
logicwith #ifdef CONFIG_SIM_TOUCHSCREEN guards to:

1. Ensure touchscreen/mouse event processing is only compiled when CONFIG_SIM_TOUCHSCREEN is enabled.
2. Eliminate unused code warnings in non-touchscreen simulator builds.
3. Align event loop behavior with the configured feature set, reducing unnecessary runtime overhead.

The change maintains full touchscreen functionality when the config is enabled, whilecleaning up the
code path for builds that don't require touchscreen support.

Signed-off-by: chao an <anchao.archer@bytedance.com>
2026-02-27 19:54:46 +08:00
..
arm arch/arm/src/stm32wl5: CMake build implemented for STM32 STM32WL5 2026-02-26 06:20:41 +08:00
arm64 arm64/cmake: fix typo in CMAKE_STRIP flag 2026-02-26 12:12:35 +01:00
avr Makefile: Remove make depend files by make distclean 2026-02-16 16:27:57 +01:00
ceva protect: move us_heap to userspace_data_s 2026-02-02 11:06:53 +08:00
dummy
hc Makefile: Remove make depend files by make distclean 2026-02-16 16:27:57 +01:00
mips Makefile: Remove make depend files by make distclean 2026-02-16 16:27:57 +01:00
misoc Makefile: Remove make depend files by make distclean 2026-02-16 16:27:57 +01:00
or1k Makefile: Remove make depend files by make distclean 2026-02-16 16:27:57 +01:00
renesas Makefile: Remove make depend files by make distclean 2026-02-16 16:27:57 +01:00
risc-v arch/risc-v/src/common: Create SoC-specific initialization routine 2026-02-27 08:12:19 -03:00
sim arch/sim: guard X11 touchscreen events with CONFIG_SIM_TOUCHSCREEN 2026-02-27 19:54:46 +08:00
sparc sched/signal: Optimize code logic 2026-01-27 21:24:31 +08:00
tricore serial/uart_rpmsg: add _raw version of driver 2026-02-23 09:19:57 -03:00
x86 Makefile: Remove make depend files by make distclean 2026-02-16 16:27:57 +01:00
x86_64 Makefile: Remove make depend files by make distclean 2026-02-16 16:27:57 +01:00
xtensa arch/xtensa/src/common: Create SoC-specific initialization routine 2026-02-27 08:12:19 -03:00
z16 sched/signal: Optimize code logic 2026-01-27 21:24:31 +08:00
z80 netdev_driver: add carrier_on to xxx_ifup where carrier_on is absent 2026-02-02 13:23:05 +08:00
CMakeLists.txt arch/z80: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
Kconfig arch/delays: Invalid default value for BOARD_LOOPSPERMSEC 2026-02-25 15:00:03 -03:00