Search

US-20260126863-A1 - CURSOR POSITION DETERMINING METHOD AND REMOTE CONTROL DEVICE

US20260126863A1US 20260126863 A1US20260126863 A1US 20260126863A1US-20260126863-A1

Abstract

A cursor position determining method and a remote control device are disclosed. The method includes: The remote control device determines a first deflection angle of a pointing direction of the remote control device relative to a first reference line when the pointing direction of the remote control device is deflected; the remote control device determines a first offset distance based on the first deflection angle and a first virtual arc surface, where a central position of the first virtual arc surface is on the first reference line, and a tangent at the central position of the first virtual arc surface is perpendicular to the first reference line; and the remote control device determines, based on a central position of a screen device and the first offset distance, a cursor position that is of a cursor corresponding to the remote control device and that is on the screen device.

Inventors

  • Siju WU

Assignees

  • HUAWEI TECHNOLOGIES CO., LTD.

Dates

Publication Date
20260507
Application Date
20251222
Priority Date
20230721

Claims (20)

  1. 1 . A method, comprising: determining a first deflection angle of a pointing direction of a remote control device relative to a first reference line when the pointing direction of the remote control device is deflected, wherein the first reference line is a connection line between a position of the remote control device and a central position of a screen device; determining a first offset distance based on the first deflection angle and a first virtual arc surface, wherein the remote control device is located inside an arc of the first virtual arc surface, the screen device is located outside the arc of the first virtual arc surface, a central position of the first virtual arc surface is on the first reference line, and a tangent at the central position of the first virtual arc surface is perpendicular to the first reference line; and determining, based on the central position of the screen device and the first offset distance, a cursor position that is of a cursor corresponding to the remote control device and that is on the screen device.
  2. 2 . The method according to claim 1 , wherein the first deflection angle comprises a first horizontal deflection angle and a first vertical deflection angle and determining the first deflection angle of the pointing direction of the remote control device relative to the first reference line comprises: using an included angle between the pointing direction of the remote control device and a first reference plane as the first horizontal deflection angle, wherein the first reference plane is a plane that is perpendicular to a horizontal plane and that comprises the first reference line; and using an included angle between the pointing direction of the remote control device and a second reference plane as the first vertical deflection angle, wherein the second reference plane is a plane that is parallel to the horizontal plane and that comprises the first reference line.
  3. 3 . The method according to claim 2 , wherein the first offset distance comprises a first horizontal offset distance and a first vertical offset distance and determining the first offset distance based on the first deflection angle and the first virtual arc surface comprises: using a product of a radius length of the first virtual arc surface and the first horizontal deflection angle as the first horizontal offset distance; and using a product of the radius length of the first virtual arc surface and the first vertical deflection angle as the first vertical offset distance.
  4. 4 . The method according to claim 2 , wherein the first offset distance comprises a first horizontal offset distance and a first vertical offset distance and determining the first offset distance based on the first deflection angle and the first virtual arc surface comprises: using a product of a radius length of the first virtual arc surface and the first horizontal deflection angle as a second horizontal offset distance; using a product of a first horizontal adjustment ratio and the second horizontal offset distance as the first horizontal offset distance; using a product of the radius length of the first virtual arc surface and the first vertical deflection angle as the second vertical offset distance; and using a product of a first vertical adjustment ratio and the second vertical offset distance as the first vertical offset distance.
  5. 5 . The method according to claim 3 , wherein determining, based on the central position of the screen device and the first offset distance, the cursor position that is of the cursor corresponding to the remote control device and that is on the screen device comprises: determining a first coordinate value based on the central position of the screen device and the first horizontal offset distance; determining a second coordinate value based on the central position of the screen device and the first vertical offset distance; and forming coordinates of the cursor position by using the first coordinate value and the second coordinate value, and determining, based on the coordinates of the cursor position, the cursor position that is of the cursor corresponding to the remote control device and that is on the screen device.
  6. 6 . The method according to claim 1 , further comprising: receiving, before determining the first deflection angle of the pointing direction of the remote control device relative to the first reference line when the pointing direction of the remote control device is deflected, a first operation, wherein the first operation comprises an operation of deflecting the pointing direction of the remote control device, and the radius length of the first virtual arc surface is a first length; or receiving, before determining the first deflection angle of the pointing direction of the remote control device relative to the first reference line when the pointing direction of the remote control device is deflected, a second operation, wherein the second operation comprises the first operation and a third operation on a touchpad of the remote control device, the radius length of the first virtual arc surface is a second length, and the second length is less than the first length.
  7. 7 . The method according to claim 1 , further comprising: determining the first deflection angle of the pointing direction of the remote control device relative to the first reference line when the remote control device receives a fourth operation, wherein the fourth operation comprises an operation of deflecting the pointing direction of the remote control device and a fifth operation on a touchpad of the remote control device, and the first reference line is the connection line between the position of the remote control device and the central position of the screen device; determining a third horizontal offset distance based on a first horizontal deflection angle and a second horizontal adjustment ratio, and determining a third vertical offset distance based on a first vertical deflection angle and a second vertical adjustment ratio; and determining, based on the central position of the screen device, the third horizontal offset distance, and the third vertical offset distance, the cursor position that is of the cursor corresponding to the remote control device and that is on the screen device.
  8. 8 . The method according to claim 1 , further comprising: determining a horizontal movement distance and a vertical movement distance of the remote control device when the remote control device receives a sixth operation on a touchpad, wherein the sixth operation comprises an operation of moving the remote control device and a seventh operation on the touchpad of the remote control device; determining a fourth horizontal offset distance based on the horizontal movement distance and a third horizontal adjustment ratio, and determining a fourth vertical offset distance based on the vertical movement distance and a third vertical adjustment ratio; and determining, based on the central position of the screen device, the fourth horizontal offset distance, and the fourth vertical offset distance, the cursor position that is of the cursor corresponding to the remote control device and that is on the screen device.
  9. 9 . A remote control device, comprising: a processor; and a memory, wherein the processor is configured to execute instructions stored in the memory to cause the processor to: determine a first deflection angle of a pointing direction of the remote control device relative to a first reference line when the pointing direction of the remote control device is deflected, wherein the first reference line is a connection line between a position of the remote control device and a central position of a screen device; determine a first offset distance based on the first deflection angle and a first virtual arc surface, wherein the remote control device is located inside an arc of the first virtual arc surface, the screen device is located outside the arc of the first virtual arc surface, a central position of the first virtual arc surface is on the first reference line, and a tangent at the central position of the first virtual arc surface is perpendicular to the first reference line; and determine, based on the central position of the screen device and the first offset distance, a cursor position that is of a cursor corresponding to the remote control device and that is on the screen device.
  10. 10 . The remote control device according to claim 9 , wherein the first deflection angle comprises a first horizontal deflection angle and a first vertical deflection angle and, to determine the first deflection angle of the pointing direction of the remote control device relative to the first reference line, the processor is caused to: use an included angle between the pointing direction of the remote control device and a first reference plane as the first horizontal deflection angle, wherein the first reference plane is a plane that is perpendicular to a horizontal plane and that comprises the first reference line; and use an included angle between the pointing direction of the remote control device and a second reference plane as the first vertical deflection angle, wherein the second reference plane is a plane that is parallel to the horizontal plane and that comprises the first reference line.
  11. 11 . The remote control device according to claim 10 , wherein the first offset distance comprises a first horizontal offset distance and a first vertical offset distance and, to determine the first offset distance based on the first deflection angle and the first virtual arc surface, the processor is caused to: use a product of a radius length of the first virtual arc surface and the first horizontal deflection angle as the first horizontal offset distance; and use a product of the radius length of the first virtual arc surface and the first vertical deflection angle as the first vertical offset distance.
  12. 12 . The remote control device according to claim 10 , wherein the first offset distance comprises a first horizontal offset distance and a first vertical offset distance and, to determine the first offset distance based on the first deflection angle and the first virtual arc surface, the processor is caused to: use a product of a radius length of the first virtual arc surface and the first horizontal deflection angle as a second horizontal offset distance; use a product of a first horizontal adjustment ratio and the second horizontal offset distance as the first horizontal offset distance; use a product of the radius length of the first virtual arc surface and the first vertical deflection angle as the second vertical offset distance; and use a product of a first vertical adjustment ratio and the second vertical offset distance as the first vertical offset distance.
  13. 13 . The remote control device according to claim 11 , wherein, to determine, based on the central position of the screen device and the first offset distance, the cursor position that is of the cursor corresponding to the remote control device and that is on the screen device, the processor is caused to: determine a first coordinate value based on the central position of the screen device and the first horizontal offset distance; determine a second coordinate value based on the central position of the screen device and the first vertical offset distance; and form coordinates of the cursor position by using the first coordinate value and the second coordinate value, and determine, based on the coordinates of the cursor position, the cursor position that is of the cursor corresponding to the remote control device and that is on the screen device.
  14. 14 . The remote control device according to claim 9 , wherein the processor is configured to execute further instructions stored in the memory, to cause the processor to: receive, before determination of the first deflection angle of the pointing direction of the remote control device relative to the first reference line when the pointing direction of the remote control device is deflected, a first operation, wherein the first operation comprises an operation of deflecting the pointing direction of the remote control device, and the radius length of the first virtual arc surface is a first length; or receive, before determination of the first deflection angle of the pointing direction of the remote control device relative to the first reference line when the pointing direction of the remote control device is deflected, a second operation, wherein the second operation comprises the first operation and a third operation on a touchpad of the remote control device, the radius length of the first virtual arc surface is a second length, and the second length is less than the first length.
  15. 15 . The remote control device according to claim 9 , wherein the processor is configured to execute further instructions stored in the memory, to cause the processor to: determine the first deflection angle of the pointing direction of the remote control device relative to the first reference line when the remote control device receives a fourth operation, wherein the fourth operation comprises an operation of deflecting the pointing direction of the remote control device and a fifth operation on a touchpad of the remote control device, and the first reference line is the connection line between the position of the remote control device and the central position of the screen device; determine a third horizontal offset distance based on a first horizontal deflection angle and a second horizontal adjustment ratio, and determining a third vertical offset distance based on a first vertical deflection angle and a second vertical adjustment ratio; and determine, based on the central position of the screen device, the third horizontal offset distance, and the third vertical offset distance, the cursor position that is of the cursor corresponding to the remote control device and that is on the screen device.
  16. 16 . The remote control device according to claim 9 , wherein the processor is configured to execute further instructions stored in the memory, to cause the processor to: determine a horizontal movement distance and a vertical movement distance of the remote control device when the remote control device receives a sixth operation on a touchpad, wherein the sixth operation comprises an operation of moving the remote control device and a seventh operation on the touchpad of the remote control device; determine a fourth horizontal offset distance based on the horizontal movement distance and a third horizontal adjustment ratio, and determining a fourth vertical offset distance based on the vertical movement distance and a third vertical adjustment ratio; and determine, based on the central position of the screen device, the fourth horizontal offset distance, and the fourth vertical offset distance, the cursor position that is of the cursor corresponding to the remote control device and that is on the screen device.
  17. 17 . A non-transitory computer-readable storage medium, storing instructions that, when executed by a processor, cause the processor to: determine a first deflection angle of a pointing direction of a remote control device relative to a first reference line when the pointing direction of the remote control device is deflected, wherein the first reference line is a connection line between a position of the remote control device and a central position of a screen device; determine a first offset distance based on the first deflection angle and a first virtual arc surface, wherein the remote control device is located inside an arc of the first virtual arc surface, the screen device is located outside the arc of the first virtual arc surface, a central position of the first virtual arc surface is on the first reference line, and a tangent at the central position of the first virtual arc surface is perpendicular to the first reference line; and determine, based on the central position of the screen device and the first offset distance, a cursor position that is of a cursor corresponding to the remote control device and that is on the screen device.
  18. 18 . The non-transitory computer-readable storage medium according to claim 17 , wherein the first deflection angle comprises a first horizontal deflection angle and a first vertical deflection angle and, to determine the first deflection angle of the pointing direction of the remote control device relative to the first reference line, the processor is caused to: use an included angle between the pointing direction of the remote control device and a first reference plane as the first horizontal deflection angle, wherein the first reference plane is a plane that is perpendicular to a horizontal plane and that comprises the first reference line; and use an included angle between the pointing direction of the remote control device and a second reference plane as the first vertical deflection angle, wherein the second reference plane is a plane that is parallel to the horizontal plane and that comprises the first reference line.
  19. 19 . The non-transitory computer-readable storage medium according to claim 18 , wherein the first offset distance comprises a first horizontal offset distance and a first vertical offset distance and, to determine the first offset distance based on the first deflection angle and the first virtual arc surface, the processor is caused to: use a product of a radius length of the first virtual arc surface and the first horizontal deflection angle as the first horizontal offset distance; and use a product of the radius length of the first virtual arc surface and the first vertical deflection angle as the first vertical offset distance.
  20. 20 . The non-transitory computer-readable storage medium according to claim 18 , wherein the first offset distance comprises a first horizontal offset distance and a first vertical offset distance and, to determine the first offset distance based on the first deflection angle and the first virtual arc surface, the processor is caused to: use a product of a radius length of the first virtual arc surface and the first horizontal deflection angle as a second horizontal offset distance; use a product of a first horizontal adjustment ratio and the second horizontal offset distance as the first horizontal offset distance; use a product of the radius length of the first virtual arc surface and the first vertical deflection angle as the second vertical offset distance; and use a product of a first vertical adjustment ratio and the second vertical offset distance as the first vertical offset distance.

