mod controller source: call these offline controller sources, mod-trusted, not 'trusted'

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Matthew Stanley
2026-10-05 10:12:08 -07:00
parent 3733764362
commit 67e42e8833
2 changed files with 5 additions and 3 deletions
@@ -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 <calibratedbeats@gmail.com>` 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.
+4 -2
View File
@@ -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;