Files
Nebula-Core/documentation/core-glyphs.md
T
andrew 987ff560f5 Add initial Nebula Core packages and docs
Import initial monorepo structure for Nebula Core: add packages (@nebula/core, core-glyphs, core-input, core-navigation, core-theme, core-ui, core-utils) with source, dist, tests and assets. Expand README with overview, quick start and API snippets, and add package-level documentation files. Add jsconfig.json for path mapping, package.json and lockfiles to bootstrap the repo. This commit sets up the project layout, docs, and local package links for further development.
2026-01-31 22:57:16 +13:00

23 lines
779 B
Markdown

# @nebula/core-glyphs
Controller glyph mappings and lookup helpers. Data-only, no rendering logic.
## What it does
- Maps logical actions to glyph labels per controller type.
- Provides asset path lookups for common glyphs.
- Keeps glyph decisions centralized and consistent.
## Included data and helpers
- `glyphMap` — Action-to-label mappings per controller type.
- `glyphAssetMap` — Action-to-asset-path mappings per controller type.
- `getGlyph(controller, action)` — Resolve a label.
- `getGlyphAssetPath(controller, action)` — Resolve an asset path.
## Typical use cases
- Displaying correct prompts for Steam Deck, Xbox, PlayStation, or Switch.
- Using consistent glyph labels in UI and localization.
- Swapping controller visuals based on detected device.