mirror of
https://github.com/apache/nuttx.git
synced 2026-10-01 11:26:29 +00:00
The X11 mouse emulation driver (arch/sim/src/sim/sim_mouse.c) is built and fed by the X11 event loop whenever CONFIG_SIM_MOUSE=y, but nothing ever called sim_mouse_initialize(), so /dev/mouse0 was never registered and applications could not read any mouse reports. Since nothing referenced sim_mouse.o, the linker did not even pull it in and the build failed with "undefined reference to `sim_mouseevent'". Call sim_mouse_initialize(0) from sim_bringup(), next to the existing touchscreen and keyboard initialization. Tested with sim:nsh + CONFIG_SIM_X11FB, CONFIG_SIM_MOUSE and CONFIG_SIM_KEYBOARD: /dev/mouse0 is now listed and reports left, middle and right button state plus pointer motion. Signed-off-by: Alan C. Assis <acassis@gmai.com> Assisted-by: Claude Opus 5.5 (1M context) |
||
|---|---|---|
| .. | ||
| arm | ||
| arm64 | ||
| avr | ||
| dummy | ||
| hc/m9s12 | ||
| mips | ||
| misoc/lm32/misoc | ||
| or1k/mor1kx/or1k | ||
| renesas | ||
| risc-v | ||
| sim/sim/sim | ||
| sparc | ||
| tricore | ||
| x86/qemu/qemu-i486 | ||
| x86_64/qemu/qemu-intel64 | ||
| xtensa | ||
| z16/z16f/z16f2800100zcog | ||
| z80 | ||
| .gitignore | ||
| Board.mk | ||
| boardctl.c | ||
| CMakeLists.txt | ||
| dummy.c | ||
| Kconfig | ||
| Makefile | ||