A method for switching mouse operation mode, computing device and storage medium

By monitoring mouse input events and updating input data, the mouse operation mode is automatically switched, which solves the problem of difficulty in switching mouse operation modes in the existing technology and improves operation convenience and user experience.

CN113918037BActive Publication Date: 2024-09-24UNIONTECH SOFTWARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111340370.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-12
Publication Date
2024-09-24
Estimated Expiration
2041-11-12

AI Technical Summary

Technical Problem

In the existing technology, it is difficult and inconvenient to switch the mouse operation mode. Especially for left-handed users and people who use the mouse for a long time, it is easy to cause physical discomfort. Moreover, the existing method requires the user to manually set it in the operating system, which is cumbersome to operate.

Method used

By monitoring the mouse input event, obtaining the mirror data of the input data, updating the input event, and automatically switching the mouse operation mode when it is determined that the updated input event can be responded to, a computing device and a storage medium are provided to implement this method. .

Benefits of technology

It realizes simple and convenient switching of mouse operation modes, adapts to user habits, reduces the risk of physical discomfort, and improves the operating experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113918037B
    Figure CN113918037B
Patent Text Reader

Abstract

The present invention discloses a method for switching the operation mode of a mouse, a computing device and a storage medium. The method for switching the operation mode of a mouse is executed in a computing device, and the method includes: when an input event from a mouse is monitored, detecting whether the input event is responded to; if the input event cannot be responded to, obtaining input data from the input event; according to the input data, obtaining mirror input data of the input data; based on the mirror input data, updating the input event to obtain an updated input event; judging whether there is a response event for the updated input event; if there is, switching the operation mode of the mouse. The method for switching the operation mode of a mouse provided in the present application realizes corresponding switching of the operation mode of the mouse based on the operation habits of the user. The user does not need to change the operation mode by himself, making the switching of the operation mode of the mouse simpler and more convenient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method for switching a mouse operation mode, a computing device and a storage medium. Background Art

[0002] As we all know, the mouse is a peripheral input device for computing devices. Usually, the default operation mode is the right-hand operation mode, which brings inconvenience to many people who are used to using their left hand. At the same time, for people who need to sit in front of the computer for a long time to work, such as programmers and typists, using the mouse on one side in a fixed posture for a long time can easily cause physical discomfort, causing soreness of the wrist and arm, fatigue of the shoulder on one side of the body, and even occupational diseases in severe cases.

[0003] At present, the most commonly used method for switching the mouse operation mode is to set the left-hand operation mode of the mouse in the control panel of the operating system. This requires the user to manually find the setting information in the control panel and change it, which is troublesome. For people who are just starting to use computers, it is difficult to find the setting information of the mouse mode, and the operation is very inconvenient. Summary of the invention

[0004] In view of the above problems, the present invention is proposed to provide a method for switching mouse operation modes, a computing device and a storage medium that overcome the above problems or at least partially solve the above problems.

[0005] According to one aspect of the present invention, a method for switching a mouse operation mode is provided, which is executed in a computing device, and includes: when an input event from a mouse is monitored, detecting whether the input event is responded to; if the input event cannot be responded to, obtaining input data from the input event; according to the input data, obtaining mirror input data of the input data; based on the mirror input data, updating the input event to obtain an updated input event; determining whether there is a response event for the updated input event; if so, switching the operation mode of the mouse.

[0006] Optionally, in the method for switching the mouse operation mode according to the present invention, the input data at least includes: an input object and an input type.

[0007] Optionally, in the method for switching the mouse operation mode according to the present invention, the input object is the first button or the second button of the mouse, and according to the input data, the step of obtaining the mirror input data of the input data includes: if the input object in the input data is the first button, replacing it with the second button; if the input object in the input data is the second button, replacing it with the first button; using the replaced input object and the input type in the input data as the mirror input data of the input data.

[0008] Optionally, in the method for switching the mouse operation mode according to the present invention, the step of updating the input event based on the mirrored input data to obtain the updated input event includes: replacing the input data in the input event with the mirrored input data to obtain the updated input event.

[0009] Optionally, in the method for switching the mouse operation mode according to the present invention, after the step of switching the mouse operation mode if any, it further includes: responding to the input event based on the response event corresponding to the updated input event.

[0010] Optionally, in the method for switching the mouse operation mode according to the present invention, the step of switching the mouse operation mode, if any, includes: determining whether the computing device is set to switch the mouse operation mode by default; if so, switching the mouse operation mode; otherwise, providing a prompt to switch the mouse operation mode.

