A method and device for controlling mouse inertial scrolling
By receiving the scroll information detected by the sensing component in real time and calculating the initial angular velocity, and combining the attenuation factor to simulate mouse inertial scrolling, the problem of the mechanical complexity of mouse scroll wheels in the prior art and the difficulty of users to achieve accurate scrolling, achieving natural and smooth scrolling effects and improving user experience.
Patent Information
- Application Number
- CN202411635612.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-15
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2044-11-15
AI Technical Summary
The existing mouse rollers have mechanical complexity in the scrolling operation and it is difficult for users to achieve accurate scrolling, especially in the infinite scroll mode, the inertia of the roller causes a long scroll distance, which is not suitable for operations that require fine adjustments.
By receiving the scroll information detected by the induction component when the user touches the mouse scroll wheel in real time, the initial angular velocity of the inertial scrolling of the mouse scroll wheel is calculated, and the inertial scrolling of the mouse is simulated at the display end with the attenuation factor to achieve a natural and smooth scrolling effect.
It improves the smoothness and user experience of mouse operation, realizes the natural and smooth inertial scrolling effect of the mouse, and is suitable for operations that require fine adjustments.
Smart Images

Figure CN119126995B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a method and device for controlling inertial scrolling of a mouse. Background Art
[0002] In the prior art, mouse scrolling is generally divided into ordinary scroll wheels and infinite scroll wheels. Ordinary scroll wheels are scroll wheels that achieve scrolling through physical mechanical structures. Ordinary scroll wheels include encoder scroll wheels and grating scroll wheels. Encoder scroll wheels usually consist of a pair of rollers and encoders. The rollers and encoders interact with each other through a set of cams or gears to measure the rotation direction and number of steps of the rollers. Figure 1 and Figure 2 As shown, ordinary scroll wheels usually have a fixed step length, that is, the unit distance of each rotation is fixed. Users need to keep scrolling the mouse wheel to complete long-distance scrolling operations. This method is cumbersome and not very ergonomic. Some high-end mice use infinitely variable scroll wheels to achieve smooth scrolling of the mouse. Infinitely variable scroll wheel mice include ordinary scroll wheel mode and infinitely variable scroll mode. In ordinary scroll wheel mode, when the finger leaves the scroll wheel, the scroll wheel stops quickly and the page scrolling also stops quickly. In infinitely variable scroll mode, when the finger leaves the scroll wheel, the scroll wheel continues to scroll due to inertia, and the page will continue to scroll until the finger touches and stops the scroll wheel. However, there is no intermediate state to choose from these two modes. The mechanical and electromagnetic structure of the infinitely variable scroll wheel is relatively complex, and in the infinitely variable mode, it may be difficult for users to achieve precise scrolling, because the inertia of the scroll wheel causes the scrolling distance to be long, which is not suitable for operations that require fine adjustment, and the infinitely variable scroll wheel switches between the ordinary and infinite states mechanically, so the damping cannot be adjusted. Summary of the invention
[0003] In order to solve the technical problems existing in the background technology, the present invention provides a control method and device for inertial scrolling of a mouse.
[0004] The present invention provides a method for controlling inertial scrolling of a mouse, wherein the mouse comprises a mouse wheel, and the mouse wheel is electrically connected to a sensing component. The method comprises:
[0005] Receive in real time the scroll information input by the user when the sensor component touches the mouse wheel, the scroll information including the scroll value and the scroll wheel direction corresponding to each timestamp;
[0006] When the sensing component detects that the user stops touching the mouse wheel, the initial angular velocity ω of the inertial scrolling of the mouse wheel is calculated based on the preset acquisition time period T and the scrolling values corresponding to each time stamp t;
[0007] The attenuation factor is obtained, and the inertial scrolling of the mouse is simulated on the display end by combining the initial angular velocity ω with the attenuation factor.
[0008] Preferably, the mouse further comprises a photoelectric sensor, and the method further comprises:
[0009] In the inertial scrolling stage, when the photoelectric sensor detects that the mouse position moves beyond a preset movement threshold, an inertial scrolling stop signal is generated to end the inertial scrolling of the mouse.
[0010] Preferably, it also includes:
[0011] In the inertial scrolling stage, when the sensing component detects that the user touches the mouse wheel again, an inertial scrolling stop signal is generated to end the inertial scrolling of the mouse.
[0012] Preferably, the real-time receiving of the scrolling information input by the user when the user touches the mouse wheel detected by the sensing component specifically includes:
[0013] When the sensing component detects the direction of the mouse wheel, the clockwise direction is the positive direction and the counterclockwise direction is the negative direction. When the wheel direction is clockwise, the scroll value corresponding to the timestamp is a positive value, and when the wheel direction is counterclockwise, the scroll value corresponding to the timestamp is a negative value;
[0014] Collect the rolling values corresponding to each timestamp in real time.
[0015] Preferably, the step of calculating the initial angular velocity ω of the inertial scrolling of the mouse wheel based on the preset acquisition time period T and the scrolling values corresponding to each time stamp t specifically includes:
[0016] Sum the scrolling values corresponding to each time stamp within the acquisition time period T before the user stops contacting the object, to obtain the sum S of the scrolling value and the scroll wheel direction;
[0017] The initial angular velocity ω of the inertial scrolling of the mouse wheel is calculated according to the scroll value sum S and the preset acquisition time period T;
[0018] The calculation process of the initial angular velocity ω of the mouse wheel inertial scrolling is as follows: ;
[0019] Wherein, T is the preset collection time period; S is the corresponding rolling value sum S within the collection time period T.
[0020] Preferably, the acquiring of the attenuation factor, simulating the inertial scrolling of the mouse at the display end by combining the initial angular velocity ω with the attenuation factor, specifically includes:
[0021] Get the attenuation factor, and attenuate the initial angular velocity ω based on the attenuation factor to obtain the first angular velocity corresponding to time t in the inertial rolling stage ;
[0022] First angular velocity The calculation process is as follows: ;
[0023] in, is the first angular velocity corresponding to time t; ω is the initial angular velocity; a is the attenuation factor;
[0024] The corresponding first angular velocity is calculated at each moment in the inertial scrolling stage, and the inertial scrolling of the mouse is simulated on the display end according to the first angular velocity calculated at each moment.
[0025] Preferably, the first angular velocity calculated at each moment simulates the inertial scrolling of the mouse at the display end, specifically comprising:
[0026] Arrange the first angular velocities calculated at each moment in chronological order to obtain an angular velocity set C in the inertial rolling stage;
[0027] The inertial scrolling of the mouse is controlled based on the scrolling direction corresponding to when the user stops contacting, the initial angular velocity ω, and the angular velocity set C in the inertial scrolling stage.
[0028] Preferably, the controlling the inertial scrolling of the mouse based on the scrolling direction corresponding to when the user stops contacting, the initial angular velocity ω, and the angular velocity set C in the inertial scrolling stage specifically includes:
[0029] Control the mouse inertial scrolling according to the scrolling direction corresponding to when the user stops contact;
[0030] In the inertial rolling stage, starting from the initial angular velocity ω, the angular velocity is decayed according to the arrangement order of the angular velocity set C, and the rolling angle is calculated moment by moment in chronological order, and the rolling angle is accumulated;
[0031] When the accumulated rolling angle reaches the preset rolling angle A value, a corresponding inertial rolling instruction is generated, and the rolling angle after subtracting the preset rolling angle A value is retained, and the accumulated rolling angle is re-performed until the first angular velocity decays to zero and the inertial rolling calculation process stops.
[0032] Preferably, the attenuation factor is generated as follows:
[0033] Set the mouse attenuation factor through the terminal.
[0034] Preferably, when the value of the mouse attenuation factor is specifically 0, the mouse simulates uniform inertial scrolling at a preset scrolling speed until the sensing component detects that the user touches the mouse wheel again or the simulated uniform inertial scrolling stops after reaching a preset simulation period.
[0035] Preferably, the mouse further comprises a damping setting component, the damping setting component comprises a trigger switch, a damping sensing module, a mouse signal control switch, and a display terminal, the output end of the trigger switch is electrically connected to the input end of the mouse signal control switch, the output end of the trigger switch is electrically connected to the input end of the damping sensing module, the output end of the mouse signal control switch is electrically connected to the mouse signal input end, the input end of the damping sensing module is electrically connected to the rotating shaft of the mouse wheel; the output end of the damping sensing module is communicatively connected to the display terminal; the generation process of the attenuation factor is as follows:
[0036] When the attenuation factor needs to be set, the damping setting is triggered by triggering the switch;
[0037] When the trigger switch is triggered, the mouse signal control switch is turned on, cutting off the mouse signal output, and the attenuation factor can be adjusted by turning the mouse wheel;
[0038] Taking the mouse wheel state at the time of triggering as the reference, when the mouse wheel rotates clockwise, the attenuation factor gradually increases;
[0039] When the mouse wheel rotates clockwise to a preset angle, the attenuation factor reaches its maximum value;
[0040] When the attenuation factor is set, the trigger switch is started again. At this time, the trigger switch controls the mouse signal control switch to be turned off, and the mouse resumes normal use.
[0041] The present invention provides a control device for inertial scrolling of a mouse, wherein the mouse comprises a mouse wheel, and the mouse wheel is electrically connected to a sensing component, and comprises:
[0042] A data acquisition module is used to receive in real time the scrolling information input by the user when the user touches the mouse wheel detected by the sensing component, and the scrolling information includes the scrolling value and the scrolling wheel direction corresponding to each time stamp;
[0043] The data processing module is used to calculate the initial angular velocity ω of the inertial scrolling of the mouse wheel based on the preset acquisition time period T and the scrolling values corresponding to each time stamp t when the sensing component detects that the user stops touching the mouse wheel;
[0044] The output module is used to obtain the attenuation factor, and simulate the inertial scrolling of the mouse on the display end by combining the initial angular velocity ω with the attenuation factor.
[0045] Preferably, the output module specifically includes:
[0046] The first output unit is used to obtain the attenuation factor, and perform attenuation processing on the initial angular velocity ω based on the attenuation factor to obtain the first angular velocity corresponding to time t in the inertial rolling stage ;
[0047] The second output unit is used to calculate the corresponding first angular velocity at each moment in the inertial scrolling stage, and simulate the inertial scrolling of the mouse on the display end according to the first angular velocity calculated at each moment.
[0048] In the present invention, a control method and device for inertial scrolling of a mouse are proposed, which receives scrolling information input by a user when the sensing component touches the mouse wheel, and calculates the initial angular velocity of the inertial scrolling of the mouse wheel based on the information, and then controls the inertial scrolling of the mouse after the contact stops based on the initial angular velocity, thereby achieving a natural and smooth inertial scrolling effect of the mouse, and improving the smoothness of mouse operation and user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 Schematic diagram of the three-dimensional structure of a mouse in the prior art Figure 1 ;
[0050] Figure 2 Schematic diagram of the three-dimensional structure of a mouse in the prior art Figure 2 ;
[0051] Figure 3 A schematic diagram of the working process of a method for controlling mouse inertial scrolling proposed by the present invention;
[0052] Figure 4 A schematic diagram of the system architecture of a device for controlling mouse inertial scrolling proposed by the present invention. DETAILED DESCRIPTION
[0053] Reference Figure 3 and Figure 4 The present invention provides a method for controlling inertial scrolling of a mouse, wherein the mouse comprises a mouse wheel, and the mouse wheel is electrically connected to a sensing component. The method comprises the following steps:
[0054] S1. Receive in real time the scroll information input by the user when the sensor component touches the mouse wheel, where the scroll information includes the scroll value and the direction of the mouse wheel corresponding to each time stamp.
[0055] In this embodiment, step S1 specifically includes:
[0056] When the sensing component detects the scroll wheel direction of the mouse, the clockwise direction is the positive direction and the counterclockwise direction is the negative direction. When the scroll wheel direction is clockwise, the scroll value corresponding to the timestamp is a positive value. When the scroll wheel direction is counterclockwise, the scroll value corresponding to the timestamp is a negative value. The scroll values corresponding to each timestamp are collected in real time.
[0057] It should be noted that when a finger touches and rolls the wheel, the sensing component sends a rolling value and a corresponding timestamp according to the direction of the wheel.
[0058] In a specific embodiment, the mouse wheel of the present invention can be made of conductive metal materials, such as aluminum alloy or stainless steel. The sensing component can use a capacitive contact sensor with a sensitivity of up to 0.1 mm. The mouse main control chip can use an ARMCortex-M4 series processor, whose computing power is sufficient to implement complex inertial scrolling algorithms.
[0059] The mouse wheel is a conductive metal wheel. The collection end of the contact sensor detection is a ring-shaped closed structure, which is fixed on the outer circumference of the wheel. When the finger touches the wheel, the contact sensing is triggered. During the scrolling process, the encoder will send the scroll value to the inside of the mouse, and trigger inertial scrolling when the finger leaves.
[0060] In another specific embodiment, the sensing component is specifically a pressure sensor, which is arranged below the mouse wheel. The pressure sensor is used to detect the pressure of the finger touching the mouse wheel. When the detected pressure is within a preset range, it indicates that the finger is touching the mouse wheel; when the detected pressure is not within the preset range, it indicates that the finger is released. For example, the preset range is a pressure value greater than or equal to 100. When the sampled pressure value reaches 300, it is determined that the finger is in contact; when the pressure value decreases to less than 100, it is determined that the finger is released.
[0061] S2. When the sensing component detects that the user stops touching the mouse wheel, the initial angular velocity ω of the inertial scrolling of the mouse wheel is calculated based on the preset acquisition time period T and the scrolling values corresponding to each time stamp t.
[0062] In this embodiment, step S2 specifically includes:
[0063] The scrolling values corresponding to each time stamp within the acquisition time period T before the user stops contact are summed to obtain the scrolling value and the total scrolling direction S; the initial angular velocity ω of the inertial scrolling of the mouse wheel is calculated based on the scrolling value total S and the preset acquisition time period T.
[0064] In this embodiment, the calculation process of the initial angular velocity ω of the inertial scrolling of the mouse wheel is as follows: ;
[0065] Wherein, T is the preset collection time period; S is the corresponding rolling value sum S within the collection time period T.
[0066] In this embodiment, when the finger leaves the scroll wheel, the total scroll value S within a period of time T before the finger leaves is calculated, for example, T=200ms, and the total scroll value S is the sum of the absolute values of the scroll values corresponding to each time stamp within 200ms before the finger leaves.
[0067] S3. Obtain an attenuation factor, and simulate the inertial scrolling of the mouse on the display end by combining the initial angular velocity ω with the attenuation factor.
[0068] In this embodiment, the attenuation factor is obtained, and the inertial scrolling of the mouse is simulated on the display end by combining the initial angular velocity ω with the attenuation factor, specifically including:
[0069] Get the attenuation factor, and attenuate the initial angular velocity ω based on the attenuation factor to obtain the first angular velocity corresponding to time t in the inertial rolling stage ;
[0070] First angular velocity The calculation process is as follows: ;
[0071] in, is the first angular velocity corresponding to time t; ω is the initial angular velocity; a is the attenuation factor;
[0072] The corresponding first angular velocity is calculated at each moment in the inertial scrolling stage, and the inertial scrolling of the mouse is simulated on the display end according to the first angular velocity calculated at each moment.
[0073] In this embodiment, the attenuation factor is a parameter used to control the decrease of the inertial scrolling speed over time. It is usually a value between 0 and 1, used to indicate the proportion of speed reduction after each time step. For example, if V1=V-at, a=0.001, then it indicates linear attenuation;
[0074] like , a=0.95, which means that each calculation will be 0.95 of the previous one; different attenuation factors can achieve different inertial scrolling effects.
[0075] In this embodiment, simulating the inertial scrolling of the mouse at the display end according to the first angular velocity calculated at each moment specifically includes:
[0076] Arrange the first angular velocities calculated at each moment in chronological order to obtain an angular velocity set C in the inertial rolling stage;
[0077] The inertial scrolling of the mouse is controlled based on the scrolling direction corresponding to when the user stops contacting, the initial angular velocity ω, and the angular velocity set C in the inertial scrolling stage.
[0078] In this embodiment, the process of obtaining the angular velocity set C is as follows:
[0079] The initial angular velocity ω is attenuated based on the attenuation factor to obtain the first angular velocity corresponding to time t in the inertial rolling stage. ;
[0080] First angular velocity The calculation process is as follows: ;
[0081] in, is the first angular velocity corresponding to time t; ω is the initial angular velocity; a is the attenuation factor;
[0082] The corresponding first angular velocity is calculated at each moment in the inertial rolling stage, and the calculated first angular velocities are arranged in chronological order to obtain an angular velocity set C in the inertial rolling stage.
[0083] In this embodiment, controlling the inertial scrolling of the mouse based on the scrolling direction corresponding to when the user stops contacting, the initial angular velocity ω, and the angular velocity set C in the inertial scrolling stage specifically includes:
[0084] Control the mouse inertial scrolling according to the scrolling direction corresponding to when the user stops contact;
[0085] In the inertial rolling stage, starting from the initial angular velocity ω, the angular velocity is decayed according to the arrangement order of the angular velocity set C, and the rolling angle is calculated moment by moment in chronological order, and the rolling angle is accumulated;
[0086] When the accumulated rolling angle reaches the preset rolling angle A value, a corresponding inertial rolling instruction is generated, and the accumulated rolling angle is cleared, and the accumulated rolling angle is recalculated until the first angular velocity decays to zero and the inertial rolling stops.
[0087] In this embodiment, when the accumulated scrolling angle is greater than the preset scrolling angle A value, a corresponding inertial scrolling instruction is generated, and the remaining accumulated scrolling angle after subtracting the preset scrolling angle A value is re-accumulated to ensure that the corresponding inertial scrolling instruction is generated in time when the accumulated scrolling angle reaches the preset scrolling angle A value.
[0088] In this embodiment, the mouse further includes a photoelectric sensor, and the method further includes:
[0089] In the inertial scrolling stage, when the photoelectric sensor detects that the mouse position moves beyond a preset movement threshold, an inertial scrolling stop signal is generated to end the inertial scrolling of the mouse.
[0090] In this embodiment, it also includes: in the inertial scrolling stage, when the sensing component detects that the user touches the mouse wheel again, an inertial scrolling stop signal is generated to end the inertial scrolling of the mouse.
[0091] Example 1 of the process of generating the attenuation factor: setting the attenuation factor of the mouse through the terminal.
[0092] In this embodiment, when the value of the mouse attenuation factor is specifically 0, the mouse simulates uniform inertial scrolling at a preset scrolling speed until the sensing component detects that the user touches the mouse wheel again or the simulated uniform inertial scrolling stops after reaching a preset simulation period.
[0093] In this embodiment, different damping gears can be set by the host computer to control the time of inertial rolling, and the inertial rolling can also be turned on and off by the host computer.
[0094] Example 2 of the generation process of the attenuation factor:
[0095] The mouse also includes a damping setting component, which includes a trigger switch, a damping sensing module, a mouse signal control switch, and a display terminal. The output end of the trigger switch is electrically connected to the input end of the mouse signal control switch, the output end of the trigger switch is electrically connected to the input end of the damping sensing module, the output end of the mouse signal control switch is electrically connected to the mouse signal input end, and the input end of the damping sensing module is electrically connected to the rotating shaft of the mouse wheel; the output end of the damping sensing module is communicatively connected to the display terminal; the generation process of the attenuation factor is as follows:
[0096] When the attenuation factor needs to be set, the damping setting is triggered by triggering the switch;
[0097] When the trigger switch is triggered, the mouse signal control switch is turned on, cutting off the mouse signal output, and the attenuation factor can be adjusted by turning the mouse wheel;
[0098] Taking the mouse wheel state at the time of triggering as the reference, when the mouse wheel rotates clockwise, the attenuation factor gradually increases;
[0099] When the mouse wheel rotates clockwise to a preset angle, the attenuation factor reaches its maximum value;
[0100] When the attenuation factor is set, the trigger switch is started again. At this time, the trigger switch controls the mouse signal control switch to be turned off, and the mouse resumes normal use.
[0101] In this embodiment, the trigger switch of the attenuation factor can use the same button as the DPI. It can be set to short press to achieve DPI adjustment, and long press, when the indicator light is on, to enter the damping adjustment. The forward and reverse rolling of the wheel makes the indicator light brighter or darker.
[0102] In this embodiment, the attenuation factor is adjusted by rolling the mouse wheel back and forth, and the display terminal may be a prompt light or an LCD screen, so that the attenuation factor can be indicated by the light intensity of the prompt light on the mouse or the LCD screen. Thus, the attenuation factor can be adjusted visually, which is convenient for real-time adjustment of the attenuation factor and improves user experience.
[0103] In this embodiment, the mouse wheel can also be set to collect data only, and the algorithm processing part of inertial scrolling can be placed on the host computer. After the mouse wheel collects data, it will be fed back to the host computer in time, and then the result processed by the host computer will be received, and the inertial scrolling operation will be completed according to the result processed by the host computer. Such a setting makes the interface intuitive and can also increase the stickiness of the host computer users.
[0104] In this embodiment, by simulating the inertia and damping effects in the physical world, a natural and smooth scrolling effect is achieved at the software level. By accurately calculating the initial angular velocity and updating the angular velocity in real time, the inertial scrolling effect is closer to the real physical phenomenon, improving the user experience.
[0105] Reference Figure 3 and Figure 4 The present invention provides a control device for inertial scrolling of a mouse, wherein the mouse comprises a mouse wheel, and the mouse wheel is electrically connected to a sensing component, comprising:
[0106] A data acquisition module is used to receive in real time the scrolling information input by the user when the user touches the mouse wheel detected by the sensing component, and the scrolling information includes the scrolling value and the scrolling wheel direction corresponding to each time stamp;
[0107] The data processing module is used to calculate the initial angular velocity ω of the inertial scrolling of the mouse wheel based on the preset acquisition time period T and the scrolling values corresponding to each time stamp t when the sensing component detects that the user stops touching the mouse wheel;
[0108] The output module is used to obtain the attenuation factor, and simulate the inertial scrolling of the mouse on the display end by combining the initial angular velocity ω with the attenuation factor.
[0109] The output modules include:
[0110] The first output unit is used to obtain the attenuation factor, and perform attenuation processing on the initial angular velocity ω based on the attenuation factor to obtain the first angular velocity corresponding to time t in the inertial rolling stage ;
[0111] The second output unit is used to calculate the corresponding first angular velocity at each moment in the inertial scrolling stage, and simulate the inertial scrolling of the mouse on the display end according to the first angular velocity calculated at each moment.
[0112] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A method for controlling inertial scrolling of a mouse, wherein the mouse comprises a mouse wheel, characterized in that: The mouse wheel is electrically connected to a sensing component, and the method comprises: Receive in real time the scroll information input by the user when the sensor component touches the mouse wheel, the scroll information including the scroll value and the scroll wheel direction corresponding to each timestamp; When the sensing component detects that the user stops touching the mouse wheel, the initial angular velocity ω of the inertial scrolling of the mouse wheel is calculated based on the preset acquisition time period T and the scrolling values corresponding to each time stamp t; Acquire the attenuation factor, and simulate the inertial scrolling of the mouse on the display end by combining the initial angular velocity ω with the attenuation factor; The sensing component is specifically a capacitive touch sensor, and the mouse wheel is specifically a wheel with a conductive function. The collection end detected by the capacitive touch sensor is a ring-shaped closed structure, and the collection end is sleeved and fixed on the outer circumference of the wheel. When a finger touches the mouse wheel, the sensing component determines that it is in a contact state, and when the finger leaves the mouse wheel, the sensing component determines that the contact has stopped; In the inertial scrolling stage, when the sensing component detects that the user touches the mouse wheel again, an inertial scrolling stop signal is generated to end the inertial scrolling of the mouse.
2. The method for controlling mouse inertial scrolling according to claim 1, characterized in that: The mouse further includes a photoelectric sensor, and the method further includes: In the inertial scrolling stage, when the photoelectric sensor detects that the mouse position moves beyond a preset movement threshold, an inertial scrolling stop signal is generated to end the inertial scrolling of the mouse.
3. The method for controlling mouse inertial scrolling according to claim 1, characterized in that: The real-time receiving of the scrolling information inputted when the user touches the mouse wheel detected by the sensing component specifically includes: When the sensing component detects the direction of the mouse wheel, the clockwise direction is the positive direction and the counterclockwise direction is the negative direction. When the wheel direction is clockwise, the scroll value corresponding to the timestamp is a positive value, and when the wheel direction is counterclockwise, the scroll value corresponding to the timestamp is a negative value; Collect the rolling values corresponding to each timestamp in real time.
4. The method for controlling mouse inertial scrolling according to claim 1, characterized in that: The method of calculating the initial angular velocity ω of the inertial scrolling of the mouse wheel based on the preset acquisition time period T and the scrolling values corresponding to each time stamp t specifically includes: Sum the scrolling values corresponding to each time stamp within the acquisition time period T before the user stops contacting the object, to obtain the sum S of the scrolling value and the scroll wheel direction; The initial angular velocity ω of the inertial scrolling of the mouse wheel is calculated according to the scroll value sum S and the preset acquisition time period T; The calculation process of the initial angular velocity ω of the mouse wheel inertial scrolling is as follows: ; Wherein, T is the preset collection time period; S is the corresponding rolling value sum S within the collection time period T.
5. The method for controlling mouse inertial scrolling according to claim 1, characterized in that: The acquiring of the attenuation factor and simulating the inertial scrolling of the mouse at the display end by combining the initial angular velocity ω with the attenuation factor specifically includes: Get the attenuation factor, and attenuate the initial angular velocity ω based on the attenuation factor to obtain the first angular velocity corresponding to time t in the inertial rolling stage ; First angular velocity The calculation process is as follows: ; in, is the first angular velocity corresponding to time t; ω is the initial angular velocity; a is the attenuation factor; The corresponding first angular velocity is calculated at each moment in the inertial scrolling stage, and the inertial scrolling of the mouse is simulated on the display end according to the first angular velocity calculated at each moment.
6. The method for controlling mouse inertial scrolling according to claim 5, characterized in that: The step of simulating the inertial scrolling of the mouse at the display end according to the first angular velocity calculated at each moment specifically includes: Arrange the first angular velocities calculated at each moment in chronological order to obtain an angular velocity set C in the inertial rolling stage; The inertial scrolling of the mouse is controlled based on the scrolling direction corresponding to when the user stops contacting, the initial angular velocity ω, and the angular velocity set C in the inertial scrolling stage.
7. The method for controlling mouse inertial scrolling according to claim 6, characterized in that: The method of controlling the inertial scrolling of the mouse based on the scrolling direction corresponding to when the user stops contacting, the initial angular velocity ω, and the angular velocity set C in the inertial scrolling stage specifically includes: Control the mouse inertial scrolling according to the scrolling direction corresponding to when the user stops contact; In the inertial rolling stage, starting from the initial angular velocity ω, the angular velocity is decayed according to the arrangement order of the angular velocity set C, and the rolling angle is calculated moment by moment in chronological order, and the rolling angle is accumulated; When the accumulated rolling angle reaches the preset rolling angle A value, a corresponding inertial rolling instruction is generated, and the rolling angle after subtracting the preset rolling angle A value is retained, and the accumulated rolling angle is re-performed until the first angular velocity decays to zero and the inertial rolling calculation process stops.
8. The method for controlling mouse inertial scrolling according to claim 1, characterized in that: The generation process of the attenuation factor is as follows: Set the mouse attenuation factor through the terminal.
9. The method for controlling mouse inertial scrolling according to claim 8, characterized in that: When the value of the mouse attenuation factor is specifically 0, the mouse simulates uniform inertial scrolling at a preset scrolling speed until the sensing component detects that the user touches the mouse wheel again or the simulated uniform inertial scrolling stops after reaching a preset simulation period.
10. The method for controlling mouse inertial scrolling according to claim 1, characterized in that: The mouse further includes a damping setting component, which includes a trigger switch, a damping sensing module, a mouse signal control switch, and a display terminal. The output end of the trigger switch is electrically connected to the input end of the mouse signal control switch, the output end of the trigger switch is electrically connected to the input end of the damping sensing module, the output end of the mouse signal control switch is electrically connected to the mouse signal input end, and the input end of the damping sensing module is electrically connected to the rotating shaft of the mouse wheel; the output end of the damping sensing module is communicatively connected to the display terminal; the generation process of the attenuation factor is as follows: When the attenuation factor needs to be set, the damping setting is triggered by triggering the switch; When the trigger switch is triggered, the mouse signal control switch is turned on, cutting off the mouse signal output, and the attenuation factor can be adjusted by turning the mouse wheel; Taking the mouse wheel state at the time of triggering as the reference, when the mouse wheel rotates clockwise, the attenuation factor gradually increases; When the mouse wheel rotates clockwise to a preset angle, the attenuation factor reaches its maximum value; When the attenuation factor is set, the trigger switch is started again. At this time, the trigger switch controls the mouse signal control switch to be turned off, and the mouse resumes normal use.
11. A control device for inertial scrolling of a mouse, the mouse comprising a mouse wheel, characterized in that: The mouse wheel is electrically connected to a sensing component, including: A data acquisition module is used to receive in real time the scrolling information input by the user when the user touches the mouse wheel detected by the sensing component, and the scrolling information includes the scrolling value and the scrolling wheel direction corresponding to each time stamp; The data processing module is used to calculate the initial angular velocity ω of the inertial scrolling of the mouse wheel based on the preset acquisition time period T and the scrolling values corresponding to each time stamp t when the sensing component detects that the user stops touching the mouse wheel; An output module, used to obtain an attenuation factor, and simulate the inertial scrolling of the mouse on the display end by combining the initial angular velocity ω with the attenuation factor; The sensing component is specifically a capacitive touch sensor, and the mouse wheel is specifically a wheel with a conductive function. The collection end detected by the capacitive touch sensor is a ring-shaped closed structure, and the collection end is sleeved and fixed on the outer circumference of the wheel. When a finger touches the mouse wheel, the sensing component determines that it is in a contact state, and when the finger leaves the mouse wheel, the sensing component determines that the contact has stopped; In the inertial scrolling stage, when the sensing component detects that the user touches the mouse wheel again, an inertial scrolling stop signal is generated to end the inertial scrolling of the mouse.
12. The inertial scrolling control device of a mouse according to claim 11, characterized in that: The output module specifically includes: The first output unit is used to obtain the attenuation factor, and perform attenuation processing on the initial angular velocity ω based on the attenuation factor to obtain the first angular velocity corresponding to time t in the inertial rolling stage ; The second output unit is used to calculate the corresponding first angular velocity at each moment in the inertial scrolling stage, and simulate the inertial scrolling of the mouse on the display end according to the first angular velocity calculated at each moment.
Citation Information
Patent Citations
Window object inertia displacement method and realizing device
CN102314297A