Abstract:
A method for avoiding mutual interference between multiple input devices is provided. The method is applied to an electronic device. The method includes: setting corresponding priority for multiple input devices of the electronic device according to a priority setting result; determining whether any other input device is functioning when a first input event of a first input device is received; and when a second electronic device is functioning, determining whether to process or ignore the first input event according to the priority of the first input device and the priority of the second input device. When the priority of the first input device is higher than that of the second input device, the first input event is processed. When the priority of the second input device is higher than that of the first input device, the first input event is ignored.