Capslock: Key::CapsLock-Event und heuristischer caps_lock()-Zustand

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
irrlicht
2026-09-30 15:17:59 +02:00
co-authored by Claude Opus 5.5
parent 8c647d3700
commit 0df016d69c
3 changed files with 41 additions and 5 deletions
+7
View File
@@ -20,6 +20,13 @@ durch direktes RGB565-Truecolor. Beide Varianten bleiben unabhängig nutzbar:
- `pbio::rgb565(r: u8, g: u8, b: u8) -> u16` (const fn) — packt 8-Bit-Kanäle
in einen RGB565-Pixelwert.
- `Key::CapsLock` als Tasten-Event (X11, Wayland, Windows — winit 0.30 meldet
Capslock auf macOS nicht als `KeyboardInput`).
- `Platform::caps_lock() -> Option<bool>` — Capslock-Zustand, heuristisch
abgeleitet, da winit ihn nicht plattformübergreifend liefert: `CapsLock`-Druck
toggelt, ein getippter Buchstabe (A–Z-Taste ohne Modifier) setzt ihn anhand
von Groß-/Kleinschreibung. `None`, bis der erste Buchstabe getippt wurde.
### Entfernt
- `PlatformConfig::palette` sowie `palette()` / `palette_mut()` und das