Mouse movement speed adjustment method, device, and storage medium

CN115657869BActive Publication Date: 2026-09-18ZHEJIANG DAHUA TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211070920.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-31
Publication Date
2026-09-18
Estimated Expiration
2042-08-31

AI Technical Summary

Technical Problem

当进行不同的计算机应用时,对于鼠标移动速度的需求是不同的,如果每次都需要进入控制台进行鼠标速度调节,需要太多的时间和太多次试验鼠标速度的过程

Benefits of technology

[0008] The above solution determines the mouse's movement type by acquiring the first speed determined by distance and the second speed determined by displacement within a preset time period. Then, it selects the corresponding target speed based on the mouse's movement type to adjust the mouse's movement speed. This eliminates the need to enter the console to adjust the mouse speed, thus improving the efficiency of mouse speed adjustment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115657869B_ABST
    Figure CN115657869B_ABST
Patent Text Reader

Abstract

The application discloses a mouse moving speed adjustment method, device and storage medium. The mouse moving speed adjustment method comprises the following steps: acquiring a first speed and a second speed of a mouse in a preset time period, wherein the first speed is determined by a distance of the mouse in the preset time period, and the second speed is determined by a displacement of the mouse in the preset time period; determining a motion type of the mouse based on a size relationship between the first speed and the second speed; and selecting a target speed corresponding to the motion type from the first speed and the second speed, and adjusting the moving speed of the mouse. The above scheme can improve the efficiency of the mouse moving speed adjustment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method, device, and storage medium for adjusting mouse movement speed. Background Technology

[0002] In daily life and work, the use of the mouse is widespread. The mouse replaces the cumbersome keyboard commands, making computer operation much simpler. However, the mouse's movement speed often affects users' performance requirements. Currently, we mainly adjust the mouse speed by going to Start > Control Panel > Printers and Other Hardware Devices > Mouse, and then clicking "Apply." This process often requires several attempts to find a suitable speed. Different computer applications require different mouse speeds, and adjusting the speed in the control panel every time is time-consuming and involves too many trial and error attempts. Summary of the Invention

[0003] This application provides at least one method, device, and storage medium for adjusting mouse movement speed.

[0004] This application provides a method for adjusting mouse movement speed, including: obtaining a first speed and a second speed of the mouse within a preset time period, wherein the first speed is determined by the distance traveled by the mouse within the preset time period, and the second speed is determined by the displacement of the mouse within the preset time period; determining the movement type of the mouse based on the magnitude relationship between the first speed and the second speed; selecting a target speed corresponding to the movement type from the first speed and the second speed, and adjusting the movement speed of the mouse.

[0005] This application provides a mouse movement speed adjustment device, comprising: a movement speed acquisition module, used to acquire a first speed and a second speed of the mouse within a preset time period, wherein the first speed is determined by the distance traveled by the mouse within the preset time period, and the second speed is determined by the displacement of the mouse within the preset time period; a movement type determination module, used to determine the movement type of the mouse based on the magnitude relationship between the first speed and the second speed; and a movement speed adjustment module, used to select a target speed corresponding to the movement type from the first speed and the second speed, and adjust the movement speed of the mouse.

[0006] This application provides an electronic device, including a memory and a processor, wherein the processor is used to execute program instructions stored in the memory to implement the above-described mouse movement speed adjustment method.

[0007] This application provides a computer-readable storage medium storing program instructions thereon, which, when executed by a processor, implement the above-described mouse movement speed adjustment method.

[0008] The above solution determines the mouse's movement type by acquiring the first speed determined by distance and the second speed determined by displacement within a preset time period. Then, it selects the corresponding target speed based on the mouse's movement type to adjust the mouse's movement speed. This eliminates the need to enter the console to adjust the mouse speed, thus improving the efficiency of mouse speed adjustment.

[0009] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this application. Attached Figure Description

[0010] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with this application and, together with the specification, serve to explain the technical solutions of this application.

[0011] Figure 1 This is a flowchart illustrating an embodiment of the mouse movement speed adjustment method of this application;

[0012] Figure 2 This is a flowchart illustrating the process of determining a first sub-motion type in one embodiment of the mouse movement speed adjustment method of this application;

