Cursor movement control method and device, equipment, storage medium and product

By obtaining the reference position information and motion data of the trackball, determining the position accumulation data, and performing cursor movement control when it reaches the preset threshold, the problem of not being able to recognize fast movement and slow movement in the prior art is solved, and the cursor is improved Mobile control accuracy and user experience.

CN119440287APending Publication Date: 2025-02-14SINGULARITY PROXIMITY TECH (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411453694.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-17
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

The existing cursor movement control method through trackball cannot recognize fast movement and slow movement, which causes the cursor movement speed to not meet the user's expectations during scene conversion, reducing the user's user experience.

Method used

By obtaining the reference position information data and motion data of the trackball, the position accumulation data during the trackball movement is determined. Cursor movement control is performed when the position accumulation data is greater than the preset movement threshold. When the trackball stops moving, it is determined whether the position accumulated data reaches the preset low speed threshold and returns to the cursor movement control step when it reaches it.

Benefits of technology

It realizes the recognition and adaptation of fast and slow movement of trackball control, improving the accuracy and user experience of cursor movement control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119440287A_ABST
    Figure CN119440287A_ABST
Patent Text Reader

Abstract

The invention discloses a cursor movement control method and device, equipment, a storage medium and a product, and relates to the technical field of intelligent wearable device.The cursor movement control method comprises the steps that reference position information data of a trackball is acquired; determining position accumulation data in the movement process of the trackball based on the reference position information data and the movement data of the trackball; when the position accumulation data is larger than a preset movement threshold value, cursor movement control is carried out based on the position accumulation data; when the trackball stops moving, if the step of cursor movement control based on the position accumulation data is not triggered in the movement process of the trackball, whether the position accumulation data reaches a preset low-speed threshold value or not is judged; and if the preset low-speed threshold value is reached, returning to the step of performing cursor movement control based on the position accumulation data. Due to the fact that the preset low-speed threshold value and the preset moving threshold value are set, high-speed movement and low-speed movement controlled by the trackball are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of smart wearable devices, and in particular to cursor movement control methods, devices, equipment, storage media and products. Background Art

[0002] Due to the intuitiveness and convenience of the cursor, it provides a convenient and fast human-computer interaction method for various devices such as AR glasses and computers, allowing users to interact with virtual information more naturally and efficiently. Generally speaking, the cursor control method can include mouse control, trackball control, etc.

[0003] Traditional mouse control methods require users to frequently move their arms or wrists to control the cursor, which has low control accuracy and is prone to fatigue and even health problems after long-term use. Although the trackball method has higher control accuracy, the traditional trackball control method cannot identify fast and slow movements, resulting in the cursor moving speed not meeting the user's expectations when the control scene changes, reducing the user experience. Summary of the invention

[0004] The main purpose of the present application is to provide a cursor movement control method, device, equipment, storage medium and product, aiming to solve the technical problem that the existing cursor movement control method using a trackball cannot identify fast movement and slow movement.

[0005] To achieve the above object, the present application proposes a cursor movement control method, the cursor movement control method comprising:

[0006] Obtaining reference position information data of the trackball;

[0007] Determine the position accumulation data of the trackball during the movement process based on the reference position information data and the trackball movement data;

[0008] When the position accumulated data is greater than a preset movement threshold, controlling cursor movement based on the position accumulated data;

[0009] When the trackball stops moving, if the step of controlling the cursor movement based on the position accumulated data is not triggered during the movement of the trackball, determining whether the position accumulated data reaches a preset low-speed threshold;

[0010] If the preset low speed threshold is reached, the process returns to the step of controlling the cursor movement based on the position accumulation data.

[0011] In one embodiment, the step of determining the position accumulation data during the movement of the trackball based on the reference position information data and the trackball movement data comprises:

[0012] Determining a position accumulation period during the movement of the trackball based on a data reporting period of the trackball;

[0013] Acquiring current relevant position data of the trackball within a current position accumulation period;

[0014] Determine the current trackball motion data within the current position accumulation period based on the current relevant position data and the relevant position data of the previous period;

[0015] The initial position accumulation data is iteratively updated according to the current trackball motion data to obtain updated position accumulation data.

[0016] In one embodiment, the step of iteratively updating the initial position accumulation data according to the current trackball motion data to obtain updated position accumulation data includes:

[0017] Determining a current trackball motion direction of the current position accumulation period based on the current trackball motion data;

[0018] Determining the historical trackball movement direction of the trackball based on the historical trackball displacement corresponding to the initial position accumulation data;

[0019] If the current trackball movement direction is consistent with the historical trackball movement direction, then accumulating the current trackball movement data and the historical trackball displacement to obtain updated position accumulation data;

[0020] If the current trackball movement direction is inconsistent with the historical trackball movement direction, the current trackball movement data is used as updated position accumulation data.

[0021] In one embodiment, after the step of iteratively updating the position accumulation data according to the current trackball motion data to obtain the updated position accumulation data, the method further includes:

[0022] When the position accumulation data is not greater than the preset movement threshold, the method returns to the step of obtaining the current relevant position data of the trackball in the current position accumulation period in the next position accumulation period.

[0023] In one embodiment, the method further comprises:

[0024] If the step of controlling the cursor movement based on the position accumulated data is triggered, initializing the position accumulated data;

[0025] When the initialization of the position accumulation data is completed, the current trackball movement process ends.

[0026] In one embodiment, the step of obtaining current relevant position data of the trackball within a current position accumulation period includes:

[0027] Acquiring initial relevant position data of the trackball within a current position accumulation period;

[0028] The initial relevant position data is filtered to obtain current relevant position data.

[0029] In addition, to achieve the above-mentioned purpose, the present application also proposes a cursor movement control device, the cursor movement control device comprising:

[0030] A data acquisition module, used for acquiring reference position information data of the trackball;

[0031] A data accumulation module, configured to determine the position accumulation data during the movement of the trackball based on the reference position information data and the trackball movement data;

[0032] A cursor control module, configured to control cursor movement based on the position accumulated data when the position accumulated data is greater than a preset movement threshold;

[0033] a speed determination module, configured to determine whether the position accumulated data reaches a preset low speed threshold when the trackball stops moving and if the step of controlling the cursor movement based on the position accumulated data is not triggered during the movement of the trackball;

[0034] The cursor control module is further configured to return to the step of controlling cursor movement based on the position accumulation data if the preset low speed threshold is reached.

[0035] In addition, to achieve the above-mentioned purpose, the present application also proposes a cursor movement control device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the cursor movement control method described above.

[0036] In addition, to achieve the above objectives, the present application also proposes a storage medium, which is a computer-readable storage medium, and stores a computer program on the storage medium. When the computer program is executed by a processor, the steps of the cursor movement control method described above are implemented.

[0037] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the cursor movement control method described above are implemented.

[0038] One or more technical solutions proposed in this application have at least the following technical effects:

[0039] The present application obtains the reference position information data of the trackball; determines the position accumulation data during the movement of the trackball based on the reference position information data and the trackball movement data; performs cursor movement control based on the position accumulation data when the position accumulation data is greater than a preset movement threshold; when the trackball stops moving, if the step of performing cursor movement control based on the position accumulation data is not triggered during the movement of the trackball, then determines whether the position accumulation data reaches a preset low-speed threshold; if the preset low-speed threshold is reached, then returns to the step of performing cursor movement control based on the position accumulation data. By setting the preset low-speed threshold, when the position accumulation data of the trackball does not reach the preset movement threshold, it is determined whether the preset low-speed threshold is reached; if it is reached, the cursor movement is controlled according to the position accumulation data, thereby realizing fast movement and slow movement of the trackball control. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0041] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0042] Figure 1 A flowchart of the first embodiment of the cursor movement control method of the present application is provided;

