MonoGame-bevitel, kamera és felület
Eszközállapotból egyszeri, szándékos játék- vagy menüműveletet képez. Figyelembe veszi a virtuális felbontást, fekete sávokat, fókuszvesztést és kontrollerleválást az elcsúszó kattintás és dupla megerősítés ellen.
monogame-input-camera-ui
Nézd meg, miben segítMikor hasznos?
Akkor használd, ha átméretezés vagy fókuszvesztés hibás kattintást, beragadt mozgást okoz.
Miben segít neked?
- Előző és aktuális bemenetet követ, egy helyen fogyasztja az eseményt.
- Átalakítja a mutatóhelyet a virtuális felbontáshoz.
- Kezeli a fókuszvesztést és vezérlő-szétkapcsolást.
Például ezt kérheted
A taktikai játék fix virtuális felbontással, fekete sávokkal fut. Kattints szélső egységre, tartsd a megerősítést ablaknyitáskor, majd válaszd le a kontrollert. A jó világmező legyen kijelölve, egyszer történjen megerősítés, és maradjon használható vezérlési lehetőség a menüben.
Részletes dokumentáció
Itt a skill eredeti útmutatóját, példáit és ellenőrzési szempontjait olvashatod az eredeti nyelven.
Összecsukás
MonoGame — input camera ui
Use when implementing MonoGame input edges, controllers, cameras, UI or resolution changes.
Version and project gate
Inspect Project and .NET target, MonoGame package/backend, Game loop settings, MGCB files/tool versions, content root, GraphicsProfile, platform libraries and existing screen/state architecture. Never turn a task into an engine upgrade without the user’s intent. Read the version-matching official reference when an API decision depends on it.
Work
Store previous/current input snapshots and define one consumption point for action edges. Keep virtual game resolution separate from backbuffer and window coordinates. Convert mouse positions through viewport/letterbox transforms and define focus loss and controller disconnection behavior.
Deliver
An input/resolution contract with usable play and menu interactions. Keep the change in the existing project structure; separate actual observations from the proposed acceptance scenario below.
Failure to prevent
Reading an edge independently in several systems can trigger duplicate commands; mouse coordinates do not automatically match a render target.
Acceptance scenario
Resize and letterbox the window, reconnect a controller and release a held key while the app is unfocused. Follow the project’s execution and verification permissions. If execution or a target device is unavailable, provide the reproduction steps and name the remaining uncertainty; do not mark it passed.
Scope and sources
This skill belongs to Mox. Agent selection is restricted by Orqestria’s assigned-agent policy, including forced skill selection; instruction text alone is not an access control. These are original task workflows researched from official documentation, not a copied or endorsed vendor skill.
Csomagban lévő fájlok 1
SKILL.md
