// controllerInputDispatch.ts — shared, SELF-CONTAINED controller-input dispatch logic for the // `type:'input'` sideband of the ShortPlay bridge protocol (card // design-phone-controller-pairing-ui-device-agnostic; card // bug-paired-device-taps-never-reach-the-game). // // "Self-contained" here is a HARD REQUIREMENT, not a style preference: this module is consumed // TWO ways — // (1) imported normally by the child SDK (games-sdk/shortplay-sdk.ts), bundled as ordinary TS; // (2) `.toString()`'d into a literal inline