[0011] Optionally, in the method for switching the mouse operation mode according to the present invention, the step of prompting to switch the mouse operation mode includes: presenting a window for switching the mouse operation mode, the window including at least an interface for switching the mouse operation mode and an interface for prohibiting switching the mouse operation mode; and performing corresponding operations in response to selection of the interface for switching the mouse operation mode and the interface for prohibiting switching the mouse operation mode.

[0012] Optionally, in the method for switching the mouse operation mode according to the present invention, before the step of obtaining input data from the input event if the input event cannot be responded to, it also includes: determining whether the function of switching the mouse operation mode is turned on; and if so, executing the step of obtaining input data.

[0013] According to another aspect of the present invention, there is provided a computing device, comprising: at least one processor; and a memory storing program instructions, wherein the program instructions are configured to be suitable for being executed by the at least one processor, and the program instructions include instructions for executing the above method.

[0014] According to another aspect of the present invention, a readable storage medium storing program instructions is provided. When the program instructions are read and executed by a computing device, the computing device executes the above method.

[0015] According to the solution of the present invention, by acquiring the mirror input data of the input data of the mouse input event, and then updating the input event according to the mirror input data, and when it is determined that the updated input event can be responded to by the computing device, the mouse operation is switched. The operation mode of the mouse is switched accordingly based on the user's operation habits. The user does not need to change the operation mode by himself, making the switching of the mouse operation mode simpler and more convenient.

[0016] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0018] Figure 1 A schematic diagram of a computing device 100 according to one embodiment of the present invention is shown;

[0019] Figure 2 A flowchart of a method 200 for switching a mouse operation mode according to an embodiment of the present invention is shown;

[0020] Figure 3 A schematic flow chart of a method 300 for switching a mouse operation mode according to yet another embodiment of the present invention is shown. DETAILED DESCRIPTION

[0021] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0022] For a common semi-photoelectric structure mouse, when the mouse moves to the left, the ball inside the mouse rolls to the right due to the friction of the marker pad, driving the vertical axis to rotate to the left, and the disc grating at the end of the axis cuts the light of the infrared light-emitting tube on its side. Two receiving tubes are arranged in the upper and lower directions in the infrared receiving tube on the other side of the disc grating. When the upper receiving tube senses the infrared rays before the lower one, the control chip generates a signal to move to the left (or right), and when the lower receiving tube senses the infrared rays before the upper one, it generates a signal to move to the right (or left). The control chip then modulates these direction signals and sends them to the computer, correctly restoring the movement of the mouse on the screen. Another set of horizontal rotation devices also makes judgments, and the processing is exactly the same as the horizontal direction. When the mouse moves in an oblique direction, the horizontal and vertical rotation devices simultaneously output signals, so that the mouse arrow on the screen can move across the screen as the hand moves. When the left and right buttons of the mouse are pressed, the closure of the micro switch transmits the on-off signal to the control chip, which is then converted into a signal that the computer can recognize.

[0023] The functions of mouse buttons are usually to click the left button to confirm, and click the right button to cancel or other functions. When left-handed people use the mouse, due to the different arrangement order of the fingers of the left and right hands, the functions of the left and right buttons need to be interchanged. The original button functions do not conform to the operating habits of the left hand, which can easily lead to wrong operations.

[0024] Based on this, users can switch the mouse operation mode in the operating system. The existing technical solutions are relatively cumbersome for switching the mouse operation mode. It is necessary to go to the designated interface to perform related operations, and during the operation, it is also necessary to adapt to a mode that is not what one is used to. For left-hand mode switching, especially in scenarios where public computers frequently switch between left-hand mode and right-hand mode, it will cause great trouble to users and is not user-friendly.

[0025] In the prior art, although the operation mode of the mouse can be quickly switched by setting shortcut keys, for users who are not familiar with computers, they do not know how to trigger the shortcut keys, and the above problem cannot be solved.

[0026] In order to solve the above problems in the prior art, the solution of the present invention is proposed. An embodiment of the present invention provides a method for switching a mouse operation mode, which can be executed in a computing device. Figure 1 FIG. 1 shows a block diagram of a computing device 100 according to an embodiment of the present invention. Figure 1 As shown, in a basic configuration 102, computing device 100 typically includes system memory 106 and one or more processors 104. A memory bus 108 may be used for communication between processor 104 and system memory 106.

