Skip to content

GameInput

GameInput = "body" | "remote"

How a game can be played: with the body (camera on the phone), or with the TV remote (keys become gestures).

‘remote’ is for TV apps without a phone (Samsung, LG, Android TV, Fire TV): one remote is one child, and with several children the screen runs turns, only for games whose manifest says “turns”: true (see GameManifest.turns, BreakReason turn, HostMessage turn). The screen turns keys into the gestures the body makes (↑ or OK jump; ↓ held squat, stand on release; ← → lanes; OK twice quickly clap; Back is the platform’s pause, never the game’s) and animates a puppet body in the frames, so with one child most games need no code. On LG the Magic Remote also points: it reaches the game as ordinary pointer and mouse events (init.pointer says when). A game that lists ‘remote’ must play with those keys alone and, where it has things to pick (bubbles, answers, buttons), let a pointer click them too (pointer events, large hit areas, a hover highlight). Games aimed with the hands should not list it unless they offer a selection the keys can drive.