From c28bea8e96cdf9ec7db298295664626926cb63f1 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Mon, 26 Oct 2026 00:06:16 +0100 Subject: [PATCH] Mod API: input's permission line says it sees keys and clicks Co-Authored-By: Claude Opus 5.5 --- crates/horizon-mods/src/manifest.rs | 4 +++- docs/api/mods-reference.md | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/horizon-mods/src/manifest.rs b/crates/horizon-mods/src/manifest.rs index e9535bc78..9e998dae1 100644 --- a/crates/horizon-mods/src/manifest.rs +++ b/crates/horizon-mods/src/manifest.rs @@ -133,7 +133,9 @@ impl Capability { Capability::Registries => "add blocks and items to your worlds", Capability::Ui => "show its own screens and a settings page", Capability::Render => "draw on your screen and shake the camera", - Capability::Input => "take over the use button on its own items, and add keys", + Capability::Input => { + "see the keys you hold and your clicks, take over the use button on its own items, and add keys" + } } } /// The capability a component import needs, `Ok(None)` for one every diff --git a/docs/api/mods-reference.md b/docs/api/mods-reference.md index e371f3975..333b65bd0 100644 --- a/docs/api/mods-reference.md +++ b/docs/api/mods-reference.md @@ -14,7 +14,7 @@ The contract between Horizon and its mods: the WIT package `horizon:mods@0.1.0`, | `registries` | data files (`assets/`, `data/`), no interface | add blocks and items to your worlds | | `ui` | [`ui`](#ui) | show its own screens and a settings page | | `render` | [`render`](#render) | draw on your screen and shake the camera | -| `input` | [`input`](#input) | take over the use button on its own items, and add keys | +| `input` | [`input`](#input) | see the keys you hold and your clicks, take over the use button on its own items, and add keys | ## World `horizon-mod`