[0027] Depending on the desired configuration, the processor 104 can be any type of processor, including but not limited to: a microprocessor (μP), a microcontroller (μC), a digital information processor (DSP), or any combination thereof. The processor 104 can include one or more levels of cache such as a first-level cache 110 and a second-level cache 112, a processor core 114, and registers 116. An example processor core 114 can include an arithmetic logic unit (ALU), a floating point unit (FPU), a digital signal processing core (DSP core), or any combination thereof. An example memory controller 118 can be used with the processor 104, or in some implementations, the memory controller 118 can be an internal part of the processor 104.

[0028] Depending on the desired configuration, the system memory 106 can be any type of memory, including but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.) or any combination thereof. The physical memory in the computing device usually refers to the volatile memory RAM, and the data in the disk needs to be loaded into the physical memory before it can be read by the processor 104. The system memory 106 may include an operating system 120, one or more applications 122, and program data 124. The application 122 is actually a plurality of program instructions, which are used to instruct the processor 104 to perform corresponding operations. In some embodiments, in some embodiments, the application 122 can be arranged to execute instructions on the operating system by one or more processors 104 using the program data 124. The operating system 120 can be, for example, Linux, Windows, etc., which includes program instructions for processing basic system services and performing tasks that depend on hardware. The application 122 includes program instructions for implementing various user-desired functions. The application 122 can be, for example, a browser, instant messaging software, a software development tool (such as an integrated development environment IDE, a compiler, etc.), etc., but is not limited thereto. When the application 122 is installed into the computing device 100 , a driver module may be added to the operating system 120 .

[0029] When the computing device 100 starts running, the processor 104 reads and executes the program instructions of the operating system 120 from the memory 106. The application 122 runs on the operating system 120 and uses the interfaces provided by the operating system 120 and the underlying hardware to implement various functions desired by the user. When the user starts the application 122, the application 122 is loaded into the memory 106, and the processor 104 reads and executes the program instructions of the application 122 from the memory 106.

[0030] Computing device 100 also includes a storage device 132 including a removable storage 136 and a non-removable storage 138 , both of which are connected to storage interface bus 134 .

[0031] The computing device 100 may also include an interface bus 140 that facilitates communication from various interface devices (e.g., output devices 142, peripheral interfaces 144, and communication devices 146) to the basic configuration 102 via the bus / interface controller 130. Example output devices 142 include a graphics processing unit 148 and an audio processing unit 150. They can be configured to facilitate communication with various external devices such as a display or speakers via one or more A / V ports 152. Example peripheral interfaces 144 may include a serial interface controller 154 and a parallel interface controller 156, which may be configured to facilitate communication with external devices such as an external device 170 (e.g., a keyboard, a mouse, a pen, a voice input device, a touch input device) or other peripherals (e.g., a printer, a scanner, etc.) via one or more I / O ports 158. Example communication devices 146 may include a network controller 160, which may be arranged to facilitate communication with one or more other computing devices 162 via a network communication link via one or more communication ports 164.

[0032] A network communication link can be an example of a communication medium. Communication media can generally be embodied as computer-readable instructions, data structures, program modules in a modulated data signal such as a carrier wave or other transmission mechanism, and can include any information delivery medium. A "modulated data signal" can be a signal in which one or more of its data sets or its changes can be carried out in a manner that encodes information in the signal. As non-limiting examples, communication media can include wired media such as a wired network or a dedicated line network, and various wireless media such as sound, radio frequency (RF), microwave, infrared (IR) or other wireless media. The term computer-readable medium used herein can include both storage media and communication media.

[0033] The computing device 100 also includes a storage interface bus 134 connected to the bus / interface controller 130. The storage interface bus 134 is connected to a storage device 132, which is suitable for data storage. Example storage devices 132 may include removable storage 136 (such as CD, DVD, USB flash drive, removable hard disk, etc.) and non-removable storage 138 (such as hard disk drive HDD, etc.).

[0034] In the computing device 100 according to the present invention, the application 122 includes a plurality of program instructions for executing the method 200 .

[0035] Figure 2 The flowchart of a method 200 for switching a mouse operation mode according to an embodiment of the present invention is shown. The method 200 is suitable for being executed in a computing device (such as the aforementioned computing device 100). The computing device is coupled to a mouse.

[0036] like Figure 2 As shown, the purpose of method 200 is to implement a method for switching mouse operation modes, which starts from step S202. In step S202, when an input event from the mouse is monitored, it is detected whether the input event is responded to.

