A high-precision control method and device for mouse direction
By calculating the rotation center and path length of the mouse pointer, the problem of inaccurate cursor caused by the rotation of the mouse body is solved, and high-precision mouse direction control is achieved.
Patent Information
- Application Number
- CN202311282843.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-07
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2043-10-07
AI Technical Summary
When using a mouse to control the cursor, the cursor pointing is inaccurate due to the rotation of the mouse body, making it difficult to achieve high-precision direction control.
By obtaining the initial position and actual position of the mouse pointer, calculate the rotation angle of the mouse body, and determine the rotation center and path length of the mouse pointer based on the rotation angle, and then calculate the target position of the mouse pointer to avoid inaccurate cursor display due to rotation. question.
It achieves high-precision control of the mouse cursor, avoids the problem of inaccurate display caused by the rotation of the mouse body, and improves operation accuracy.
Smart Images

Figure CN117008741B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a high-precision control method and device for the direction of a mouse. Background Art
[0002] With the progress and development of science, electronic devices, such as computers, have become indispensable tools in our lives. There are many ways for people to interact with electronic devices, for example, a mouse device can be used to control a cursor on an electronic device to interact with the system.
[0003] When using the mouse to control the cursor, it is inevitable that the mouse will rotate to a certain extent, resulting in inaccurate pointing of the mouse cursor. Summary of the invention
[0004] The embodiments of the present invention provide a method and device for high-precision control of the direction of a mouse, aiming to solve or partially solve the problems existing in the above-mentioned background technology.
[0005] In order to solve the above-mentioned technical problems, the present invention is achieved as follows:
[0006] In a first aspect, the present application proposes a high-precision control method for the direction of a mouse, the method comprising: obtaining an initial position A of a mouse pointer ( , ), where the initial position A ( , ) is located in a display area, the display area having a first boundary and a second boundary arranged orthogonally, the initial position A ( , ) and the distance between the first boundary is , the initial position A ( , ) and the distance between the second boundary is ; Get the actual position B of the mouse pointer ( , ), the actual position B ( , ) is the position of the mouse pointer after the actual controlled movement; obtain the rotation angle of the mouse body during operation Based on the rotation angle , the initial position A ( , ) and the actual position B ( , ) determines the rotation center P of the mouse pointer ( , ) and the path length of the mouse pointer ,in, + = + ; Based on the path length , get the target position C of the mouse pointer ( , ), the target position C ( , ) is the position of the mouse pointer displayed in the display area.
[0007] In combination with the first aspect, in some feasible implementations, the mouse body includes a first laser sensor and a second laser sensor, and the acquisition of the rotation angle of the mouse body during operation , including: obtaining a starting position between the first sensor and the second sensor; obtaining an end position between the first sensor and the second sensor; obtaining a first rotation angle of the mouse body according to the starting position and the end position According to the first rotation angle Obtain the rotation angle of the mouse body during operation .
[0008] In combination with the first aspect, in some feasible implementations, the first rotation angle of the mouse body is obtained according to the starting position and the end position. , including: according to the starting position, obtaining a connection line between the first sensor and the second sensor at the starting position ;According to the end position, obtain the connection line between the first sensor and the second sensor at the end position ; According to the connection line With the connecting line The angle relationship between them obtains the first rotation angle of the mouse body .
[0009] In combination with the first aspect, in some feasible implementations, the mouse body further includes a single-axis gyroscope, the single-axis gyroscope having a measurement plane, the measurement plane coincides with the movement plane of the mouse body, and the first rotation angle is Obtain the rotation angle of the mouse body during operation , comprising: obtaining a second rotation angle from the single-axis gyroscope Based on the first rotation angle The second rotation angle , obtain the rotation angle of the mouse body during operation .
[0010] In combination with the first aspect, in some feasible implementations, the first rotation angle The second rotation angle , obtain the rotation angle of the mouse body during operation , including: obtaining the first rotation angle The second rotation angle The average value of the mouse body during operation is obtained according to the average value. .
[0011] In a second aspect, the present application proposes a high-precision control device for the direction of a mouse, comprising: a first pointer acquisition module, the first pointer acquisition module being used to acquire an initial position A ( , ), where the initial position A ( , ) is located in a display area, the display area having a first boundary and a second boundary arranged orthogonally, the initial position A ( , ) and the distance between the first boundary is , the initial position A ( , ) and the distance between the second boundary is ; A second pointer acquisition module, the second pointer acquisition module is used to obtain the actual position B of the mouse pointer ( , ), the actual position B ( , ) is the position of the mouse pointer after the actual controlled movement; a rotation angle acquisition module, which is used to rotate the angle during the operation of the mouse body ; A path confirmation module, the path confirmation module is used based on the rotation angle , the initial position A ( , ) and the actual position B ( , ) determines the rotation center P of the mouse pointer ( , ) and the path length of the mouse pointer ,in, + = + ; A display position acquisition module, the display position acquisition module is used to obtain the position of the display position based on the path length , get the target position C of the mouse pointer ( , ), the target position C ( , ) is the position of the mouse pointer displayed in the display area.
[0012] In combination with the second aspect, in some feasible implementations, the rotation angle acquisition module includes: a starting position acquisition module, the starting position acquisition module is used to acquire the starting position between the first sensor and the second sensor; an end position acquisition module, the end position acquisition module acquires the end position between the first sensor and the second sensor; a first rotation angle acquisition module, the first rotation angle acquisition module is used to acquire a first rotation angle of the mouse body according to the starting position and the end position ; A rotation angle confirmation module, the rotation angle confirmation module is used to confirm the rotation angle according to the first Obtain the rotation angle of the mouse body during operation .
[0013] In conjunction with the second aspect, in some feasible implementations, the first rotation angle acquisition module includes: a first connection line confirmation module, the first connection line confirmation module is used to obtain the connection line between the first sensor and the second sensor at the starting position according to the starting position. ; A second connection line confirmation module, the second connection line confirmation module is used to obtain the connection line between the first sensor and the second sensor at the end position according to the end position ; A calculation module, the calculation module is used according to the connection line With the connecting line The angle relationship between them obtains the first rotation angle of the mouse body .
[0014] In a third aspect, the present application proposes an electronic device, comprising a processor and a memory, wherein the memory is used to store a computer program; and the processor is used to load and execute the computer program to implement the method described in the first aspect.
[0015] In a fourth aspect, the present application proposes a computer-readable storage medium storing a computer program, characterized in that when the computer program is loaded and executed by a processor, the method described in the first aspect is implemented.
[0016] The present application proposes a high-precision control method for the direction of a mouse. First, the initial position A of the mouse pointer is obtained. , ), then, get the actual position B of the mouse pointer ( , ), then obtain the rotation angle of the mouse body during operation , then, based on the rotation angle , then, based on the initial position A ( , ) and the actual position B ( , ) Determine the rotation center P of the mouse pointer and the path length of the mouse pointer , and finally, based on the path length , and obtain the target position C of the mouse pointer. The high-precision control method of the mouse direction proposed in this application restores the path length along the rotation process of the mouse body. The moving mouse trajectory predicts the trajectory of the mouse moving along a straight line, avoiding the problem of inaccurate mouse cursor display caused by the rotation of the mouse body when operating the mouse. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 is a flow chart of a high-precision control method for the direction of a mouse in an embodiment of the present invention;
[0019] Figure 2 Schematic diagram of the initial point position in an embodiment of the present invention;
[0020] Figure 3 is a schematic diagram of a mouse pointer located at various points in an embodiment of the present invention;
[0021] Figure 4 Schematic diagram of the movement process of the mouse body in an embodiment of the present invention. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0023] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0024] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0025] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0026] See also Figure 1 , the present application proposes a high-precision control method for the mouse direction, the method comprising the following steps:
[0027] S101: Get the initial position A of the mouse pointer ( , ), where the initial position A ( , ) is located in a display area, the display area having a first boundary and a second boundary arranged orthogonally, the initial position A ( , ) and the distance between the first boundary is , the initial position A ( , ) and the distance between the second boundary is .
[0028] As an example, please refer to Figure 2In the embodiment of the present application, the display area may be, but is not limited to, a rectangular area, and two adjacent sides of the rectangular area may be respectively the first boundary S1 and the second boundary S2, so that the initial position of the mouse pointer in the display area may be represented as A ( , ); please refer to Figure 2 b, in the embodiment of the present application, when the display area is a rectangular area, the position of the mouse pointer can also be represented by a two-dimensional coordinate system established at the edge of the display area, that is, a vertex of the display area is used as the origin of the two-dimensional coordinate system (that is, point O), and the two sides of the display area passing through the aforementioned origin are respectively the X axis and the Y axis of the two-dimensional coordinate system, so that the initial position of the mouse pointer in the display area can be represented as the two-dimensional coordinate A ( , ); Of course, the initial position of the mouse pointer is A ( , ) can also be represented in other ways, which can be flexibly set by technicians in this field and are not limited here.
[0029] S102: Acquire the actual position B of the mouse pointer ( , ), the actual position B ( , ) is the position of the mouse pointer after actual controlled movement.
[0030] See also Figure 3 It can be understood that in this embodiment, a process of mouse movement is taken as an example, that is, in this embodiment, only the mouse is moved from the initial position A ( , ) starts the movement process. In this process, if the mouse follows the movement trajectory of the mouse body, it will move to the actual position B ( , ).
[0031] S103: Obtaining the rotation angle of the mouse during operation .
[0032] See also Figure 3 Since the influence on the mouse position is mainly caused by the rotation of the mouse when the wrist is used to control the mouse, the specific rotation angle of the mouse needs to be accurately measured in order to achieve more precise control of the mouse.
[0033] In some embodiments, see Figure 4 The mouse body includes a first sensor and a second sensor, and step S103 further includes the following steps:
[0034] S103 - 1 : Acquire a starting position between the first sensor and the second sensor.
[0035] S103-2: Acquire an end point position between the first sensor and the second sensor.
[0036] S103-3: Acquire a first rotation angle of the mouse body according to the starting position and the end position .
[0037] Specifically, as an implementation manner, step S103-3 includes the following steps:
[0038] S103-3-1: According to the starting position, obtain a connection line between the first sensor and the second sensor at the starting position .
[0039] S103-3-2: According to the end point position, obtain the connection line between the first sensor and the second sensor at the end point position .
[0040] S103-3-3: According to the connection line With the connecting line The angle relationship between them obtains the first rotation angle of the mouse body .
[0041] It can be understood that the first rotation angle That is, the connecting line With the connecting line The angle between the extended lines in the same plane. It should be noted that the angle is the connecting line With connecting wire The angle gradually increases from the overlapping state and 0°, and the angle can be an acute angle or an obtuse angle, which is not limited here.
[0042] S103-4: According to the first rotation angle Obtain the rotation angle of the mouse body during operation .
[0043] In some implementations, to obtain the mouse rotation angle More accurately, the mouse body further includes a single-axis gyroscope, the single-axis gyroscope has a measurement plane, and the measurement plane coincides with the movement plane of the mouse body. Step S103-4 further includes:
[0044] S103-4-1: Obtaining a second rotation angle from the single-axis gyroscope ;
[0045] S103-4-2: Based on the first rotation angle The second rotation angle , obtain the rotation angle of the mouse body during operation .
[0046] It can be understood that by introducing a gyroscope, the rotation angle of the mouse can be obtained more accurately.
[0047] Specifically, step S103-4-2 may include the following steps:
[0048] S103-4-2-1: Obtaining the first rotation angle The second rotation angle The average value of .
[0049] S103-4-2-2: Obtaining the rotation angle of the mouse body during operation according to the average value .
[0050] S:104: Based on the rotation angle , the initial position A ( , ) and the actual position B ( , ) determines the rotation center P of the mouse pointer ( , ) and the path length of the mouse pointer ,in, + = + .
[0051] Please refer again Figure 3 In this embodiment, due to the initial position A ( , ) and the actual position B ( , ) The coordinates of the point are known, and the rotation angle is also known , due to the initial position A ( , ) and the actual position B ( , ) is connected by rotation, and the initial position A ( , ) and the actual position B ( , ) are different points on the same circle, so the distance from point A to point P is equal to the distance from point B to point P, that is, + = + , further, the path length of the mouse pointer That is, it is the length of the arc between point A and point B with point P as the center.
[0052] S105: Based on the path length , get the target position C of the mouse pointer ( , ), the target position C ( , ) is the position of the mouse pointer displayed in the display area.
[0053] Understandably, the path length It is the path that the mouse follows as it moves. However, in order to avoid the influence caused by rotation, when the paths are equal, the target position should be extended along the perpendicular line between point A and point P. At the same time, the path length If the straight line distance from point A to point C remains unchanged, the length of the arc from point A to point B is the same, so the path length can be used to calculate the distance from point A to point C. With the coordinates of point A and point P, we get the coordinates of point C, the target position C ( , ) is to avoid the point displayed in the display area when the mouse rotates.
[0054] The present application proposes a high-precision control method for the direction of a mouse. First, the initial position A of the mouse pointer is obtained. , ), then, get the actual position B of the mouse pointer ( , ), then obtain the rotation angle of the mouse body during operation , then, based on the rotation angle , then, based on the initial position A ( , ) and the actual position B ( , ) Determine the rotation center P of the mouse pointer and the path length of the mouse pointer , and finally, based on the path length , obtaining the target position C of the mouse pointer. The high-precision control method for the mouse direction proposed in the present application avoids the problem of inaccurate display of the mouse cursor caused by the rotation of the mouse body when operating the mouse.
[0055] Based on the same inventive concept, the present application also proposes a high-precision control device for the direction of a mouse, comprising:
[0056] The first pointer acquisition module is used to acquire the initial position A of the mouse pointer ( , ), where the initial position A ( , ) is located in a display area, the display area having a first boundary and a second boundary arranged orthogonally, the initial position A ( , ) and the distance between the first boundary is , the initial position A ( , ) and the distance between the second boundary is ;
[0057] The second pointer acquisition module is used to acquire the actual position B of the mouse pointer ( , ), the actual position B ( , ) is the position of the mouse pointer after the actual controlled movement;
[0058] The rotation angle acquisition module is used to obtain the rotation angle of the mouse during operation. ;
[0059] A path confirmation module is used to confirm the path based on the rotation angle. , the initial position A ( , ) and the actual position B ( , ) determines the rotation center P of the mouse pointer ( , ) and the path length of the mouse pointer ,in, + = + ;
[0060] A display position acquisition module is used to obtain the position of the display position based on the path length. , get the target position C of the mouse pointer ( , ), the target position C ( , ) is the position of the mouse pointer displayed in the display area.
[0061] In some embodiments, comprising:
[0062] A starting position acquisition module, the starting position acquisition module is used to acquire a starting position between the first sensor and the second sensor;
[0063] An end point position acquisition module, wherein the end point position acquisition module acquires an end point position between the first sensor and the second sensor;
[0064] A first rotation angle acquisition module is used to acquire a first rotation angle of the mouse body according to the starting position and the end position. ;
[0065] A rotation angle confirmation module is used to confirm the rotation angle according to the first rotation angle. Obtain the rotation angle of the mouse body during operation .
[0066] In some implementations, the first rotation angle acquisition module includes:
[0067] A first connection line confirmation module is used to obtain a connection line between the first sensor and the second sensor at the starting position according to the starting position. ;
[0068] A second connection line confirmation module is used to obtain a connection line between the first sensor and the second sensor at the end position according to the end position. ;
[0069] A calculation module is used to calculate the With the connecting line The angle relationship between them obtains the first rotation angle of the mouse body .
[0070] The present application proposes a high-precision control device for the direction of a mouse. First, an initial position A of the mouse pointer is obtained. , ), then, get the actual position B of the mouse pointer ( , ), then obtain the rotation angle of the mouse body during operation , then, based on the rotation angle , then, based on the initial position A ( , ) and the actual position B ( , ) Determine the rotation center P of the mouse pointer and the path length of the mouse pointer , and finally, based on the path length , obtaining the target position C of the mouse pointer. The high-precision control method for the mouse direction proposed in the present application avoids the problem of inaccurate display of the mouse cursor caused by the rotation of the mouse body when operating the mouse.
[0071] Based on the same inventive concept, the present application also proposes an electronic device, including a processor and a memory, wherein:
[0072] The memory is used to store computer programs;
[0073] The processor is used to load and execute the computer program to implement the above-mentioned high-precision control method for the direction of a mouse.
[0074] Specifically, the processor, the memory, and the transceiver may be connected via a communication bus.
[0075] The following is a detailed introduction to the various components of electronic equipment:
[0076] The processor is the control center of the electronic device, which can be a processor or a general term for multiple processing elements. For example, the processor is one or more central processing units (CPUs), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention, such as one or more microprocessors (digital signal processors, DSPs), or one or more field programmable gate arrays (FPGAs).
[0077] Optionally, the processor can perform various functions of the electronic device by running or executing a software program stored in the memory, and calling data stored in the memory.
[0078] The memory is used to store the software program for executing the solution of the present invention, and the execution is controlled by the processor. The specific implementation method can refer to the above method embodiment, which will not be repeated here.
[0079] Optionally, the memory may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may be integrated with the processor, or may exist independently and be coupled to the processor through an interface circuit of the electronic device, which is not specifically limited in the embodiments of the present invention.
[0080] A transceiver is used to communicate with a network device or a terminal device.
[0081] Optionally, the transceiver may include a receiver and a transmitter, wherein the receiver is used to implement a receiving function, and the transmitter is used to implement a sending function.
[0082] Optionally, the transceiver may be integrated with the processor, or may exist independently and be coupled to the processor via an interface circuit of the router, which is not specifically limited in the embodiment of the present invention.
[0083] In addition, the technical effects of the electronic device can refer to the technical effects of the data transmission method described in the above method embodiment, and will not be repeated here.
[0084] It should be understood that the processor in the embodiment of the present invention may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0085] It should also be understood that the memory in the embodiments of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).
[0086] Based on the same inventive concept, the present application also proposes a computer-readable storage medium storing a computer program, characterized in that when the computer program is loaded and executed by a processor, the high-precision control method of the mouse direction as described above is implemented.
[0087] The above is a detailed introduction to a high-precision control method and device for the mouse direction provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A high-precision control method for mouse direction, characterized in that: The method comprises: Obtaining an initial position A(x1, y1) of the mouse pointer, wherein the initial position A(x1, y1) is located in a display area, the display area has a first boundary and a second boundary that are orthogonally arranged, the distance between the initial position A(x1, y1) and the first boundary is x1, and the distance between the initial position A(x1, y1) and the second boundary is y1; Obtaining the actual position B(x2, y2) of the mouse pointer, where the actual position B(x2, y2) is the position of the mouse pointer after the actual controlled movement; Obtaining a starting position between the first sensor and the second sensor; Acquire an end point position between the first sensor and the second sensor; According to the starting position, a connection line L between the first sensor and the second sensor at the starting position is obtained. A ; According to the end point position, obtain the connection line L between the first sensor and the second sensor at the end point position B ; According to the connecting line L A With the connecting line L B The first rotation angle θ2 of the mouse body is obtained by using the angle relationship between them; Obtaining a rotation angle θ1 of the mouse body during operation according to the first rotation angle θ2; Based on the rotation angle θ1, the initial position A (x1, y1) and the actual position B (x2, y2), the rotation center P (x0, y0) of the mouse pointer and the path length L of the mouse pointer are determined. X , where (x1-x0) 2 +(y1-y0) 2 =(x2-x0) 2 +(y2-y0) 2 ; Based on the path length L X , obtain the target position C (x3, y3) of the mouse pointer, wherein the target position C (x3, y3) is the position of the mouse pointer displayed in the display area, wherein the straight-line distance from the initial position A (x1, y1) to the target position C (x3, y3) is the same as the arc distance from the initial position A (x1, y1) to the actual position B (x2, y2).
2. A high-precision control method for mouse direction according to claim 1, characterized in that: The mouse body further includes a single-axis gyroscope, the single-axis gyroscope having a measurement plane, the measurement plane coincides with the movement plane of the mouse body, and the step of obtaining the rotation angle θ1 of the mouse body during operation according to the first rotation angle θ2 includes: Acquire a second rotation angle θ3 from the single-axis gyroscope; Based on the first rotation angle θ2 and the second rotation angle θ3, the rotation angle θ1 during the operation of the mouse body is acquired.
3. A high-precision control method for mouse direction according to claim 2, characterized in that: The step of obtaining the rotation angle θ1 of the mouse body during operation based on the first rotation angle θ2 and the second rotation angle θ3 includes: Obtaining an average value of the first rotation angle θ2 and the second rotation angle θ3; The rotation angle θ1 of the mouse body during operation is obtained according to the average value.
4. A high-precision control device for mouse direction, characterized in that: include: A first pointer acquisition module, the first pointer acquisition module is used to acquire an initial position A (x1, y1) of a mouse pointer, wherein the initial position A (x1, y1) is located in a display area, the display area has a first boundary and a second boundary that are orthogonally arranged, the distance between the initial position A (x1, y1) and the first boundary is x1, and the distance between the initial position A (x1, y1) and the second boundary is y1; A second pointer acquisition module, the second pointer acquisition module is used to acquire the actual position B (x2, y2) of the mouse pointer, the actual position B (x2, y2) being the position of the mouse pointer after the actual controlled movement; A rotation angle acquisition module, which is used to obtain a rotation angle θ1 during the operation of the mouse body; A path confirmation module, the path confirmation module is used to determine the rotation center P (x0, y0) of the mouse pointer and the path length L of the mouse pointer based on the rotation angle θ1, the initial position A (x1, y1) and the actual position B (x2, y2) X , where (x1-x0) 2 +(y1-y0) 2 =(x2-x0) 2 +(y2-y0) 2 ; A display position acquisition module is used to obtain the position of the display position based on the path length L X , obtain the target position C (x3, y3) of the mouse pointer, wherein the target position C (x3, y3) is the position of the mouse pointer displayed in the display area, wherein the straight-line distance from the initial position A (x1, y1) to the target position C (x3, y3) is the same as the arc distance from the initial position A (x1, y1) to the actual position B (x2, y2).
5. A high-precision mouse direction control device according to claim 4, characterized in that: The rotation angle acquisition module comprises: A starting position acquisition module, wherein the starting position acquisition module is used to acquire a starting position between the first sensor and the second sensor; An end point position acquisition module, wherein the end point position acquisition module acquires an end point position between the first sensor and the second sensor; A first rotation angle acquisition module, the first rotation angle acquisition module is used to acquire a first rotation angle θ2 of the mouse body according to the starting position and the end position; A rotation angle confirmation module is used to obtain a rotation angle θ1 during operation of the mouse body according to the first rotation angle θ2.
6. A high-precision control device for mouse direction according to claim 5, characterized in that: The first rotation angle acquisition module includes: A first connection line confirmation module is used to obtain a connection line L between the first sensor and the second sensor at the starting position according to the starting position. A ; A second connection line confirmation module is used to obtain a connection line L between the first sensor and the second sensor at the end position according to the end position. B ; A calculation module is used to calculate the connection line L A With the connecting line L B The first rotation angle θ2 of the mouse body is obtained based on the angular relationship between them.
7. An electronic device, characterized in that: comprising a processor and a memory, wherein: The memory is used to store computer programs; The processor is used to load and execute the computer program to implement the method according to any one of claims 1 to 3.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is loaded and executed by a processor, the method according to any one of claims 1 to 3 is implemented.
