CPC G06F 3/017 (2013.01) [G06F 3/0488 (2013.01)] | 8 Claims |
1. An electronic device, comprising:
a touch module, configured to generate a touch signal;
a motion sensor, configured to detect motion of the electronic device to generate motion data;
a memory, storing a preset motion condition; and
a control unit, electrically connected to the touch module, the motion sensor, and the memory, and configured to:
receive the motion data; and
when the motion data meets a start condition, determine whether the motion data meets the preset motion condition or not, and generate a virtual touch signal when the motion data meets the preset motion condition;
wherein the preset motion condition is whether a value change of the motion data reaches an acceleration threshold and a duration for which the motion data reaches the acceleration threshold is less than or equal to a motion time;
wherein the start condition is whether a value change of the motion data exceeds a start threshold;
wherein the acceleration threshold is greater than the start threshold;
wherein the virtual touch signal is used to simulate the touch signal;
wherein the electronic device is set to generating the virtual touch signal after receiving a start signal; and
wherein the start signal is a gesture signal received by the touch module or a motion mode detected by the motion sensor.
|