[0037] In a specific example, when you need to open a file or application, you usually double-click the file or application with the left mouse button. Then double-clicking the file with the left mouse button is an input event, and the file or application being opened is a response event (that is, the input event of double-clicking the file with the left mouse button can be responded to). Or, when you need to delete a file, you usually move the mouse cursor to the file, then hold down the left button, drag the file to the trash can, and then release the left button, and the file will be deleted. Then moving the mouse cursor to the file, then holding down the left button, and dragging the file to the trash can is an input event, and file deletion is a response event.

[0038] In addition, when a peripheral device such as a mouse or keyboard performs an input operation on a computing device, the object being operated generally first determines whether there is a response to the event. For example, when we double-click an application icon, the file will be opened. This is because the object being operated generally stores a configuration file for interactive response with the peripheral device. The configuration file will record which input events of the peripheral device will be responded to. For example, double-clicking the operated object with a mouse corresponds to opening the operated object, and right-clicking the operated object with a mouse corresponds to opening the menu bar of the operated object. If the user's input event cannot be responded to by the operated object (that is, the user's input event cannot match the configuration file), the input and output system in the operating system will then determine whether there is a system response event. If there is a response event, respond to the event. If there is no response event, the input event will generally be ignored.

[0039] In step S204, if the input event cannot be responded, the input data is obtained from the input event. Specifically, the input data includes at least an input object and an input type. In the present embodiment, the input object is the first button or the second button of the mouse. It should be noted that the mouse has two buttons and three buttons. The leftmost button (left button) is the pick button, the rightmost button (right button) is the eliminate button, and the middle button is the menu selection button. Due to the different software systems equipped with the mouse, the definitions of the above three buttons are different. Generally, the left button of the mouse can determine a certain position on the screen, which is the display point of the current input character in the character input state; in the graphic state, it is the reference point of the drawing. In the menu selection, the left button (pick button) can select menu items, and can also select drawing tools and commands. When a selection is made, the system will automatically execute the selected command. The mouse can move the cursor, select various operations and commands, and can easily edit and modify graphics, but it cannot input characters and numbers.

[0040] Although there may be more than one left button and right button on a mouse, for left-handed users, the left and right buttons of the mouse are generally the keys that are easily pressed incorrectly. Therefore, in this embodiment, the first button and the second button are only the left and right buttons of the mouse, and other buttons on the mouse are not considered.

[0041] Input type generally refers to single-click, double-click, drag and other operation types.

[0042] For example, for a right-handed user who operates the mouse, double-clicking a file or application with the left mouse button will open the file or application. For a left-handed user who operates the mouse, they generally double-click a file or application with the right mouse button. However, the input event of double-clicking a file or application with the right mouse button will not be responded to. Or, when a right-handed user operates the mouse, when deleting a file, they generally move the mouse cursor to the file, then hold down the left button, drag the file to the trash can, and then release the left button, and the file will be deleted. For a left-handed user who operates the mouse, they generally move the mouse cursor to the file, then hold down the right button, drag the file to the trash can, and then release the right button. However, this input event will not be responded to.

[0043] In step S206, according to the input data, the mirror input data of the input data is obtained. Specifically, if the input object in the input data is the first button, it is replaced with the second button. If the input object in the input data is the second button, it is replaced with the first button. The replaced input object and the input type in the input data are used as the mirror input data of the input data. Continuing with the above example, for the unresponsive input event of double-clicking a file or application with the right button of the mouse, the right double-click is replaced with the left double-click. If other operations are not modified, the mirror input data (right double-click) of the input data (left double-click) of the event can be obtained. For the right button press and hold, the file is dragged to the trash can, which is an unresponsive input event, and the right button press and hold is replaced with the left button press and hold. If other operations are not modified, the mirror input data (left button drag) of the input data (right button drag) of the event can be obtained.

[0044] In step S208, based on the mirrored input data, the input event is updated to obtain an updated input event. Specifically, the input data in the input event is replaced with the mirrored input data to obtain an updated input event. For example, for an input event of double-clicking a file or application with the right mouse button, the updated input event is double-clicking the file or application with the left mouse button. For an input event of pressing the right button and dragging the file to the trash can, the updated input event is pressing the left button and dragging the file to the trash can.

[0045] In step S210, it is determined whether there is a response event for the updated input event. Specifically, the updated event can be matched with a configuration file of the operated object or it can be determined whether there is a response event for the updated input event in the input / output system of the operating system.

