clay/renderers
Seintian 8643a5d2d9 Fix Ncurses click handling and restore ncursesw build
This commit addresses issues with mouse interaction reliability and build configuration in the Ncurses renderer and example.

Renderer Changes:
- Enable explicit xterm 1003 mouse tracking (Any Event) via escape sequences to ensure reliable hover sensing from the first frame (though not so portable).
- Refactor `Clay_Ncurses_ProcessInput` to:
  - Correctly order `Clay_SetPointerState` calls to ensure the "Pressed" state is registered before the function returns.
  - Detect and return a new `CLAY_NCURSES_KEY_MOUSE_CLICK` event code for single, double, and triple clicks.
- Make `Clay_Ncurses_OnClick` as a semantic wrapper around `Clay_OnHover`.
- Add empty switch cases for `CLAY_RENDER_COMMAND_TYPE_IMAGE` and `CLAY_RENDER_COMMAND_TYPE_CUSTOM` to prevent unhandled enumeration warnings.

Example Application Changes:
- Update `main.c` to break the input processing loop immediately upon receiving `CLAY_NCURSES_KEY_MOUSE_CLICK`, ensuring the "Pressed" state is processed by the layout engine for that frame.

Build System:
- Update `CMakeLists.txt` to replace `FindCurses` with `find_library` and `find_path` for `ncursesw`.
2025-12-29 21:57:50 +01:00
..
cairo [Renderers/Cairo] Fix cairo renderer and example (#416) 2025-05-19 11:36:08 +12:00
ncurses Fix Ncurses click handling and restore ncursesw build 2025-12-29 21:57:50 +01:00
playdate [Renderers/Playdate] Playdate console example (#404) 2025-05-19 11:46:39 +12:00
raylib [Renderers/Raylib] Fix element float distortion (#430) 2025-06-05 10:49:26 +10:00
SDL2 [Renderers/SDL] Font sizing is ignored (#444) 2025-06-23 09:30:14 +10:00
SDL3 [Renderers/SDL3] Fix border position calculated incorrectly (#446) 2025-06-23 10:43:08 +10:00
sokol [Renderers/Sokol] allow usage of images with sokol renderer (#489) 2025-09-08 11:35:18 +10:00
termbox2 [Renderers/termbox] fixed horizontal text culling bug (#525) 2025-10-23 12:58:39 +11:00
terminal [Renderers/Terminal] Add initial implementation of terminal renderer (#91) 2025-05-22 12:45:52 +12:00
web [Renderers/Web] treat RenderCommand.commandType as uint8_t instead of uint32_t (#162) 2025-01-05 14:34:16 +13:00
win32_gdi [Renderers/WinGDI] Working on Win32 GDI renderer and example (#344) 2025-04-09 11:31:33 +12:00