[0043] Figure 2 A flow chart of the second embodiment of the cursor movement control method of the present application;

[0044] Figure 3 A flowchart of the third embodiment of the cursor movement control method of the present application is provided;

[0045] Figure 4 This is a schematic diagram of the module structure of the cursor movement control device according to an embodiment of the present application;

[0046] Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the cursor movement control method in the embodiment of the present application.

[0047] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0048] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0049] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0050] The main solution of the embodiment of the present application is: obtaining reference position information data of the trackball; determining the position accumulation data during the movement of the trackball based on the reference position information data and the trackball movement data; when the position accumulation data is greater than a preset movement threshold, controlling the cursor movement based on the position accumulation data; when the trackball stops moving, if the step of controlling the cursor movement based on the position accumulation data is not triggered during the movement of the trackball, determining whether the position accumulation data reaches a preset low-speed threshold; if the preset low-speed threshold is reached, returning to the step of controlling the cursor movement based on the position accumulation data.

[0051] In the prior art, the method of controlling cursor movement by a trackball uses the same control sensitivity in different scenes, which results in the cursor moving distance and moving speed failing to meet user expectations when the scenes are switched.

[0052] The present application provides a solution, which is to obtain position accumulation data by accumulating the position data of the trackball during its movement; when the position accumulation data is greater than a preset movement threshold, the cursor movement is controlled based on the position accumulation data; if the cursor movement based on the position accumulation data has not been triggered in the process from the start of the movement to the stop of the movement of the trackball, it is determined whether the position accumulation data reaches a preset low-speed threshold; when the preset low-speed threshold is reached, the cursor movement is returned to the step of controlling the cursor movement based on the position accumulation data to achieve the control of the cursor. By setting different thresholds for fast movement and slow movement, the adaptability of the cursor movement control to the scene is improved.