[0046] In step S212, if there is a response event for the updated input event, the operation mode of the mouse is switched. Specifically, it is determined whether the computing device is set to switch the mouse operation mode by default. If so, the operation mode of the mouse is switched. Otherwise, a prompt to switch the mouse operation mode is given.

[0047] In some embodiments, the step of prompting to switch the mouse operation mode specifically includes:

[0048] A window for switching the mouse operation mode is presented, wherein the window includes at least an interface for switching the mouse operation mode and an interface for prohibiting switching the mouse operation mode. Specifically, a pop-up window prompt may be provided on the current display interface of the computing device.

[0049] In response to the selection of the mouse operation mode switching interface and the mouse operation mode switching prohibition interface, the corresponding operation is performed. If the user selects to switch the mouse operation mode in the pop-up window, the current mouse operation mode is switched (left-hand mode is switched to right-hand mode, or right-hand mode is switched to left-right mode). If the user selects to prohibit the mouse operation mode switching in the pop-up window, the mouse operation mode is not switched.

[0050] Of course, the user can choose whether to enable the mouse operation mode switching function. For example, some special workers such as testers and mouse quality inspectors do not want to switch the mouse operation mode when the input event is not responded to. Therefore, in some embodiments, the method 200, before step S202, further includes the step of determining whether the mouse operation mode switching function is enabled. If so, the step of obtaining the input data is executed.

[0051] It should be noted that if there is a response event for the updated input event, it means that the user wants to execute the event. Therefore, in some embodiments, after step S212, the method 200 further includes the step of responding to the input event based on the response event corresponding to the updated input event.

[0052] The method 200 provided in this embodiment, when monitoring an input event that cannot be responded to, whether the mirror event simulating the event can be responded to, if it can be responded to, it means that the input event may not be suitable for the current mouse operation mode, therefore, the operation mode is switched, and before the operation mode is switched, a pop-up window prompt is performed to prompt the operator whether to switch the mouse operation mode, and the user can choose whether to continue to pop up the page next time and whether to switch the mouse operation mode by default. This function can be shielded during the use of some users who do not need to trigger the switch, such as when an application is opened, which can be customized by the user. The operation method of the function of switching the operation mode of the mouse can also be set in the setting interface, such as the default can be to wake up the function by the right mouse button, and other buttons or keyboard shortcuts can also be set to set the system to wake up the function.

[0053] In a specific example, refer to Figure 3 , Figure 3 A schematic flow chart of a method 300 for switching a mouse operation mode according to yet another embodiment of the present invention is shown.

[0054] like Figure 3 As shown, in the method 300, the following steps are specifically included:

[0055] The first step is to determine whether the mouse operation mode switching function is enabled in the computing device. If not, the method 300 is not executed. If enabled, the second step is performed.

[0056] The first step is to monitor the mouse input events.

[0057] The second step is to determine whether the input event can be responded to. If it can be responded to, the response event is executed. If it cannot be responded to, it is determined whether the update input event of the input event can be responded to.

[0058] In the third step, if the update input event of the input event can be responded to, it is determined whether the computing device is set to switch the operation mode of the mouse by default, and if it is set, the operation mode of the mouse is directly switched. If it is not set, the fourth step is performed.

[0059] The fourth step is to determine whether the computer is set to not display pop-up windows. If not, a pop-up window prompt is displayed and the fifth step is performed. If it is set, the method 300 is terminated.

[0060] Step 5: Check whether the user chooses to switch the operation mode of the mouse. If yes, the operation mode of the mouse is switched. If the user chooses to prohibit switching, the method 300 ends.

[0061] The various techniques described herein may be implemented in combination with hardware or software, or a combination thereof. Thus, the method and apparatus of the present invention, or some aspects or parts of the method and apparatus of the present invention may be in the form of program codes (i.e., instructions) embedded in a tangible medium, such as a removable hard disk, a USB flash drive, a floppy disk, a CD-ROM, or any other machine-readable storage medium, wherein when the program is loaded into a machine such as a computer and executed by the machine, the machine becomes a device for practicing the present invention.

