Device Orientation

6 views
Skip to first unread message

J Decker

unread,
May 28, 2019, 11:31:46 PM5/28/19
to emscripten-discuss
How do I enable device orientation?  Is it associated with VR?
My program is not causing the browser to ask for permission...

I get orientation events from 
emscripten_set_deviceorientation_callback( myState, true, em_deviceorientation_callback_handler );

With the sensors panel in devtools, I can force device orientation (which has alpha,beta,gamma...) but I get an event with NaN,NaN,NaN.


Reply all
Reply to author
Forward
0 new messages