[0053] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a data processing terminal of AR glasses, a server, etc., or an electronic device, a virtual device, etc. that can realize the above functions. The following takes a cursor movement control device (hereinafter referred to as a control device) as an example to illustrate this embodiment and the following embodiments.

[0054] Based on this, the embodiment of the present application provides a cursor movement control method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the cursor movement control method of the present application.

[0055] In this embodiment, the cursor movement control method includes:

[0056] Step S20, determining the position accumulation data during the movement of the trackball based on the reference position information data and the trackball movement data;

[0057] In some implementations of the present application, the reference position information of the trackball may represent the initial position information or reference position information of the trackball during the user's current command input process. It is understood that the reference position information of the trackball may be the position information represented by the trackball before the user manipulates the trackball to move.

[0058] In some implementations of the embodiments of the present application, the above-mentioned reference position information data can be the initial position information data of the trackball before the user slides the trackball, or the initial position information data of the trackball before it starts moving, and the embodiments of the present application are not limited to this.

[0059] In an implementation manner of the embodiment of the present application, before step S20, the following may be included: step S10, acquiring reference position information data of the trackball.

[0060] It is understandable that the above-mentioned position accumulation data is also the trackball motion data accumulated during the trackball motion process. Exemplarily, the trackball continuously rolls in a certain direction, and the trackball motion data generated by the rolling can be recorded. In some embodiments, the trackball motion data can be used as data for controlling the change of the cursor position.

[0061] In an implementation of the embodiment of the present application, the entire process from when the user starts sliding the trackball to when the user stops sliding the trackball can be divided into several trackball movement processes.

[0062] It should be noted that, in order to realize the movement control of the cursor, a mapping between the trackball movement data and the cursor movement data is provided in the embodiment of the present application. For the movement process of the trackball, when the position of the trackball reaches a preset movement threshold during the movement process, the corresponding direction and distance of the cursor movement can be controlled based on the mapping relationship between the preset movement threshold and the cursor movement data. That is, in step S30, when the position accumulation data is greater than the preset movement threshold, the cursor movement control is performed based on the position accumulation data.

[0063] It can be understood that the embodiments of the present application do not limit the specific value of the preset movement threshold and the specific correspondence between the trackball motion data and the cursor movement data, and can be modified according to the sensitivity requirements in actual applications.

[0064] In one implementation of the embodiment of the present application, when the control device has performed cursor movement control based on the position accumulation data, the position accumulation data can be initialized to enter the next trackball movement process. Specifically, the method also includes:

[0065] If the step of controlling the cursor movement based on the position accumulation data is triggered, the position accumulation data is initialized;

[0066] When the position accumulation data initialization is completed, the current trackball movement process ends.

[0067] In an implementation of the embodiment of the present application, there may be a situation that the position accumulation data does not exceed the preset movement threshold value during the entire process from the user starting to slide the trackball to the user stopping sliding the trackball. In this case, there is only one trackball movement process, that is, the entire process from the user starting to slide the trackball to the user stopping sliding the trackball.

[0068] Based on the above situation, in the embodiment of the present application, the method further includes:

[0069] Step S40, when the trackball stops moving, if the step of controlling the cursor movement based on the position accumulation data is not triggered during the movement of the trackball, it is determined whether the position accumulation data reaches a preset low-speed threshold.