[0013] Figure 3 This is another flowchart illustrating an embodiment of the mouse movement speed adjustment method of this application;

[0014] Figure 4 This is a schematic diagram of an embodiment of the mouse movement speed adjustment device of this application;

[0015] Figure 5 This is a schematic diagram of the structure of an embodiment of the electronic device of this application;

[0016] Figure 6 This is a schematic diagram of the structure of an embodiment of the computer-readable storage medium of this application. Detailed Implementation

[0017] The embodiments of this application will now be described in detail with reference to the accompanying drawings.

[0018] In the following description, specific details such as particular system architectures, interfaces, and technologies are presented for illustrative purposes rather than for limiting purposes, in order to provide a thorough understanding of this application.

[0019] In this document, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " generally indicates that the preceding and following related objects have an "or" relationship. Furthermore, "many" in this document means two or more. Moreover, the term "at least one" in this document means any combination of at least two of any one or more of a plurality of objects. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C.

[0020] Please see Figure 1 , Figure 1 This is a flowchart illustrating an embodiment of the mouse movement speed adjustment method of this application. Figure 1 As shown in the embodiments of this disclosure, the mouse movement speed adjustment method may include the following steps:

[0021] Step S11: Obtain the first speed and the second speed of the mouse within a preset time period. The first speed is determined by the distance traveled by the mouse within the preset time period, and the second speed is determined by the displacement of the mouse within the preset time period.

[0022] For example, the first speed may be the average speed determined by the distance within a preset time period, and the second speed may be the average speed determined by the displacement within a preset time period.

[0023] Step S12: Determine the mouse motion type based on the relationship between the first speed and the second speed.

[0024] Generally, if the mouse moves in a single linear direction within a preset time period, the magnitudes of its first and second velocities should be equal. If the mouse moves back and forth within the preset time period, the distance traveled during that time period is greater than the corresponding displacement; in this case, the first velocity is greater than the second velocity. Alternatively, if the mouse moves in a curved path within the preset time period, the distance traveled during that time period is greater than the corresponding displacement; in this case, the first velocity is greater than the second velocity. Therefore, the relationship between the first and second velocities can be used to determine whether the mouse is moving in a single linear direction or engaging in other types of motion.

[0025] Step S13: Select the target speed corresponding to the motion type from the first speed and the second speed, and adjust the mouse movement speed.

[0026] Specifically, adjusting the mouse movement speed as described in this embodiment can be achieved by adjusting the mouse's dpi.

[0027] For example, a target speed can be preset for each type of movement. The correspondence between the target speed and the mouse movement speed can be predefined. After the target speed is determined, the mouse movement speed can be adjusted based on the correspondence between the target speed and the mouse movement speed.

[0028] The above solution determines the mouse's movement type by acquiring the first speed determined by distance and the second speed determined by displacement within a preset time period. Then, it selects the corresponding target speed based on the mouse's movement type to adjust the mouse's movement speed. This eliminates the need to enter the console to adjust the mouse speed, thus improving the efficiency of mouse speed adjustment.

[0029] In some disclosed embodiments, step S11 above may include the following steps:

[0030] The mouse's movement trajectory within a preset time period is obtained. Then, based on the movement trajectory, the mouse's distance traveled and displacement within the preset time period are determined. Finally, the quotient between the path length and the preset time period is used as the first velocity, and the quotient between the displacement and the preset time period is used as the second velocity.

[0031] Here, "motion trajectory" refers to the movement path of the mouse on the display screen. One way to determine the mouse's distance over a preset time period based on the motion trajectory is to divide the trajectory into numerous sub-segments, determine the length of each sub-segment, and add the lengths of all sub-segments together to obtain the corresponding distance. "Displacement" refers to the line connecting the starting and ending points of the motion trajectory.

[0032] In some disclosed embodiments, the motion type includes a first motion type and a second motion type. Step S12 above may include the following steps:

[0033] Obtain the target speed difference between the first speed and the second speed. In response to the target speed difference being less than or equal to a preset speed difference, determine the mouse movement type as the first movement type. Where the target speed difference between the first speed and the second speed is less than or equal to the preset speed difference, it can be considered that the mouse is performing unidirectional linear motion within a preset time period.

