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
[docs] Fix typo about devicemotion and deviceorientation events in html5.h.rst (#23919)
As suggested in #23915, the docs seem to say you need to pass mouse
events into the devicemotion and deviceorientation callbacks, which
looks like a typo.
Copy file name to clipboardExpand all lines: site/source/docs/api_reference/html5.h.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -800,7 +800,7 @@ Functions
800
800
801
801
Returns the most recently received ``deviceorientation`` event state.
802
802
803
-
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.
803
+
Note that for this function call to succeed, :c:func:`emscripten_set_deviceorientation_callback` must have first been called with a non-zero callback function pointer to enable the ``deviceorientation`` state capture.
804
804
805
805
:param orientationState: The most recently received ``deviceorientation`` event state.
Returns the most recently received `devicemotion <http://w3c.github.io/deviceorientation/spec-source-orientation.html#devicemotion>`_ event state.
894
894
895
-
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.
895
+
Note that for this function call to succeed, :c:func:`emscripten_set_devicemotion_callback` must have first been called with a non-zero callback function pointer to enable the ``devicemotion`` state capture.
896
896
897
897
:param motionState: The most recently received ``devicemotion`` event state.
0 commit comments