[0062] In the case where the program code is executed on a programmable computer, the computing device generally includes a processor, a storage medium readable by the processor (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device. The memory is configured to store the program code; the processor is configured to execute the method of the present invention according to the instructions in the program code stored in the memory.

[0063] By way of example and not limitation, readable media include readable storage media and communication media. Readable storage media stores information such as computer readable instructions, data structures, program modules or other data. Communication media generally embody computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and include any information transfer medium. Any combination of the above is also included within the scope of readable media.

[0064] In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the examples of the present invention. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages ​​can be utilized to implement the content of the present invention described herein, and the above description of specific languages ​​is for the purpose of disclosing the preferred embodiment of the present invention.

[0065] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0066] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the intention that the claimed invention requires more features than those expressly recited in each claim. Rather, as reflected in the claims, inventive aspects lie in less than all of the features of the individual embodiments previously disclosed. Therefore, the claims that follow the detailed description are hereby expressly incorporated into the detailed description, with each claim itself serving as a separate embodiment of the present invention.

[0067] Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in the devices described in the embodiment, or alternatively may be located in one or more devices different from the devices in the examples. The modules in the foregoing examples may be combined into one module or may be divided into multiple submodules.

[0068] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0069] Furthermore, those skilled in the art will appreciate that although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features from different embodiments is meant to be within the scope of the present invention and to form different embodiments.

[0070] In addition, some of the embodiments are described herein as methods or combinations of method elements that can be implemented by a processor of a computer system or by other devices that perform the functions. Therefore, a processor with necessary instructions for implementing the method or method elements forms a device for implementing the method or method elements. In addition, the elements described herein of the device embodiments are examples of devices for implementing the functions performed by the elements for the purpose of implementing the invention.

[0071] As used herein, unless otherwise specified, the use of ordinal numbers "first," "second," "third," etc. to describe common objects merely indicates that different instances of similar objects are involved, and is not intended to imply that the objects so described must have a given order in time, space, order, or in any other manner.

[0072] Although the present invention has been described according to a limited number of embodiments, it will be apparent to those skilled in the art, with the benefit of the above description, that other embodiments may be envisioned within the scope of the invention thus described. In addition, it should be noted that the language used in this specification is selected primarily for readability and teaching purposes, rather than for explaining or defining the subject matter of the present invention. Therefore, many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the appended claims. The disclosure of the present invention is illustrative and not restrictive with respect to the scope of the present invention, and the scope of the present invention is defined by the appended claims.

Claims

1. A method for switching a mouse operation mode, executed in a computing device, the computing device being coupled to a mouse, the method comprising: When an input event from the mouse is monitored, detecting whether the input event is responded to; If the input event cannot be responded to, then obtaining input data from the input event, the input data at least including an input object and an input type, the input object is the first button or the second button of the mouse, and the input type is the operation type of the mouse; According to the input data, obtaining mirror input data of the input data, specifically comprising: if the input object in the input data is a first key, replacing it with a second key as the replaced input object; if the input object in the input data is a second key, replacing it with the first key as the replaced input object; and using the replaced input object and the input type in the input data as the mirror input data of the input data; Based on the mirrored input data, updating the input event to obtain an updated input event; Determine whether there is a response event for the updated input event; If it exists, the operation mode of the mouse is switched.

2. The method of claim 1, wherein: The step of updating the input event based on the mirrored input data to obtain an updated input event includes: The input data in the input event is replaced with the mirrored input data to obtain an updated input event.

3. The method of claim 1, wherein: After the step of switching the operation mode of the mouse if the mode exists, the method further includes: The input event is responded to based on the response event corresponding to the updated input event.

4. The method of claim 1, wherein: The step of switching the operation mode of the mouse comprises: Determine whether the computing device is set to switch the mouse operation mode by default; If yes, switching the operation mode of the mouse; Otherwise, a prompt is given to switch the mouse operation mode.

5. The method of claim 4, wherein: The step of providing a prompt for switching the mouse operation mode comprises: Presenting a window for switching the mouse operation mode, wherein the window at least includes an interface for switching the mouse operation mode and an interface for prohibiting switching the mouse operation mode; In response to selection of the switching mouse operation mode interface and the prohibition of switching mouse operation mode interface, corresponding operations are performed.

6. The method of claim 1, wherein: Before the step of obtaining input data from the input event if the input event cannot be responded to, the method further includes: Determine whether the function of switching the mouse operation mode is enabled; If yes, the step of obtaining input data is performed.

7. A computing device comprising: at least one processor; and A memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, and the program instructions include instructions for executing the method according to any one of claims 1 to 6.

8. A readable storage medium storing program instructions, when the program instructions are read and executed by a computing device, the computing device executes the method according to any one of claims 1 to 6.