[0070] Step S50: if the preset low speed threshold is reached, the process returns to the step of controlling the cursor movement based on the position accumulation data.

[0071] It should be noted that in different application interfaces of AR glasses or computers, the corresponding interface resolution, button quantity, button size, etc. are different, so the cursor sensitivity requirements in different application interfaces are also different. For different application interfaces, the corresponding preset movement thresholds can be the same or different, and the embodiments of the present application are not limited to this.

[0072] For example, when AR glasses are used, one application scenario is data input through a virtual keyboard, and another application scenario is the selection of an application mode.

[0073] In one implementation of the embodiment of the present application, for different application interfaces, the corresponding trackball sensitivity may be different, that is, the preset movement thresholds corresponding to different application interfaces are different. At the same time, a preset low-speed threshold may be set for each application interface. The preset low-speed threshold may be the preset movement threshold corresponding to the previous application interface after the application interface is switched, or may be a set dynamic value, such as one tenth of the preset movement threshold of the current application interface after the application interface is switched, or a fixed value, which is not limited by the embodiment of the present application.

[0074] It is understandable that, for application interfaces that require fine control, such as data input through a virtual keyboard, the number of interactive buttons included is relatively large, the button size is relatively small, and the button layout is relatively dense; while for application interfaces that do not require fine control, such as application mode selection, the number of interactive buttons included is relatively small, the button size is relatively large, and the button layout is relatively sparse. The control sensitivity of the trackball in the application interface that requires fine control needs to be lower than that of the application interface that does not require fine control. However, when switching from an application interface that requires fine control to an application interface that does not require fine control, due to the user's operating habits, the user may still control the cursor in the same way as the previous application interface (that is, the application interface that requires fine control). In this way, the accumulated position data generated by the user sliding the trackball may not reach the preset movement threshold of the current application interface (that is, the application interface that does not require fine control). In this case, the cursor cannot move with the user's control, resulting in the cursor moving distance and moving speed not being able to meet the user's expectations when the scene is switched, which reduces the user's experience and even causes the user to misunderstand that the device is damaged.

[0075] The embodiment of the present application obtains the reference position information data of the trackball; determines the position accumulation data during the movement of the trackball based on the reference position information data and the trackball movement data; when the position accumulation data is greater than the preset movement threshold, controls the movement of the cursor based on the position accumulation data; when the trackball stops moving, if the step of controlling the movement of the cursor based on the position accumulation data is not triggered during the movement of the trackball, determines whether the position accumulation data reaches the preset low-speed threshold; if the preset low-speed threshold is reached, returns to the step of controlling the movement of the cursor based on the position accumulation data. By setting the preset low-speed threshold, when the position accumulation data of the trackball does not reach the preset movement threshold, determines whether the preset low-speed threshold is reached; if the preset low-speed threshold is reached, controls the movement of the cursor based on the position accumulation data, thereby realizing fast movement and slow movement of the trackball control.

[0076] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 In an embodiment of the present application, the step of determining the position accumulation data during the movement of the trackball based on the reference position information data and the trackball movement data includes:

[0077] Step S22, obtaining current relevant position data of the trackball within the current position accumulation period;

[0078] Step S23, determining the current trackball motion data within the current position accumulation period based on the current relevant position data and the relevant position data of the previous period;

[0079] Step S24, iteratively updating the initial position accumulation data according to the current trackball motion data to obtain updated position accumulation data.

[0080] In practical applications, the trackball can send position information data to the control device at intervals of a preset time period. In some embodiments of the present application, the step S21 is also included, determining the position accumulation period of the trackball during the movement process based on the data reporting period of the trackball. The time length of the above data reporting period is the above interval preset time period.

[0081] It is understandable that, in the overall process from the user starting to slide the trackball to the user stopping sliding the trackball, there may be several continuous data reporting cycles, during which the trackball will report the current relevant position data to the control device. Similarly, the control device has a position accumulation cycle of the same length corresponding to the data reporting cycle of the trackball. In each position accumulation cycle, the control device can determine the current trackball motion data in the current compensation accumulation cycle based on the received current relevant position data and the relevant position data of the previous cycle.

