diff options
Diffstat (limited to 'docs/testing.md')
| -rw-r--r-- | docs/testing.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/testing.md b/docs/testing.md index d01b82c..bd3f2f0 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -24,7 +24,7 @@ meson test -C build-sanitize --print-errorlogs Default tests need no desktop connection. C++ header coverage is built when a C++ compiler is available. On Linux and macOS, the shared-export test ensures -only installed API declarations are exported. Test disabled-backend configurations separately with +only public API declarations are exported. Test disabled-backend configurations separately with `-Dwayland=disabled` or `-Dx11=disabled`; the combined integration harness needs both backends. @@ -94,13 +94,13 @@ serves as the drawing cursor. Mouse drawing uses a fixed width. Press C or Space to clear and Escape to quit. Resizing and display scale changes preserve the drawing. `--smoke-test` presents one frame and exits for automated checks. -[`examples/tablet.c`](../examples/tablet.c) includes only `<yasl/yasl.h>` and the C -standard library. It uses CPU framebuffers and `yasl_surface_input_poll()` on -every backend. Tablet events arrive as `YASL_INPUT_MOUSE`, distinguished by -`mouse.device == YASL_PTR_DEV_PEN` or `YASL_PTR_DEV_ERASER`; `mouse.pen` contains +[`examples/tablet.c`](../examples/tablet.c) includes `<yasl/app.h>` and the C +standard library. It uses `yasl_run()`, frame callbacks, and unified input events +on every backend. Tablet button and motion events retain `device`, which is +`YASL_PTR_DEV_PEN` or `YASL_PTR_DEV_ERASER`; their `pen` member contains pressure and signed tilt. Button 0 is tip contact on every backend. Track tip press/release events: zero pressure alone does not mean release. Hover and side -buttons do not paint, and focus loss, leave, or `YASL_INPUT_RESET` cancels a stroke. +buttons do not paint, and focus loss, leave, or `YASL_EVENT_INPUT_RESET` cancels a stroke. Stationary pressure changes arrive as motion events and update the brush too. The example uses portable physical keys: C and Space clear, Escape exits. |
