Inject GLFW shell and move Win32 key map

This commit is contained in:
2026-06-17 10:53:51 +02:00
parent 59a9074109
commit 0a7961d8b3
10 changed files with 95 additions and 60 deletions

View File

@@ -70,6 +70,17 @@ What is already real:
- `pp_app_core`
Latest slice:
- `src/platform_legacy/legacy_platform_services.*` now accepts an injected
`LegacyGlfwPlatformShell` for Linux/WebGL `acquire_render_context`,
`present_render_context`, and app-close callbacks.
- `linux/src/main.cpp` and `webgl/src/main.cpp` now provide that GLFW shell
directly from the entrypoint-owned window state instead of relying on legacy
free helpers for those operations.
- `src/platform_legacy/legacy_platform_state.*` no longer exports the old GLFW
`acquire/present/request_close` helper trio.
- `src/platform_windows/windows_platform_services.cpp` now owns the Win32
virtual-key map and `initialize_retained_input_state()` path, so
`windows_window_shell.cpp` no longer carries that retained input setup.
- `src/platform_windows/windows_window_shell.*` no longer carries the dead
retained raw key-state array or its accessor; Win32 key synchronization now
relies only on the virtual-key map plus `App` key state.

View File

@@ -78,6 +78,16 @@ Completed, blocked, and superseded task history moved to
the queue is now ordered by code movement instead.
Current slice:
- `src/platform_legacy/legacy_platform_services.*` now uses an injected
`LegacyGlfwPlatformShell` for the remaining Linux/WebGL
acquire/present/request-close path.
- `linux/src/main.cpp` and `webgl/src/main.cpp` now bind those GLFW operations
directly from entrypoint-owned window state.
- `src/platform_legacy/legacy_platform_state.*` no longer carries the old GLFW
acquire/present/request-close helper trio.
- `src/platform_windows/windows_platform_services.cpp` now owns the Win32
virtual-key map initialization path, so `windows_window_shell.cpp` no longer
carries that retained input setup.
- `src/platform_windows/windows_window_shell.*` no longer keeps the dead
retained raw key-state array.
- `linux/src/main.cpp` now owns the Linux FPS-title callback lifecycle