Route canvas input policy through platform services

This commit is contained in:
2026-06-04 18:26:21 +02:00
parent e52fd3cbb5
commit 4bd29bee9f
10 changed files with 122 additions and 26 deletions

View File

@@ -555,7 +555,10 @@ mode, pen picking, touch-lock, and transform state adapters continue.
refresh used by `App::update` before legacy `Canvas` mode state remains the
source of truth. `NodeCanvas` stylus eraser mode switching consumes the same
shared bridge through its input-only path before legacy canvas mode execution
continues. `NodeCanvas` keyboard and touch command handling now consumes
continues. Canvas mode pointer-tip visibility and Windows pressure remapping
now dispatch through `PlatformServices`, preserving iOS tip behavior and the
Windows pressure curve outside `canvas_modes.cpp`. `NodeCanvas` keyboard and
touch command handling now consumes
`pp_app_core` canvas-hotkey planning for E draw/erase, Ctrl+Z, Ctrl+Shift+Z,
Ctrl+S, Ctrl+Shift+S, Tab UI toggle, brush-size brackets, Android back, Alt
cursor reveal, and two-finger undo before the shared bridge delegates to legacy
@@ -703,6 +706,9 @@ The UI loop's per-frame platform hooks now dispatch through
`PlatformServices`: Windows stylus timeout polling and FPS-title updates live
in `WindowsPlatformServices`, while Linux FPS-title updates remain in the
legacy adapter pending Phase 6 platform shell extraction.
Canvas input tip-visibility and pressure-remap policies now also dispatch
through `PlatformServices`, removing the local iOS and Windows branches from
pen, line, and flood-fill canvas modes.
The UI thread's platform attach/detach hooks now also dispatch through
`PlatformServices`, preserving Android JNI attach/detach behavior in the
legacy adapter while removing direct Android lifecycle calls from the main app
@@ -1746,6 +1752,7 @@ Results:
recording cleanup dispatch, exported-image publish dispatch, persistent
storage flush dispatch, document browse-root dispatch,
working-directory picker policy and display-path formatting dispatch,
canvas input tip visibility and pressure remap dispatch,
native UI/window state save dispatch, prepared-file writable target dispatch,
prepared-file export-dialog policy dispatch, work-directory document export
collection policy dispatch, network TLS verification policy dispatch,