[0082] It should be noted that, during the entire process of the trackball movement, the control device is provided with a position accumulation data, and the position accumulation data can record the movement stroke of the trackball when the user slides the trackball. Before the trackball moves, the control device can initialize the position accumulation data. During the entire process of the trackball movement, the control device can accumulate the trackball displacement generated in a position accumulation cycle to update the position accumulation data, and use the iteratively updated position accumulation data as the initial position accumulation data of the next position accumulation cycle, thereby accumulating the trackball displacement in each position accumulation cycle during the entire process of the trackball movement.

[0083] In an implementation of the embodiment of the present application, the step of iteratively updating the initial position accumulated data according to the current trackball motion data to obtain the updated position accumulated data includes:

[0084] Determine the current trackball motion direction of the current position accumulation period based on the current trackball motion data;

[0085] Determine the historical trackball movement direction of the trackball based on the historical trackball displacement corresponding to the initial position accumulation data;

[0086] If the current trackball movement direction is consistent with the historical trackball movement direction, the current trackball movement data and the historical trackball displacement are accumulated to obtain updated position accumulation data;

[0087] If the current trackball movement direction is inconsistent with the historical trackball movement direction, the current trackball movement data is used as updated position accumulation data.

[0088] It should be noted that there may be some misoperations during the process of the user controlling the trackball movement. For example, during the current position accumulation period, the current trackball movement data determined by the control device is -10mm, while the position accumulation data recorded by the control device at this time is 10mm. In this case, directly accumulating the trackball displacements of the two position accumulation periods will result in the final cursor movement not meeting the user's expectations.

[0089] In the embodiment of the present application, the motion direction of the trackball in the current position accumulation period can be determined based on the current trackball motion data; and the motion direction of the trackball in the historical position accumulation period can be determined based on the historical trackball displacement corresponding to the initial position accumulation data. By comparing the current trackball motion direction with the historical trackball motion direction, when the directions are consistent, the current trackball motion data and the historical trackball displacement can be accumulated to obtain updated position accumulation data; when the directions are inconsistent, the historical trackball displacement can be considered as the displacement caused by misoperation, and the current trackball motion data can be directly used as the updated position accumulation data.

[0090] The embodiment of the present application determines the position accumulation period of the trackball during the movement process based on the data reporting period of the trackball; obtains the current relevant position data of the trackball in the current position accumulation period; determines the current trackball movement data in the current position accumulation period based on the current relevant position data and the relevant position data of the previous period; determines the current trackball movement direction of the current position accumulation period based on the current trackball movement data; determines the historical trackball movement direction of the trackball based on the historical trackball displacement corresponding to the initial position accumulation data; if the current trackball movement direction is consistent with the historical trackball movement direction, the current trackball movement data and the historical trackball displacement are accumulated to obtain the updated position accumulation data; if the current trackball movement direction is inconsistent with the historical trackball movement direction, the current trackball movement data is used as the updated position accumulation data. Since the movement direction of the trackball in the current position accumulation period and the historical position accumulation period is compared, the erroneous operation in the cursor control is filtered, and the accuracy of the cursor control is improved.

[0091] Based on the first embodiment and / or the second embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those of the above-mentioned first embodiment and / or the second embodiment can refer to the above introduction, and will not be repeated later. Figure 3 The step of obtaining the current relevant position data of the trackball within the current position accumulation period includes:

[0092] Step S100, obtaining initial relevant position data of the trackball in the current position accumulation period;

[0093] Step S200, filtering the initial relevant position data to obtain current relevant position data.

[0094] It is understandable that during the movement of the trackball, due to reasons such as sensor accuracy and environmental interference, certain noise may exist in the acquired initial relevant position data, thereby causing deviation in the position data and affecting the accuracy of cursor control.

[0095] It should be noted that, in order to avoid interference of noise data on cursor control, the embodiment of the present application can filter the data when the initial relevant position data is acquired to obtain the current relevant position data.

[0096] In an implementation of the embodiment of the present application, after the step of iteratively updating the position accumulated data according to the current trackball motion data to obtain the updated position accumulated data, the method further includes:

[0097] When the position accumulation data is not greater than the preset movement threshold, the method returns to the step of obtaining the current relevant position data of the trackball in the current position accumulation period in the next position accumulation period.

[0098] It is understandable that when the position accumulation data is not greater than the preset movement threshold, the position information data received in the next position accumulation period can be waited for accumulation until the position accumulation data is greater than the preset movement threshold or the trackball no longer reports position information data.

