Mouse device and operation mode switching method
By using a motion sensing module and an optical motion sensing module to automatically switch mouse modes, the problem of manually switching mouse modes is solved, and convenient mode switching is achieved.
Patent Information
- Application Number
- CN202410574065.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-10
- Publication Date
- 2025-11-11
AI Technical Summary
It is known that mouse devices with presentation pen functionality require frequent mode switching via a physical switch, which is inconvenient to use.
The system automatically detects spatial parameter data and optical motion data through motion sensing and optical motion sensing modules, and uses threshold comparison to switch between mouse mode and presentation pen mode, including accumulating the number of three-dimensional spatial movements and planar movements, to achieve automatic mode switching.
Switching modes can be achieved without manually operating physical buttons, improving ease of use.
Smart Images

Figure CN120928963A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a mouse device, and more particularly to a method for switching operating modes applied to a mouse device. Background Technology
[0002] With the advancement of technology, electronic devices that facilitate communication and interaction between people have flourished. Examples include desktop computers, laptops, tablets, mobile phones, and projection devices. Different types of electronic devices require different input devices, such as keyboards, mice, or presentation pens.
[0003] To improve portability, a mouse device integrating a cursor-controlling mouse and presentation pen has emerged on the market. This device combines mouse and presentation pen functions, allowing users to operate in mouse and presentation pen modes respectively. Currently, known mouse devices with presentation pen functionality use a physical switch to switch between different modes. However, when users are presenting, they may need to frequently return to their computer to check the content, necessitating frequent switching between mouse and presentation pen modes. Therefore, switching between modes via a physical switch remains inconvenient for users and requires improvement. Summary of the Invention
[0004] In view of the above-mentioned problems, the main objective of the present invention is to provide a mouse device and a method for switching operating modes. The mouse device executes the switching method of the operating module to execute mouse mode and presentation pen mode respectively, thereby solving the problem that known mouse devices with presentation pen function must operate a physical switch to switch between different modes.
[0005] To achieve the above objectives, the present invention provides a method for switching operating modes, applied to a mouse device. The mouse device includes a motion sensing module and an optical motion sensing module. The method for switching mouse operating modes includes the following steps: the motion sensing module receives at least one spatial parameter data within a time period; the optical motion sensing module receives at least one optical motion data within the time period; the spatial parameter data is compared with a spatial parameter threshold; when the spatial parameter data is greater than the spatial parameter threshold, the number of three-dimensional spatial movements is increased cumulatively; when the number of three-dimensional spatial movements is greater than or equal to 4, a presentation pen mode is executed; when the spatial parameter data is less than the spatial parameter threshold, the optical motion data is compared with a horizontal movement threshold; when the optical motion data is greater than the horizontal movement threshold, the number of positive planar movements is increased cumulatively; when the optical motion data is less than the horizontal movement threshold, the number of negative planar movements is increased cumulatively; and when both the number of positive and negative planar movements are greater than or equal to 2, mouse mode is executed.
[0006] To achieve the above objectives, the present invention further provides a mouse device, comprising a motion sensing module, an optical motion sensing module, and a processing module. The processing module is electrically connected to the motion sensing module and the optical motion sensing module. The processing module performs the following steps: the motion sensing module receives at least one spatial parameter data within a time period; the optical motion sensing module receives at least one optical motion data within the time period; the spatial parameter data is compared with a spatial parameter threshold; when the spatial parameter data is greater than the spatial parameter threshold, the number of three-dimensional spatial movements is increased cumulatively; when the number of three-dimensional spatial movements is greater than or equal to 4, a presentation pen mode is executed; when the spatial parameter data is less than the spatial parameter threshold, the optical motion data is compared with a horizontal movement threshold; when the optical motion data is greater than the horizontal movement threshold, the number of positive planar movements is increased cumulatively; when the optical motion data is less than the horizontal movement threshold, the number of negative planar movements is increased cumulatively; and when both the number of positive and negative planar movements are greater than or equal to 2, mouse mode is executed.
[0007] According to one embodiment of the present invention, the motion sensing module has a maximum sensing value. The spatial parameter threshold is the maximum sensing value multiplied by a value n, where n is between 0.05 and 0.2.
[0008] According to one embodiment of the present invention, the value n is 0.1.
[0009] According to one embodiment of the present invention, the motion sensing module includes a gyroscope and an accelerometer.
[0010] According to one embodiment of the present invention, the spatial parameter data includes X-axis angular momentum, Y-axis angular momentum, and Z-axis acceleration.
[0011] According to an embodiment of the present invention, when at least one of the spatial parameter data, namely the X-axis angular momentum, the Y-axis angular momentum, and the Z-axis acceleration, is greater than a spatial parameter threshold, the number of three-dimensional spatial movements is cumulatively increased.
[0012] According to one embodiment of the present invention, the optical motion data is the pixel point corresponding to the cursor movement when the mouse device moves one inch.
[0013] According to one embodiment of the present invention, the horizontal movement threshold is between 10,000 and 20,000.
[0014] According to an embodiment of the present invention, when the number of positive plane movement times and the number of negative plane movement times are both greater than or equal to 2, and the Z-axis acceleration of the spatial parameter data is less than the spatial parameter threshold, mouse mode is executed.
[0015] According to one embodiment of the present invention, when the number of three-dimensional spatial movements is less than 4, when the optical movement data is equal to the horizontal movement threshold, or when the number of positive or negative plane movements is less than 2, spatial parameter data and optical movement data are repeatedly received.
[0016] According to one embodiment of the present invention, the time segment is the period between when the mouse device is turned on and when it is turned off.
[0017] As described above, the mouse device and operation mode switching method of the present invention detects and obtains spatial parameter data through a motion sensing module and optical motion data through an optical motion sensing module. The spatial parameter data is compared with a spatial parameter threshold to obtain the number of three-dimensional spatial movements. When the number of three-dimensional spatial movements is greater than or equal to 4, it indicates that the user may be holding the mouse device as if operating a presentation pen, thus confirming execution or switching to presentation pen mode. Furthermore, the optical motion data is compared with a horizontal movement threshold to obtain the number of positive and negative planar movements. When both the number of positive and negative planar movements are greater than or equal to 2, it indicates that the user may be using the mouse device as if operating a mouse, thus confirming execution or switching to mouse mode. In other words, the mouse device and its operation mode switching method of the present invention continuously detect and analyze spatial parameter data and optical motion data, thus instantly switching to presentation pen mode or mouse mode when the user changes their operation method. Therefore, the user does not need to manually operate physical buttons, achieving a user-friendly operation effect. Attached Figure Description
[0018] Figure 1 This is a block diagram of a mouse device according to an embodiment of the present invention.
[0019] Figure 2 This is a flowchart illustrating the operation mode switching method according to an embodiment of the present invention.
[0020] The annotations in the attached figures are explained as follows:
[0021] 1 Mouse device
[0022] 10 motion sensing modules
[0023] 11 gyroscopes
[0024] 12 accelerometers
[0025] 20 Optical Motion Sensing Modules
[0026] 30 processing modules
[0027] Steps S01 to S13 Detailed Implementation
[0028] To better understand the technical content of the present invention, preferred embodiments are described below.
[0029] Figure 1 This is a block diagram of a mouse device according to an embodiment of the present invention. Figure 2 The flowchart illustrates the operation mode switching method according to an embodiment of the present invention. Please refer to it. Figure 1 and Figure 2 As shown. First, Figure 2 The operation mode switching method shown is applied to mouse device 1, which includes a motion sensing module 10, an optical motion sensing module 20, and a processing module 30. The processing module 30 is electrically connected to the motion sensing module 10 and the optical motion sensing module 20 to receive relevant data when the mouse device 1 is operated. Furthermore, the processing module 30 may be, for example, but not limited to, one or more central processing units (CPUs), microcontrollers (MCUs), digital signal processors (DSPs), or other electronic components or integrated circuits (ICs) with signal processing, logic operation, and electronic device control capabilities. The processing module 30 stores and executes... Figure 2 The operation mode switching method shown is used to achieve the function of automatically switching between mouse mode and presentation pen mode.
[0030] It should be noted that the above-mentioned modules can be configured as hardware devices, software programs, firmware, or combinations thereof, as well as circuit loops or other suitable configurations; and the modules can be configured individually or in combination. Furthermore, this embodiment only illustrates a preferred embodiment of the invention, and to avoid redundancy, not all possible variations and combinations are described in detail. However, those skilled in the art should understand that not all of the above-mentioned modules or elements are necessarily necessary. Moreover, other known modules or elements with more detail may be included for the implementation of this invention. Modules or elements may be omitted or modified as needed, and other modules or elements may exist between any two modules.
[0031] The following basis Figure 2 The steps for switching operation modes are shown, and the specific functions of each module are further explained.
[0032] Step S01: The automatic sensing module 10 receives spatial parameter data within the time segment.
[0033] First, a motion sensing module 10 is installed on the mouse device 1 to sense the three-dimensional motion state of the mouse device 1 (i.e., its motion state in space) to generate multiple spatial parameter data. For example, the motion sensing module 10 in this embodiment may include a gyroscope 11, and preferably also includes an accelerometer 12, to sense spatial parameters such as angular momentum and acceleration of the mouse device 1 along each coordinate axis. Specifically, the spatial parameter data in this embodiment may include X-axis angular momentum, Y-axis angular momentum, Z-axis angular momentum, X-axis acceleration, Y-axis acceleration, and Z-axis acceleration. In this embodiment, the X-axis angular momentum, Y-axis angular momentum, and Z-axis acceleration in the spatial parameter data are mainly used as the judgment criteria. Therefore, the spatial parameter data includes at least X-axis angular momentum, Y-axis angular momentum, and Z-axis acceleration.
[0034] It should be noted that when the mouse device 1 is powered on, the motion sensing module 10 can begin to sense the motion state of the mouse device 1, and thus receive spatial parameter data at different points in time. Therefore, the time segment referred to in this embodiment is the period between when the mouse device 1 is turned on and when it is turned off. When the mouse device 1 is powered on, the processing module 30 can automatically activate the sensing module 10 to receive spatial parameter data within the time segment. In other words, within the time segment when the mouse device 1 is on, the processing module 30 can continuously and automatically activate the sensing module 10 to receive spatial parameter data at different points in time.
[0035] Step S02: The processing module 30 receives optical motion data within the time segment from the optical motion sensing module 20.
[0036] In this embodiment, the optical motion sensing module 20 is also installed on the mouse device to sense the horizontal movement state of the mouse device 1. Specifically, the optical motion sensing module 20 may include components such as a miniature camera lens and an optical sensor. During the movement of the mouse device 1, the miniature camera lens acquires different images of the surface and transmits them to the optical sensor for digital matrix analysis to obtain the movement direction and distance of the mouse device 1, and its corresponding range of cursor movement on the screen, which is referred to as optical motion data.
[0037] In this embodiment, optical motion data is measured in DPI (Dots Per Inch). Therefore, optical motion data refers to the number of pixels corresponding to cursor movement when the mouse device 1 moves one inch on a flat surface (e.g., a desktop). Similarly, during the time period when the mouse device 1 is active, the processing module 30 continuously receives optical motion data from the optical motion sensing module 20 at different time points. In the following steps, the processing module 30 analyzes and determines whether to execute mouse mode or presentation pen mode based on spatial parameter data or optical motion data.
[0038] It should be noted that steps S01 and S02 can be performed simultaneously, that is, spatial parameter data and optical motion data can be collected at the same time. Alternatively, step S01 or step S02 can be performed first, and the present invention does not limit their priority.
[0039] Step S03: Determine whether the spatial parameter data is greater than the spatial parameter threshold.
[0040] In this embodiment, the spatial parameter data is first analyzed. The processing module 30 compares the spatial parameter data with a spatial parameter threshold and determines whether the spatial parameter data is greater than the spatial parameter threshold. The spatial parameter threshold is used to determine whether the mouse device 1 is being moved in three-dimensional space, and therefore can be defined according to the characteristics of the motion sensing module 10 used. In this embodiment, the spatial parameter threshold is the maximum sensed value multiplied by the value n, and the value n is between 0.05 and 0.2. Preferably, the value n is 0.1.
[0041] Specifically, the motion sensing module 10 has a maximum sensing value, which is a preset maximum value during design. For example, if the reading value of the motion sensing module 10 is designed to be 12 bits, the range of sensed values is -2047 to 2047, and the maximum sensing value is defined as 2047. In other embodiments, if the reading value of the motion sensing module 10 is designed to be 16 bits, the range of sensed values is -16383 to 16383, and the maximum sensing value is defined as 16383. In other words, the maximum sensing value will vary depending on the design of the motion sensing module 10. Furthermore, the maximum sensing value is multiplied by a value n to obtain the spatial parameter threshold of this embodiment. Taking the reading value of the motion sensing module 10 as an example with a 12-bit design, its maximum sensing value is 2047, so the spatial parameter threshold can be between 102.35 (i.e., 2047 multiplied by 0.05) and 409.4 (2047 multiplied by 0.2), preferably 204.7 (2047 multiplied by 0.1). Taking the motion sensing module 10 as an example with a 16-bit reading design, its maximum sensing value is 16383. Therefore, the spatial parameter threshold can be between 819.15 (i.e., 16383 multiplied by 0.05) and 3276.6 (16383 multiplied by 0.2), and preferably 1638.3 (16383 multiplied by 0.1).
[0042] Next, the spatial parameter data is compared with the spatial parameter threshold. It should be noted that here, the absolute values of the spatial parameter data (e.g., X-axis angular momentum, Y-axis angular momentum, Z-axis angular momentum, X-axis acceleration, Y-axis acceleration, and Z-axis acceleration) are taken and then compared with the sensed maximum value. If the spatial parameter data is greater than the sensed maximum value, step S04 is executed; if the spatial parameter data is less than the sensed maximum value, step S07 is executed.
[0043] Step S04: Accumulate the number of three-dimensional spatial movements.
[0044] When the spatial parameter data is greater than the spatial parameter threshold, it indicates that the mouse device 1 is being moved upwards or downwards in three-dimensional space, so the processing module 30 accumulates one three-dimensional spatial movement count. For example, it increases from 0 to 1, or from 1 to 2. In one embodiment, the three-dimensional spatial movement count can be accumulated when at least one of the spatial parameter data—X-axis angular momentum, Y-axis angular momentum, Z-axis angular momentum, X-axis acceleration, Y-axis acceleration, and Z-axis acceleration—is greater than the spatial parameter threshold. In other words, if any absolute value of the X-axis angular momentum, Y-axis angular momentum, Z-axis angular momentum, X-axis acceleration, Y-axis acceleration, or Z-axis acceleration is greater than the spatial parameter threshold, then one three-dimensional spatial movement count is accumulated.
[0045] In this embodiment, the X-axis angular momentum, Y-axis angular momentum, and Z-axis acceleration are used as the primary judgment criteria, while the Z-axis angular momentum, X-axis acceleration, and Y-axis acceleration are used as auxiliary judgment criteria. When the X-axis angular momentum, Y-axis angular momentum, and Z-axis acceleration of the spatial parameter data are all greater than the spatial parameter threshold, the number of three-dimensional spatial movements is cumulatively increased. In other words, if the absolute values of the X-axis angular momentum, Y-axis angular momentum, and Z-axis acceleration are all greater than the spatial parameter threshold, then one three-dimensional spatial movement is cumulatively increased. In another embodiment, one axis (e.g., X-axis, Y-axis, or Z-axis) can be selected as the primary judgment criterion based on the circuit direction of the motion sensing module 10. When the X-axis angular momentum, Y-axis angular momentum, or Z-axis acceleration of the spatial parameter data are greater than the spatial parameter threshold, the number of three-dimensional spatial movements is cumulatively increased. For example, if the Z-axis is used as the reference, when the absolute value of the Z-axis acceleration is greater than the spatial parameter threshold, then one three-dimensional spatial movement is cumulatively increased.
[0046] Step S05: Determine whether the number of three-dimensional spatial movements is greater than or equal to 4.
[0047] Next, step S05 is executed, where processing module 30 determines whether the number of three-dimensional spatial movements is greater than 4. If the number of three-dimensional spatial movements is greater than or equal to 4, step S06 is executed, i.e., the presentation pen mode is activated. If the number of three-dimensional spatial movements is less than 4, steps S01 and S02 are repeated to continue receiving spatial parameter data and optical motion data. In other words, when the number of three-dimensional spatial movements meets the condition of 4 or more, step S06 is executed; otherwise, spatial parameter data and optical motion data are continuously received.
[0048] Step S06: Execute the presentation pen mode.
[0049] When the number of three-dimensional spatial movements is greater than or equal to 4, it indicates that the mouse device 1 has been shaken up and down several times, and the user may be holding the mouse device 1 in the manner of operating a presentation pen. Therefore, when the number of three-dimensional spatial movements meets the condition of 4 or more, the processing module 30 executes the presentation pen mode.
[0050] In this embodiment, the processing module 30 of the mouse device 1 can be preset to execute a mouse mode or a presentation pen mode. In other words, when the mouse device 1 is powered on, it first executes the preset mouse mode or presentation pen mode. Taking the preset mouse mode as an example, when the number of three-dimensional spatial movements meets the condition of 4 or more, the processing module 30 switches from the preset mouse mode to the presentation pen mode. When the number of three-dimensional spatial movements is less than 4, in addition to executing steps S01 and S02 again to continue executing the preset mode (e.g., mouse mode) or the previously executed mode, after executing the presentation pen mode, steps S01 and S02 are also executed again to continue collecting spatial parameter data and optical motion data.
[0051] Step S07: Determine whether the optical motion data is greater than a positive value of the horizontal motion threshold.
[0052] In step S03, when the processing module 30 determines that the spatial parameter data is less than the maximum sensing value, step S07 is executed to further compare the optical motion data with the horizontal motion threshold to determine whether the optical motion data is greater than a positive value of the horizontal motion threshold. The horizontal motion threshold is used to determine the threshold at which the mouse device 1 is shaken left and right, and can therefore be defined according to the resolution of the optical motion sensing module 20 used. In this embodiment, the horizontal motion threshold can be between 10,000 and 20,000, preferably 15,000.
[0053] For example, in this embodiment, moving the mouse device 1 to the right on the plane is defined as a positive direction, and moving the mouse device 1 to the left is defined as a negative direction. When the mouse device 1 moves one inch to the right on the plane, if the corresponding cursor moves 16,000 pixels to the right, the optical movement data is +16,000 pixels. The processing module 30 determines that the optical movement data (+16,000) is greater than a positive value of the horizontal movement threshold (e.g., +15,000), and then executes step S08. Conversely, if the processing module 30 determines that the optical movement data is not greater than a positive value of the horizontal movement threshold, it executes step S09.
[0054] Step S08: Accumulate the number of forward plane movements.
[0055] When the optical motion data exceeds a positive value of the horizontal movement threshold, it indicates that the mouse device 1 has moved to the right (positive direction) on the plane and exceeded the horizontal movement threshold. At this time, the processing module 30 accumulates and temporarily stores the number of positive plane movements. For example, the number of rightward movements (i.e., the number of positive plane movements) increases from 0 to 1, or from 1 to 2.
[0056] Step S09: Determine whether the optical motion data is less than the negative value of the horizontal motion threshold.
[0057] In step S07, if the processing module 30 determines that the optical movement data is not greater than the horizontal movement threshold, this may include situations where the mouse device 1 moves a small distance or moves to the left. In step S09, the processing module 30 further determines whether the optical movement data is less than a negative value of the horizontal movement threshold (e.g., -15,000). For example, when the mouse device 1 moves one inch to the left on the plane, if the corresponding cursor moves 16,000 pixels to the left, the optical movement data is -16,000. The processing module 30 determines that the optical movement data (-16,000) is less than a negative value of the horizontal movement threshold (e.g., -15,000), and then executes step S10. Conversely, if the mouse device 1 moves no more than 15,000 pixels to the right or left, for example, moving 1,000 pixels to the right, the optical movement data is +1,000; moving 1,000 pixels to the left, the optical movement data is -1,000. In both cases, the processing module 30 will determine that the optical motion data (+1,000 or -1,000) is not less than the negative value of the horizontal motion threshold (-15,000), and will execute steps S01 and S02 again to continue collecting spatial parameter data and optical motion data.
[0058] Step S10: Accumulate the number of negative plane movements.
[0059] When the optical movement data is less than a negative value of the horizontal movement threshold, it indicates that the mouse device 1 has moved to the left (negative direction) on the plane and exceeded the horizontal movement threshold. At this time, the processing module 30 accumulates and temporarily stores the number of negative plane movements. For example, the number of leftward movements (i.e., the number of negative plane movements) increases from 0 to 1, or from 1 to 2.
[0060] It should be noted that steps S07 and S09 have no specific priority order. In other embodiments, after step S03, it may be necessary to first determine whether the optical motion data is less than the negative value of the horizontal motion threshold (i.e., step S09). If "yes", then the number of negative plane movements is accumulated (i.e., step S10). Next, it is determined whether the optical motion data is greater than the positive value of the horizontal motion threshold (i.e., step S07). If "yes", then the number of positive plane movements is accumulated (i.e., step S08). This invention is not limited.
[0061] Step S11: Determine whether the number of positive plane movements and the number of negative plane movements are both greater than or equal to 2.
[0062] Next, the processing module 30 further determines whether both the number of positive and negative plane movements are greater than or equal to 2. When both the number of positive and negative plane movements are greater than or equal to 2, it indicates that the mouse device 1 is being slid left or right on the plane, and also indicates that the user may be using the mouse device 1 in a mouse-operating manner. In one embodiment, when both the number of positive and negative plane movements are greater than or equal to 2, mouse mode can be executed (i.e., step S13). In this embodiment, when both the number of positive and negative plane movements are greater than or equal to 2, step S12 is further executed to confirm that the user is indeed using the mouse device 1 in a mouse-operating manner.
[0063] Step S12: Determine whether the Z-axis acceleration of the spatial parameter data is less than the threshold of the spatial parameter.
[0064] Preferably, in this embodiment, the processing module 30, in addition to comparing the optical motion data with the horizontal motion threshold to confirm that the mouse device 1 is being shaken left and right on the plane (steps S07 to S11), further determines whether the Z-axis acceleration in the spatial parameter data is less than the spatial parameter threshold. Specifically, in step S04, at least one of the X-axis angular momentum, Y-axis angular momentum, Z-axis angular momentum, X-axis acceleration, Y-axis acceleration, and Z-axis acceleration in the spatial parameter data is compared with the spatial parameter threshold. In step S12, the Z-axis acceleration is compared with the spatial parameter threshold. When the Z-axis acceleration in the spatial parameter data is less than the spatial parameter threshold, it can be confirmed that the mouse device 1 is not being shaken in three-dimensional space. In other embodiments, the Z-axis acceleration in the spatial parameter data can also be compared with other thresholds (e.g., the horizontal motion judgment value). The horizontal motion judgment value can also be defined according to the characteristics of the motion sensing module 10.
[0065] In this embodiment, when both the number of positive and negative plane movements are greater than or equal to 2 (i.e., step S11), and the Z-axis acceleration of the spatial parameter data is less than the spatial parameter threshold (i.e., step S12), mouse mode is executed (i.e., step S13). In other embodiments, mouse mode can be executed directly after determining that both the number of positive and negative plane movements are greater than or equal to 2 (i.e., step S11).
[0066] Step S13: Execute mouse mode.
[0067] In this embodiment, when both the number of positive and negative plane movements are greater than 2, and the Z-axis acceleration of the spatial parameter data is less than the spatial parameter threshold, it indicates that the mouse device 1 is indeed being moved left and right on the plane, and the user is using the mouse device 1 in a mouse-operating manner, thus confirming the execution of mouse mode. For example, if the mouse mode was originally executed, it continues to be executed. If the presentation pen mode was originally executed, it switches to mouse mode. Similarly, after executing mouse mode, steps S01 and S02 are executed again to continue collecting spatial parameter data and optical motion data.
[0068] In summary, according to the mouse device and operation mode switching method of the present invention, spatial parameter data is detected and obtained by a motion sensing module, and optical motion data is detected and obtained by an optical motion sensing module. The spatial parameter data is compared with a spatial parameter threshold to obtain the number of three-dimensional spatial movements. When the number of three-dimensional spatial movements is greater than or equal to 4, it indicates that the user may be holding the mouse device in a way similar to operating a presentation pen, thus confirming execution or switching to presentation pen mode. Furthermore, the optical motion data is compared with a horizontal movement threshold to obtain the number of positive and negative planar movements. When both the number of positive and negative planar movements are greater than or equal to 2, it indicates that the user may be using the mouse device in a way similar to operating a mouse, thus confirming execution or switching to mouse mode. In other words, the mouse device and its operation mode switching method of the present invention continuously detect and analyze spatial parameter data and optical motion data, thus allowing for immediate switching to presentation pen mode or mouse mode when the user changes their operation method. Therefore, the user does not need to manually operate physical buttons, achieving a user-friendly operation effect.
[0069] It should be noted that the above embodiments are examples for illustrative purposes only, and the scope of the claims of this invention should be determined by the claims, and not limited to the above embodiments.
Claims
1. A method for switching operating modes, characterized in that, The mouse device, which includes a motion sensing module and an optical motion sensing module, is used in a mouse operating mode switching method, which includes the following steps: The motion sensing module receives spatial parameter data within a time segment; The optical motion sensing module receives optical motion data within the time segment. The spatial parameter data is compared with the spatial parameter threshold; When the spatial parameter data is greater than the spatial parameter threshold, the number of three-dimensional spatial movements is increased cumulatively. When the number of movements in the three-dimensional space is greater than or equal to 4, the presentation pen mode is executed; When the spatial parameter data is less than the spatial parameter threshold, the optical movement data is compared with the horizontal movement threshold; When the optical movement data is greater than a positive value of the horizontal movement threshold, the number of positive plane movements is increased cumulatively. When the optical movement data is less than a negative value of the horizontal movement threshold, the number of negative planar movements is increased cumulatively. as well as When both the number of positive and negative movements of the plane are greater than or equal to 2, mouse mode is executed.
2. The method for switching operating modes as described in claim 1, characterized in that, The motion sensing module has a maximum sensing value, and the spatial parameter threshold is the maximum sensing value multiplied by a value n, where n is between 0.05 and 0.
2.
3. The method for switching operating modes as described in claim 2, characterized in that, The value n is 0.
1.
4. The method for switching operating modes as described in claim 2, characterized in that, The motion sensing module includes a gyroscope and an accelerometer.
5. The method for switching operating modes as described in claim 4, characterized in that, The spatial parameter data includes X-axis angular momentum, Y-axis angular momentum, and Z-axis acceleration.
6. The method for switching operating modes as described in claim 5, characterized in that, When at least one of the X-axis angular momentum, Y-axis angular momentum, and Z-axis acceleration of the spatial parameter data is greater than the spatial parameter threshold, the number of three-dimensional spatial movements is increased cumulatively.
7. The method for switching operating modes as described in claim 1, characterized in that, The optical motion data refers to the pixel point corresponding to the cursor movement when the mouse device moves one inch.
8. The method for switching operating modes as described in claim 1, characterized in that, The horizontal movement threshold is between 10,000 and 20,000.
9. The method for switching operating modes as described in claim 1, characterized in that, When both the number of positive and negative plane movements are greater than or equal to 2, and the Z-axis acceleration of the spatial parameter data is less than the spatial parameter threshold, the mouse mode is executed.
10. The method for switching operating modes as described in claim 1, characterized in that, When the number of three-dimensional spatial movements is less than 4, when the optical movement data is equal to the water movement threshold, or when the number of positive or negative plane movements is less than 2, the process of receiving the spatial parameter data and the optical movement data is repeated.
11. The method for switching operating modes as described in claim 1, characterized in that, The time period is the time between when the mouse device is turned on and when it is turned off.
12. A mouse device, characterized in that, include: Motion sensing module; Optical motion sensing module; as well as The processing module is electrically connected to the motion sensing module and the optical motion sensing module, and performs the following steps: The motion sensing module receives spatial parameter data within a time segment; The optical motion sensing module receives optical motion data within the time segment. The spatial parameter data is compared with the spatial parameter threshold; When the spatial parameter data is greater than the spatial parameter threshold, the number of three-dimensional spatial movements is increased cumulatively. When the number of movements in the three-dimensional space is greater than or equal to 4, the presentation pen mode is executed; When the spatial parameter data is less than the spatial parameter threshold, the optical movement data is compared with the horizontal movement threshold; When the optical movement data is greater than a positive value of the horizontal movement threshold, the number of positive plane movements is increased cumulatively. When the optical movement data is less than a negative value of the horizontal movement threshold, the number of negative planar movements is increased cumulatively. and When both the number of positive and negative movements of the plane are greater than or equal to 2, mouse mode is executed.