Description

CROSS-REFERENCE TO RELATED APPLICATIONS This application is a continuation of International Application No. PCT/CN2024/097873, filed on Jun. 6, 2024, which claims priority to Chinese Patent Application No. 202310909379.7, filed on Jul. 21, 2023. The disclosures of the aforementioned applications are hereby incorporated by reference in their entireties. TECHNICAL FIELD The present disclosure relates to the field of remote control device technologies, and in particular, to a cursor position determining method and a remote control device. BACKGROUND When a user controls a smart television by using a remote control device, if the remote control device is set to an air mouse mode, a cursor corresponding to the remote control device may be displayed on a screen of the smart television. When the user adjusts a position of the remote control device, the cursor on the screen of the smart television also moves correspondingly. Currently, a position relationship between the remote control device and the screen of the smart television affects a movement distance of the cursor on the screen of the smart television. How to make movement of the cursor on the screen of the smart television not affected by the position relationship between the remote control device and the screen of the smart television is an urgent problem to be resolved. SUMMARY This application provides a cursor position determining method and a remote control device, to resolve a problem that when a distance between the remote control device and a screen device varies or a pointing direction of the remote control device varies, if the remote control device is deflected by a same angle, a distance by which a cursor moves on the screen device varies. According to a first aspect, an embodiment of this application provides a cursor position determining method. The method includes: A remote control device determines a first deflection angle of a pointing direction of the remote control device relative to a first reference line when the pointing direction of the remote control device is deflected, where the first reference line is a connection line between a position of the remote control device and a central position of a screen device; the remote control device determines a first offset distance based on the first deflection angle and a first virtual arc surface, where the remote control device is located inside an arc of the first virtual arc surface, the screen device is located outside the arc of the first virtual arc surface, a central position of the first virtual arc surface is on the first reference line, and a tangent at the central position of the first virtual arc surface is perpendicular to the first reference line; and the remote control device determines, based on the central position of the screen device and the first offset distance, a cursor position that is of a cursor corresponding to the remote control device and that is on the screen device. In this method, when a distance between the remote control device and the screen device varies or the pointing direction of the remote control device varies, if the remote control device is deflected by a same angle, a distance by which the cursor moves on the screen device is still the same, so that a user can accurately control movement accuracy of the cursor. In this way, user experience is improved. In a possible embodiment, the first deflection angle includes a first horizontal deflection angle and a first vertical deflection angle. That the remote control device determines the first deflection angle of the pointing direction of the remote control device relative to the first reference line may include: The remote control device uses an included angle between the pointing direction of the remote control device and a first reference plane as the first horizontal deflection angle, where the first reference plane is a plane that is perpendicular to a horizontal plane and that includes the first reference line; and the remote control device uses an included angle between the pointing direction of the remote control device and a second reference plane as the first vertical deflection angle, where the second reference plane is a plane that is parallel to the horizontal plane and that includes the first reference line. According to this embodiment, a method for determining the first deflection angle is provided. In a possible embodiment, the first offset distance includes a first horizontal offset distance and a first vertical offset distance. That the remote control device determines the first offset distance based on the first deflection angle and the first virtual arc surface may include: The remote control device uses a product of a radius length of the first virtual arc surface and the first horizontal deflection angle as the first horizontal offset distance; and the remote control device uses a product of the radius length of the first virtual arc surface and the first vertical deflection angle a