[0099] The low-speed judgment logic of the embodiment of the present application solves the problem that the user operates the trackball, but the stroke of the operation trackball is short and does not reach the preset movement threshold of the moving cursor, resulting in the cursor not moving, and the user feels that the operation is not effective. The present application observes similar events in actual applications and knows that when the user does not get feedback in one operation (i.e., the first position accumulation period), the user usually performs a second operation (i.e., the second position accumulation period). Therefore, when the trackball stroke is too short and no feedback is obtained, the current trackball rolling direction and rolling stroke relative to the trackball before this operation (i.e., the current trackball movement direction and current trackball movement data) are recorded. In the second operation, it is first determined whether the rolling direction is consistent with the first operation; when the trackball rolling direction of the second operation is consistent with the trackball rolling direction of the first operation, the rolling stroke of the second operation is accumulated on the basis of the rolling stroke of the first operation, and the cursor movement is triggered when the rolling stroke reaches the preset movement threshold. At the same time, the position of the trackball when the cursor moves is used as the reference position of the next cursor movement (i.e., the reference position information data), and the accumulated rolling stroke is initialized to perform the next operation judgment. When the trackball rolling directions of the first operation and the second operation are inconsistent, the data of the first operation is not referenced. The position information of the trackball before the second operation is used as the reference position information data, and the displacement in the operation is used as the position accumulation data to determine whether the trackball operation reaches the cursor movement threshold.

[0100] The embodiment of the present application obtains the initial relevant position data of the trackball within the current position accumulation period and performs filtering on the initial relevant position data to obtain the current relevant position data. Since the position data is filtered, the accuracy of cursor control is improved.

[0101] This application also provides a cursor movement control device, please refer to Figure 4 , the cursor movement control device comprises:

[0102] A data acquisition module 10 is used to acquire reference position information data of the trackball;

[0103] A data accumulation module 20, for determining position accumulation data during the movement of the trackball based on the reference position information data and the trackball movement data;

[0104] A cursor control module 30, configured to control cursor movement based on the position accumulation data when the position accumulation data is greater than a preset movement threshold;

[0105] The speed determination module 40 is used to determine whether the position accumulation data reaches a preset low speed threshold when the trackball stops moving and if the step of controlling the cursor movement based on the position accumulation data is not triggered during the movement of the trackball;

[0106] The cursor control module 30 is further configured to return to the step of controlling the cursor movement based on the position accumulation data if a preset low speed threshold is reached.

[0107] The cursor movement control device provided by the present application adopts the cursor movement control method in the above embodiment, which can solve the technical problem that the existing cursor movement control method using a trackball cannot identify fast movement and slow movement. Compared with the prior art, the beneficial effects of the cursor movement control device provided by the present application are the same as the beneficial effects of the cursor movement control method provided by the above embodiment, and other technical features in the cursor movement control device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0108] The present application provides a cursor movement control device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the cursor movement control method in the above-mentioned embodiment 1.

[0109] Reference below Figure 5 , which shows a schematic diagram of the structure of a cursor movement control device suitable for implementing the embodiment of the present application. The cursor movement control device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The cursor movement control device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0110] like Figure 5As shown, the cursor movement control device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the cursor movement control device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the cursor movement control device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a cursor movement control device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0111] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0112] The cursor movement control device provided by the present application adopts the cursor movement control method in the above embodiment, which can solve the technical problem that the existing cursor movement control method using a trackball cannot identify fast movement and slow movement. Compared with the prior art, the beneficial effects of the cursor movement control device provided by the present application are the same as the beneficial effects of the cursor movement control method provided by the above embodiment, and other technical features in the cursor movement control device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0113] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0114] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0115] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the cursor movement control method in the above-mentioned embodiment.

[0116] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0117] The computer-readable storage medium may be included in the cursor movement control device; or may exist independently without being assembled into the cursor movement control device.

[0118] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the cursor movement control device, the cursor movement control device:

[0119] Obtaining reference position information data of the trackball;

[0120] Determine the position accumulation data of the trackball during the movement process based on the reference position information data and the trackball movement data;

[0121] When the position accumulated data is greater than a preset movement threshold, the cursor movement control is performed based on the position accumulated data;

[0122] When the trackball stops moving, if the step of controlling the cursor movement based on the position accumulation data is not triggered during the movement of the trackball, determining whether the position accumulation data reaches a preset low-speed threshold;

