You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Docs: Mouse events in device orientation and device motion callbacks? #23915
Returns the most recently received ``deviceorientation`` event state.
Note that for this function call to succeed, :c:func:`emscripten_set_deviceorientation_callback` must have first been called with one of the mouse event types and a non-zero callback function pointer to enable the ``deviceorientation`` state capture.
The docs suggest you need to use to pass mouse events into the device orientation callback. This is a typo, right?
Returns the most recently received `devicemotion <http://w3c.github.io/deviceorientation/spec-source-orientation.html#devicemotion>`_ event state.
Note that for this function call to succeed, :c:func:`emscripten_set_devicemotion_callback` must have first been called with one of the mouse event types and a non-zero callback function pointer to enable the ``devicemotion`` state capture.
Activity
sbc100 commentedon Mar 13, 2025
Looks like a typo yes. Would you have time to send a PR?
davidhiberbom commentedon Mar 13, 2025
#23919
[docs] Fix typo about devicemotion and deviceorientation events in ht…