Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Start listening for device orientation changes.
my.onDeviceMotionChange
game
ui
normal
my.startDeviceMotionListening({ interval: 'ui', success() { my.onDeviceMotionChange((res) => { console.log(res.alpha, res.beta, res.gamma); }); }, fail(err) { console.error(err); } });