Skip to content

Commit 2303b56

Browse files
LuviaDevExerciseBook
authored andcommitted
feat: introduce hybrid input runtime
Add the process-wide hybrid input dispatcher, provider registry, PlayerLoop drain, focus-scoped input frames, and diagnostics. Register the legacy provider and optional Unity Input System provider, migrate TextInput onto the dispatcher, and remove the old InputManagement path. Add platform IME composition cancellation hooks, package the new Unity assembly roots, and document provider selection and IME behavior.
1 parent 6cfccbc commit 2303b56

88 files changed

Lines changed: 6274 additions & 510 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎CMakeLists.txt‎

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,12 +312,18 @@ if (APPLE)
312312
find_library(CORESERVICES CoreServices)
313313
find_library(COREGRAPHICS CoreGraphics)
314314
find_library(METAL Metal)
315+
if (NOT IOS)
316+
find_library(APPKIT AppKit)
317+
endif ()
315318
set(PROJECT_PLATFORM_LIBRARIES ${PROJECT_PLATFORM_LIBRARIES}
316319
"${FOUNDATION}" "${COREFOUNDATION}" "${CORETEXT}" "${CORESERVICES}" "${COREGRAPHICS}" "${METAL}")
320+
if (APPKIT)
321+
set(PROJECT_PLATFORM_LIBRARIES ${PROJECT_PLATFORM_LIBRARIES} "${APPKIT}")
322+
endif ()
317323
endif ()
318324

319325
if (WIN32)
320-
set(PROJECT_PLATFORM_LIBRARIES ${PROJECT_PLATFORM_LIBRARIES} d3d12 dxgi d3dcompiler dwrite gdi32 ole32 uuid)
326+
set(PROJECT_PLATFORM_LIBRARIES ${PROJECT_PLATFORM_LIBRARIES} d3d12 dxgi d3dcompiler dwrite gdi32 imm32 ole32 uuid)
321327
elseif (CMAKE_DL_LIBS)
322328
set(PROJECT_PLATFORM_LIBRARIES ${PROJECT_PLATFORM_LIBRARIES} ${CMAKE_DL_LIBS})
323329
endif ()
@@ -394,6 +400,8 @@ set(
394400
src/log/log.cpp
395401
src/log/log_unitylog.cpp
396402
src/io/milestro_io.cpp
403+
src/ime/ImeSession_unsupported.cpp
404+
src/ime/ImeSession_windows.cpp
397405

398406
src/skia/FontFamilyKeywordMap.cpp
399407
src/skia/FontRegistry.cpp
@@ -423,10 +431,17 @@ set(
423431
src/unicode/util.cpp
424432
)
425433

434+
if (APPLE)
435+
list(APPEND MILESTRO_CORE_FILE
436+
src/ime/ImeSession_ios.mm
437+
src/ime/ImeSession_macos.mm)
438+
endif ()
439+
426440
set(
427441
MILESTRO_APPLICATION_FILE
428442

429443
src/game/milestro_game_plugin_main.cpp
444+
src/game/milestro_game_ime.cpp
430445
src/game/milestro_game_unity_render.cpp
431446
src/unity_render/MilestroUnityRenderDispatcher.cpp
432447
src/unity_render/MilestroUnityRenderSubmissionDraw.cpp

‎apps/unity-plugins/Milestro.Editor.meta‎

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎apps/unity-plugins/Milestro.Experimental.meta‎

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎apps/unity-plugins/Milestro.InputSystem.Tests.meta‎

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)