[0034] In response to a target speed difference exceeding a preset speed difference, the mouse movement type is determined to be the second movement type. Optionally, the second movement type includes a first sub-movement type and a second sub-movement type. Please also refer to... Figure 2 , Figure 2 This is a schematic flowchart illustrating the process of determining a first sub-motion type in one embodiment of the mouse movement speed adjustment method of this application. Figure 2 As shown, the way to determine the mouse's motion type as the second motion type in response to a target speed difference greater than a preset speed difference can be:

[0035] Step S21: In response to the target speed difference being greater than the preset speed difference, the preset time period is divided into a preset number of sub-time periods, and the displacement direction of the mouse in each sub-time period is determined.

[0036] The preset time period is divided into a preset number of sub-time periods. Each sub-time period corresponds to a sub-motion trajectory. The direction of the line connecting the start and end positions of each sub-motion trajectory is used as the displacement direction of the mouse within each sub-time period.

[0037] Optionally, the number of preset time periods can be customized by the user.

[0038] Step S22: Taking one of the displacement directions as the positive direction, classify each displacement direction based on the angle between each displacement direction and the positive direction to obtain several displacement directions belonging to positive displacement and several displacement directions belonging to negative displacement.

[0039] For example, displacement directions with an angle less than or equal to a preset angle relative to the positive direction are considered positive displacements, while displacement directions with an angle greater than the preset angle are considered negative displacements. The preset angle can be 90 degrees or the average of the angles between each displacement direction and the positive direction. Positive displacement directions may or may not include those selected as positive directions.

[0040] Step S23: In response to the fact that the distribution between the displacement directions belonging to positive displacement and the distribution between the displacement directions belonging to negative displacement satisfy the preset conditions, determine the mouse motion type as the first sub-motion type.

[0041] For example, determining whether the distribution between displacement directions belonging to positive displacement and the distribution between displacement directions belonging to negative displacement satisfy a preset condition can be done as follows:

[0042] Based on the displacement directions belonging to positive displacement, determine the positive average displacement direction. And based on the displacement directions belonging to negative displacement, determine the negative average displacement direction. For example, divide a preset time period t into 2n segments, designate a certain displacement direction as the positive direction, and let the positive displacements be &0, &1, ..., &n, and the negative displacements be -$0, -$1, ..., -$n. Calculate the positive average displacement direction &plus = (&0 + &1 + ... + &n) / n, and calculate the negative average displacement direction &minus = (-$0 - $1 - ... -$n) / n.

[0043] Based on the positive average displacement direction and all displacement directions belonging to positive displacement, the first standard deviation of the positive displacement is determined. Similarly, based on the negative average displacement direction and all displacement directions belonging to negative displacement, the second standard deviation of the negative displacement is determined. The methods for determining the first standard deviation of the positive displacement and all displacement directions belonging to positive displacement, and the methods for determining the second standard deviation of the negative displacement and all displacement directions belonging to negative displacement, are similar to those used in general statistics for calculating standard deviations, and will not be elaborated upon here.

[0044] In response to the fact that both the first and second standard deviations are less than a preset variance, it is determined that the distribution among the displacement directions belonging to positive displacement and the distribution among the displacement directions belonging to negative displacement satisfy a preset condition. For example, when both the first and second standard deviations are less than the preset variance, the mouse is likely to perform a reciprocating motion within a preset time period. That is, the first sub-motion type provided in this embodiment is a reciprocating motion type.

[0045] In some disclosed embodiments, in response to the fact that the distribution between displacement directions belonging to positive displacement and the distribution between displacement directions belonging to negative displacement do not meet a preset condition, the mouse movement type is determined to be a second sub-motion type. For example, in response to the fact that the first standard deviation and the second standard deviation are not both less than a preset variance, it is determined that the distribution between displacement directions belonging to positive displacement and the distribution between displacement directions belonging to negative displacement do not meet the preset condition.

[0046] In some disclosed embodiments, step S13 above may include the following steps:

