1. Technical Field
The present disclosure generally relates to a system and method for switching a mouse operation mode, and particularly to a system and method for switching the mouse operation mode between a right-hand mode and a left-hand mode.
2. Description of Related Art
A computer mouse as an input device of a computer generally has two operation modes: a right-hand mode and a left-handed mode. People usually use the right hand to operate the mouse, thus the right-hand mode is a default operation mode of the computer mouse. A common method to switch the mouse between the left-hand mode and the right-hand mode is by software such as the control panel of the operating system. However, left-hand people or people who need to shift the operation mode frequently, it is inconvenient and troublesome.
Therefore, there is room for improvement in the art.
Many aspects of the present disclosure can be better understood with reference to the following drawing(s). The components in the drawing(s) are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawing(s), like reference numerals designate corresponding parts throughout the several views.
The control unit 104 stores a flag representing the current mouse operation mode, and determines whether a pressing time of the right button 102 or the left button 100 reaches a predetermined time. If the pressing time of the right button 102 or the left button 100 reaches the predetermined time, the control unit 104 sets a value of the flag according to the pressing of the button. The control unit 104 transmits the flag to the delivery unit 106, and turns the corresponding indicator on. For instance, if the pressing time of the left button 100 reaches the predetermined time, the control unit 104 sets the value of the flag to “0”, and turns the second indicator 108 on and the first indicator 107 off, thereby the current mode of the mouse 10 is the left-hand mode. If the pressing time of the right button 102 reaches the predetermined time, the control unit 104 changes the value of the flag to “1”, and turns the first indicator 107 on and the second indicator 108 off, thereby the current mode of the mouse 10 is the right-hand mode.
Usually, the right-hand mode is a default operation mode of the computer mouse, the control unit 104 turns the first indicator 107 on and the second indicator 108 off, so as to indicate that the current mouse operation mode is the right-hand mode.
If the user is left handed and wants the mouse 10 configured for left-handed mode, the left button 100 is pressed. When the pressing time of the left button 100 reaches the predetermined time, the control unit 104 sets the value of the flag to “0”, and then transmits the flag to the delivery unit 106. In the meanwhile, the control unit 104 turns the first indicator 107 off and the second indicator 108 on, thereby indicating that the current mouse operation mode is the left-hand mode. The delivery unit 106 delivers the flag to the receiving unit 202 of the computer 20. The receiving unit 202 sends the flag to the drive unit 200, and the drive unit 200 sets the mouse operation mode to the left-hand mode.
If the mouse operation mode is changed back to the right-hand mode, the right button 102 is pressed. When the pressing time of the right button 102 reaches the predetermined time, the control unit 104 sets the value of the flag to “1”. In the meantime, the control unit 104 turns the first indicator 107 on and the second indicator 108 off, thereby indicating that the current mouse operation mode is the right-hand mode. The delivery unit 106 delivers the flag to the receiving unit 202 of the computer 20. The receiving unit 202 sends the flag to the drive unit 200, and the drive unit 200 sets the mouse operation mode to the right-hand mode according to the value of the flag.
In step S1, setting a predetermined time.
In step S2, determining whether the pressing time of a button reaches the predetermined time. If the pressing time of the button reaches the predetermined time, the process goes to step S3, otherwise, the step S2 is repeated.
In step S3, determining whether the pressed button is the left button 100 or the right button 102 by the control unit 104. If the pressed button is the left button, the process goes to step S4, otherwise, the process goes to step S5.
In step S4, setting the flag to a first value by the control unit 104.
In step S5, setting the flag to a second value by the control unit 104.
In step S6, obtaining the value of the flag by the drive unit 200.
In step S7, determining whether the value of the flag is the first value by the drive unit 200. If the value of the flag is the first value, the process goes to step S8, otherwise, the process goes to step S9.
In step S8, changing the mouse operation mode to the left-hand mode by the drive unit 200.
In step S9, changing the mouse operation mode to the right-hand mode by the drive unit 200.
While the disclosure has been described by way of example and in terms of preferred embodiment, it is to be understood that the disclosure is not limited thereto. To the contrary, it is intended to cover various modifications and similar arrangements as would be apparent to those skilled in the art. Therefore, the range of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.
Number | Date | Country | Kind |
---|---|---|---|
201110398327.5 | Dec 2011 | CN | national |