bevy-adapt-mobile-to-desktop
Installation
SKILL.md
Bevy adapt mobile to desktop
When to use
Load this when a touch-first game gains a window, mouse, and keyboard. Window setup is bevy-platform-desktop.
ECS shape
- Window:
Window,WindowMode, andPrimaryWindow. - Input: keyboard, mouse, and gamepad features are named on the crate page and already used by bevy-input-handling.
- Pointer:
CursorOptionson the primary window.CursorGrabMode::None,Confined, orLocked.
Desktop choices
| Need | Bevy idiom |
|---|---|
| On-screen buttons | Keyboard and mouse via bevy-input-handling, writing the same intent component. |
| Wider layout | A wider WindowResolution on the primary Window. |
| Pointer lock | CursorOptions.grab_mode = CursorGrabMode::Locked and visible = false. |