[0047] In response to a motion type of either a first motion type or a first sub-motion type, a target speed is determined to be a first speed. And, in response to a motion type of either a second sub-motion type, a target speed is determined to be a second speed. Then, the product of the target speed and a preset conversion rate is used as the new mouse movement speed. For example, if the preset conversion rate is k, and the target speed is the first speed, the new mouse movement speed is the first speed * k; if the target speed is the second speed, the new mouse movement speed is the second speed * k. In some application scenarios, a preset time period is set for adjusting the mouse movement speed during movement, meaning the mouse movement speed is adjusted once every preset time period. An error range can also be set, which can be used to constrain the adjustable range of the new movement speed.

[0048] In some disclosed embodiments, the mouse movement speed adjustment method may further include the following steps:

[0049] In response to the second speed being a preset value, the step of multiplying the target speed by the preset conversion rate as the new mouse movement speed is not performed; instead, the preset movement speed is used as the new mouse movement speed. For example, the preset value can be 0, or other preset values ​​close to 0. If the mouse movement speed is the preset value, it may affect the user's normal mouse movement operation; therefore, a minimum allowed movement speed can be preset as the preset movement speed. When the second speed is 0, the preset movement speed is directly used as the new mouse movement speed.

[0050] To better understand the mouse movement speed adjustment method provided in this disclosure, please refer to... Figure 3 , Figure 3 This is another flowchart illustrating an embodiment of the mouse movement speed adjustment method of this application. Figure 3 As shown, the mouse movement speed adjustment method provided in this embodiment may include the following steps:

[0051] Step S31: Obtain the first and second speeds of the mouse within a preset time period.

[0052] The method for obtaining the first and second mouse speeds within a preset time period can be referred to above, and will not be repeated here.

[0053] Step S32: Obtain the target speed difference between the first speed and the second speed.

[0054] Step S33: In response to the target speed difference being less than or equal to the preset speed difference, determine the mouse movement type as the first movement type.

[0055] Step S34: Determine the target speed as the first speed, and adjust the mouse movement speed based on the first speed.

[0056] Step S35: In response to the target speed difference being greater than the preset speed difference, the preset time period is divided into a preset number of sub-time periods, and the displacement direction of the mouse in each sub-time period is determined.

[0057] Step S36: Taking one of the displacement directions as the positive direction, classify each displacement direction based on the angle between each displacement direction and the positive direction to obtain several displacement directions belonging to positive displacement and several displacement directions belonging to negative displacement.

[0058] Step S37: Determine the positive average displacement direction based on each displacement direction belonging to positive displacement; and determine the negative average displacement direction based on each displacement direction belonging to negative displacement.

[0059] The specific implementation of step S37 can be found above, and will not be repeated here.

[0060] Step S38: Determine the first standard deviation of the positive displacement based on the positive average displacement direction and each displacement direction belonging to the positive displacement; and determine the second standard deviation of the negative displacement based on the negative average displacement direction and each displacement direction belonging to the negative displacement.

[0061] The specific implementation of step S38 can be found above, and will not be repeated here.

[0062] Step S39: In response to the fact that both the first standard deviation and the second standard deviation are less than the preset variance, determine that the distribution between each displacement direction belonging to positive displacement and the distribution between each displacement direction belonging to negative displacement satisfy the preset condition.

[0063] Step S40: Determine the mouse motion type as the first sub-motion type.

[0064] After executing step S40, step S34 can be executed to adjust the mouse movement speed.

[0065] Step S41: In response to the fact that the first standard deviation and the second standard deviation are not both less than the preset variance, it is determined that the distribution between the displacement directions belonging to positive displacement and the distribution between the displacement directions belonging to negative displacement do not meet the preset conditions.

[0066] Step S42: Determine the mouse motion type as the second sub-motion type.

[0067] Step S43: Determine the target speed as the second speed, and adjust the mouse movement speed based on the second speed.

[0068] The above solution determines the mouse's movement type by acquiring the first speed determined by distance and the second speed determined by displacement within a preset time period. Then, it selects the corresponding target speed based on the mouse's movement type to adjust the mouse's movement speed. This eliminates the need to enter the console to adjust the mouse speed, thus improving the efficiency of mouse speed adjustment.

[0069] The execution entity of the mouse movement speed adjustment method can be a mouse movement speed adjustment device. For example, the mouse movement speed adjustment device can be a terminal device, a server, or other processing device. The terminal device can be a computer, laptop, network video recorder, user equipment (UE), mobile device, user terminal, terminal, cellular phone, cordless phone, personal digital assistant (PDA), handheld device, computing device, in-vehicle device, wearable device, etc. In some possible implementations, the mouse movement speed adjustment method can be implemented by the processor calling computer-readable instructions stored in memory.

[0070] Please see Figure 4 , Figure 4 This is a schematic diagram of an embodiment of the mouse movement speed adjustment device of this application. The mouse movement speed adjustment device 40 includes a movement speed acquisition module 41, a movement type determination module 42, and a movement speed adjustment module 43. The movement speed acquisition module 41 is used to acquire a first speed and a second speed of the mouse within a preset time period. The first speed is determined by the distance traveled by the mouse within the preset time period, and the second speed is determined by the displacement of the mouse within the preset time period. The movement type determination module 42 is used to determine the movement type of the mouse based on the magnitude relationship between the first speed and the second speed. The movement speed adjustment module 43 is used to select a target speed corresponding to the movement type from the first speed and the second speed, and adjust the movement speed of the mouse.

[0071] The above solution determines the mouse's movement type by acquiring the first speed determined by distance and the second speed determined by displacement within a preset time period. Then, it selects the corresponding target speed based on the mouse's movement type to adjust the mouse's movement speed. This eliminates the need to enter the console to adjust the mouse speed, thus improving the efficiency of mouse speed adjustment.

[0072] The functions of each module can be found in the embodiments of the mouse movement speed adjustment method, and will not be repeated here.

[0073] Please see Figure 5 , Figure 5 This is a schematic diagram of the structure of an embodiment of the electronic device of this application. The electronic device 50 includes a memory 51 and a processor 52. The processor 52 is used to execute program instructions stored in the memory 51 to implement the steps in any of the above embodiments of the mouse movement speed adjustment method. In a specific implementation scenario, the electronic device 50 may include, but is not limited to, a microcomputer or a server. In addition, the electronic device 50 may also include mobile devices such as laptops and tablets, which are not limited here.

[0074] Specifically, processor 52 controls itself and memory 51 to implement the steps in any of the mouse movement speed adjustment method embodiments described above. Processor 52 can also be referred to as a CPU (Central Processing Unit). Processor 52 may be an integrated circuit chip with signal processing capabilities. Processor 52 can also be a general-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor can be a microprocessor or any conventional processor. Furthermore, processor 52 can be implemented using integrated circuit chips.

[0075] The above solution determines the mouse's movement type by acquiring the first speed determined by distance and the second speed determined by displacement within a preset time period. Then, it selects the corresponding target speed based on the mouse's movement type to adjust the mouse's movement speed. This eliminates the need to enter the console to adjust the mouse speed, thus improving the efficiency of mouse speed adjustment.

[0076] Please see Figure 6 , Figure 6 This is a schematic diagram of the structure of an embodiment of the computer-readable storage medium of this application. The computer-readable storage medium 60 stores program instructions 61 that can be executed by a processor. The program instructions 61 are used to implement the steps in any of the above embodiments of the mouse movement speed adjustment method.

[0077] The above solution determines the mouse's movement type by acquiring the first speed determined by distance and the second speed determined by displacement within a preset time period. Then, it selects the corresponding target speed based on the mouse's movement type to adjust the mouse's movement speed. This eliminates the need to enter the console to adjust the mouse speed, thus improving the efficiency of mouse speed adjustment.

[0078] In some embodiments, the functions or modules of the apparatus provided in this disclosure can be used to perform the methods described in the above method embodiments. The specific implementation can be referred to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.

[0079] The description of the various embodiments above tends to emphasize the differences between the various embodiments. The similarities or similarities between them can be referred to, and for the sake of brevity, they will not be repeated here.

[0080] In the several embodiments provided in this application, it should be understood that the disclosed methods and apparatus can be implemented in other ways. For example, the apparatus implementations described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms.

[0081] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

Claims

1. A method for adjusting mouse movement speed, characterized in that, include: The first speed and the second speed of the mouse are obtained within a preset time period. The first speed is determined by the distance traveled by the mouse within the preset time period, and the second speed is determined by the displacement of the mouse within the preset time period. Obtain the target speed difference between the first speed and the second speed; In response to the target speed difference being less than or equal to a preset speed difference, the mouse's motion type is determined to be a first motion type; In response to the target speed difference being greater than the preset speed difference, the preset time period is divided into a preset number of sub-time periods. The displacement direction of the mouse within each sub-time period is determined. Taking one of the displacement directions as the positive direction, the displacement directions are classified based on the angle between each displacement direction and the positive direction to obtain several displacement directions belonging to positive displacement and several displacement directions belonging to negative displacement. Based on the distribution among the displacement directions belonging to positive displacement and the distribution among the displacement directions belonging to negative displacement, the motion type of the mouse is determined to be either the first sub-motion type or the second sub-motion type in the second motion type. Select the target speed corresponding to the motion type from the first speed and the second speed, and adjust the mouse movement speed accordingly.

2. The method according to claim 1, characterized in that, The determination of the mouse's motion type as either a first sub-motion type or a second sub-motion type within a second motion type, based on the distribution between the displacement directions belonging to positive displacement and the distribution between the displacement directions belonging to negative displacement, includes: In response to the fact that the distribution between the displacement directions belonging to positive displacement and the distribution between the displacement directions belonging to negative displacement satisfy a preset condition, the motion type of the mouse is determined to be a first sub-motion type; In response to the fact that the distribution between the displacement directions belonging to the positive displacement and the distribution between the displacement directions belonging to the negative displacement do not satisfy the preset condition, the motion type of the mouse is determined to be the second sub-motion type.

3. The method according to claim 2, characterized in that, Before determining the mouse motion type as a first sub-motion type when the distributions of the positive displacement and the negative displacement both satisfy preset conditions, the method further includes: Based on each of the displacement directions belonging to positive displacement, a positive average displacement direction is determined; and based on each of the displacement directions belonging to negative displacement, a negative average displacement direction is determined. Based on the positive average displacement direction and each of the displacement directions belonging to the positive displacement, a first standard deviation of the positive displacement is determined; and based on the negative average displacement direction and each of the displacement directions belonging to the negative displacement, a second standard deviation of the negative displacement is determined. In response to the fact that both the first standard deviation and the second standard deviation are less than the preset variance, it is determined that the distribution among the displacement directions belonging to positive displacement and the distribution among the displacement directions belonging to negative displacement satisfy the preset condition.

4. The method according to any one of claims 2-3, characterized in that, The step of selecting a target speed corresponding to the motion type from the first speed and the second speed, and adjusting the mouse movement speed, includes: In response to the motion type being a first motion type and a first sub-motion type, the target speed is determined to be the first speed, and in response to the motion type being the second sub-motion type, the target speed is determined to be the second speed; The product of the target speed and the preset conversion rate is used as the new movement speed of the mouse.

5. The method according to claim 4, characterized in that, The step of determining the target speed as the second speed in response to the motion type being the second sub-motion type includes: In response to the second speed being a preset value, the step of multiplying the target speed by the preset conversion rate as the new mouse movement speed is not performed, and the preset movement speed is used as the new mouse movement speed.

6. The method according to any one of claims 1-3, characterized in that, The process of obtaining the first and second speeds of the mouse within a preset time period includes: Obtain the movement trajectory of the mouse within the preset time period; The distance and displacement of the mouse within the preset time period are determined based on the motion trajectory. The quotient between the distance traveled and the preset time period is taken as the first speed, and the quotient between the displacement and the preset time period is taken as the second speed.

7. An electronic device, characterized in that, The method includes a memory and a processor, the processor being configured to execute program instructions stored in the memory to implement the method according to any one of claims 1 to 6.

8. A computer-readable storage medium having program instructions stored thereon, characterized in that, When the program instructions are executed by the processor, they implement the method described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Air mouse and methods and devices for controlling mouse pointer movement

    CN102262460A