Skip to content

Commit a41e1d0

Browse files
[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.
1 parent 7626560 commit a41e1d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/source/docs/api_reference/html5.h.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ Functions
800800
801801
Returns the most recently received ``deviceorientation`` event state.
802802
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.
804804
805805
:param orientationState: The most recently received ``deviceorientation`` event state.
806806
:type orientationState: EmscriptenDeviceOrientationEvent*
@@ -892,7 +892,7 @@ Functions
892892
893893
Returns the most recently received `devicemotion <http://w3c.github.io/deviceorientation/spec-source-orientation.html#devicemotion>`_ event state.
894894
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.
896896
897897
:param motionState: The most recently received ``devicemotion`` event state.
898898
:type motionState: EmscriptenDeviceMotionEvent*

0 commit comments

Comments
 (0)