[0123] If the preset low speed threshold is reached, the process returns to the step of controlling the cursor movement based on the position accumulation data.

[0124] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0125] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0126] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0127] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned cursor movement control method, and can solve the technical problem that the existing cursor movement control method using a trackball cannot identify fast movement and slow movement. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the cursor movement control method provided by the above-mentioned embodiment, and will not be repeated here.

[0128] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned cursor movement control method when executed by a processor.

[0129] The computer program product provided by the present application can solve the technical problem that the existing method for controlling cursor movement through a trackball cannot identify fast movement and slow movement. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the method for controlling cursor movement provided by the above embodiment, and will not be described in detail here.

[0130] The above are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect application in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A cursor movement control method, characterized in that: The method comprises: Obtaining reference position information data of the trackball; Determine the position accumulation data of the trackball during the movement process based on the reference position information data and the trackball movement data; When the position accumulated data is greater than a preset movement threshold, controlling cursor movement based on the position accumulated data; When the trackball stops moving, if the step of controlling the cursor movement based on the position accumulated data is not triggered during the movement of the trackball, determining whether the position accumulated data reaches a preset low-speed threshold; If the preset low speed threshold is reached, the process returns to the step of controlling the cursor movement based on the position accumulation data.

2. The cursor movement control method according to claim 1, characterized in that: The step of determining the position accumulation data during the movement of the trackball based on the reference position information data and the trackball movement data comprises: Acquiring current relevant position data of the trackball within a current position accumulation period; Determine the current trackball motion data within the current position accumulation period based on the current relevant position data and the relevant position data of the previous period; The initial position accumulation data is iteratively updated according to the current trackball motion data to obtain updated position accumulation data.

3. The cursor movement control method according to claim 2, characterized in that: The step of iteratively updating the initial position accumulated data according to the current trackball motion data to obtain updated position accumulated data comprises: Determining a current trackball motion direction of the current position accumulation period based on the current trackball motion data; Determining the historical trackball movement direction of the trackball based on the historical trackball displacement corresponding to the initial position accumulation data; If the current trackball movement direction is consistent with the historical trackball movement direction, then accumulating the current trackball movement data and the historical trackball displacement to obtain updated position accumulation data; If the current trackball movement direction is inconsistent with the historical trackball movement direction, the current trackball movement data is used as updated position accumulation data.

4. The cursor movement control method according to claim 2, characterized in that: After the step of iteratively updating the position accumulation data according to the current trackball motion data to obtain the updated position accumulation data, the method further includes: When the position accumulation data is not greater than the preset movement threshold, the method returns to the step of obtaining the current relevant position data of the trackball in the current position accumulation period in the next position accumulation period.

5. The cursor movement control method according to any one of claims 1 to 4, characterized in that: The method further comprises: If the step of controlling the cursor movement based on the position accumulated data is triggered, initializing the position accumulated data; When the initialization of the position accumulation data is completed, the current trackball movement process ends.

6. The cursor movement control method according to claim 2, characterized in that: The step of obtaining current relevant position data of the trackball within a current position accumulation period includes: Acquiring initial relevant position data of the trackball within a current position accumulation period; The initial relevant position data is filtered to obtain current relevant position data.

7. A cursor movement control device, characterized in that: The cursor movement control device comprises: A data acquisition module, used for acquiring reference position information data of the trackball; A data accumulation module, configured to determine the position accumulation data during the movement of the trackball based on the reference position information data and the trackball movement data; A cursor control module, configured to control cursor movement based on the position accumulated data when the position accumulated data is greater than a preset movement threshold; a speed determination module, configured to determine whether the position accumulated data reaches a preset low speed threshold when the trackball stops moving and if the step of controlling the cursor movement based on the position accumulated data is not triggered during the movement of the trackball; The cursor control module is further configured to return to the step of controlling cursor movement based on the position accumulation data if the preset low speed threshold is reached.

8. A cursor movement control device, characterized in that: The device comprises: a memory, a processor, and a cursor movement control program stored in the memory and executable on the processor, wherein the cursor movement control program is configured to implement the steps of the cursor movement control method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium stores a cursor movement control program, and when the cursor movement control program is executed by the processor, the steps of the cursor movement control method according to any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the cursor movement control method according to any one of claims 1 to 6 are implemented.