Skip to content

feat: add optional motion tilt input - #15

Open
replghost wants to merge 4 commits into
mainfrom
feat/optional-motion-input
Open

feat: add optional motion tilt input#15
replghost wants to merge 4 commits into
mainfrom
feat/optional-motion-input

Conversation

@replghost

@replghost replghost commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

What

  • add the optional motion-tilt App Manifest v2 feature and 40-byte PMT1 sample contract
  • require every ABI v1 host to resolve host_motion_read; hosts without sensors return 0 instead of trapping the guest
  • retain only the newest calibrated sample and expose set/clear APIs through native FFI and browser workers
  • support cooperative, translated, interpreter, and CoreVM execution paths
  • accept post-start WebGPU capability updates so guests can recover from stale surface generations during resize
  • regenerate source-bound browser runtime assets

Verification

  • cargo test --workspace --all-features — 45 passed across 8 suites
  • npm test — 7 passed; embedded browser assets match the source build
  • Chinpokomon native host smoke — motion delivery and pointer-only fallback both passed
  • Chinpokomon resize smoke — stale surface batch rejection recovered and all 9 foil modes rendered
  • Dotli compiler/WebGPU functional smoke — resize and subsequent input remained live

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant