Mod API: input's permission line says it sees keys and clicks

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-26 00:06:16 +01:00
parent e3bd626688
commit c28bea8e96
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -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
+1 -1
View File
@@ -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`