From 67e42e88332ad94a5d9be9f0c481835e930beaad Mon Sep 17 00:00:00 2001 From: Matthew Stanley <1379tech@gmail.com> Date: Mon, 5 Oct 2026 10:12:08 -0700 Subject: [PATCH] mod controller source: call these offline controller sources, mod-trusted, not 'trusted' Co-Authored-By: Claude Sonnet 5.5 --- docs/internal/upstream/offline-plugin-controller-sources.md | 2 +- runtime/include/mod_plugins.h | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/internal/upstream/offline-plugin-controller-sources.md b/docs/internal/upstream/offline-plugin-controller-sources.md index c71129dd..c0f198b8 100644 --- a/docs/internal/upstream/offline-plugin-controller-sources.md +++ b/docs/internal/upstream/offline-plugin-controller-sources.md @@ -11,7 +11,7 @@ that exact human author identity. The focused port consolidates the selected source hunks and corrections. Its commit also cites these sources and carries the original human contributor's `Co-authored-by: Yves ` trailer. -Adapted: Only trusted controller-source registration, validation/neutralization and the existing offline host-input boundary. +Adapted: Only offline controller-source registration (documented as mod-trusted), validation/neutralization and the existing offline host-input boundary. Deliberately excluded: OpenXR Touch action implementation, game bindings/deadzones/aiming and guest SIO replacements. diff --git a/runtime/include/mod_plugins.h b/runtime/include/mod_plugins.h index d42bd176..8003dde5 100644 --- a/runtime/include/mod_plugins.h +++ b/runtime/include/mod_plugins.h @@ -645,8 +645,10 @@ int psx_mod_set_controller_presentation_policy( uint32_t initial_mode, int config_capable); -/* Trusted offline source owns a player's pad at normal input sampling. A - * declined/invalid sample delivers neutral, not the previous held input. +/* Offline controller source owns a player's pad at normal input sampling. + * Mod-trusted like any mod code (arbitrary native code; the setter does no + * caller check). A declined/invalid sample delivers neutral, not the previous + * held input. * Existing TCP overrides take priority; netplay/resim and eye redraws never * invoke the source. The runtime keeps coherent SIO type requests/recording. * Pass NULL to detach. Local keyboard/pad buttons remain merged for menus;