Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that when an element is referred to as being "electrically connected" to another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "electrically connected" to another element, it can be connected by contact, e.g., by wires, or by contactless connection, e.g., by contactless coupling.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 1 and fig. 2, anelectronic device 100 according to a preferred embodiment of the invention is provided. Theelectronic device 100 may be a mobile device such as a mobile phone, a tablet, a wearable device, etc. Theelectronic device 100 includes adisplay 11, acapacitive sensor 13, apressure sensor 15, aswitch unit 17, asensing unit 19, aprocessing unit 21, and astorage unit 23.
In this embodiment, thedisplay screen 11 is used to provide a graphical user interface for displaying information to a user.
Thecapacitive sensor 13 is disposed in thedisplay screen 11. Thecapacitive sensor 13 is electrically connected to theprocessing unit 21. Thecapacitive sensor 13 is used for sensing a touch action on thedisplay screen 11 and generating a touch signal. Thecapacitive sensor 13 transmits the touch signal to theprocessing unit 21.
In the present embodiment, theelectronic device 100 includes fourpressure sensors 15. The fourpressure sensors 15 are respectively disposed below four corners of thedisplay screen 11, and are electrically connected to theprocessing unit 21. Thepressure sensor 15 is used for sensing the pressing action on thedisplay screen 11 and generating a pressure signal, and transmitting the pressure signal to theprocessing unit 21.
Of course, it is understood that the number of thepressure sensors 15 in theelectronic device 100 is not limited to four, and the number thereof can be adjusted according to specific requirements. The position of thepressure sensor 15 is not limited to be disposed below thedisplay screen 11, and may be adjusted according to specific requirements. For example, thepressure sensor 15 may be disposed inside or above the surface of thedisplay screen 11. Thepressure sensors 15 are not limited to be disposed at four corners of thedisplay screen 11, and may be disposed at other positions, such as two sides of thedisplay screen 11.
In the present embodiment, theelectronic device 100 includes two touch modes, i.e., a first touch mode and a second touch mode. When theelectronic device 100 operates in the first touch mode, thecapacitive sensor 13 and thepressure sensor 15 are both in an operating state, that is, the first touch mode is a cooperative touch mode. When theelectronic device 100 operates in the second touch mode, thepressure sensor 15 is in an operating state, and thecapacitive sensor 13 is in a non-operating state, that is, when theelectronic device 100 operates in the second touch mode, thecapacitive sensor 13 is disabled, that is, the second touch mode is a pressure touch mode.
It is understood that, in the present embodiment, theswitch unit 17 is a mechanical switch, such as a toggle switch, which is disposed on a side of theelectronic device 100. Theswitch unit 17 is electrically connected to theprocessing unit 21, and is configured to control switching between two touch modes of theelectronic device 100. Specifically, when theswitch unit 17 is toggled, theswitch unit 17 generates a toggle signal and transmits the toggle signal to theprocessing unit 21. Theprocessing unit 21 controls the switching of the two touch modes of theelectronic device 100 according to the toggle signal. In this embodiment, theswitch unit 17 is configured such that when theswitch unit 17 is toggled to thefirst position 171, theswitch unit 17 generates a first toggle signal and sends the first toggle signal to theprocessing unit 21. Theprocessing unit 21 switches theelectronic device 100 to the first touch mode according to the first toggle signal. When theswitch unit 17 is toggled to thesecond position 173, theswitch unit 17 generates a second toggle signal different from the first toggle signal and sends the second toggle signal to theprocessing unit 21. Theprocessing unit 21 switches theelectronic device 100 to the second touch mode according to the second toggle signal.
It is understood that in other embodiments, theswitch unit 17 may also be a push switch. When theswitch unit 17 is pressed, theswitch unit 17 generates a pressing signal and transmits the pressing signal to theprocessing unit 21. Theprocessing unit 21 controls the switching between the two touch modes of theelectronic device 100 according to the pressing signal. In the present embodiment, theswitch unit 17 is integrated with the function key of theelectronic device 100. Theprocessing unit 21 is configured to trigger the switching of the one-touch mode every time the pressing signal of theswitch unit 17 is received. For example, when theelectronic device 100 is currently in the first touch mode, if theswitch unit 17 is pressed, theelectronic device 100 is switched to the second touch mode. When theelectronic device 100 is currently in the second touch mode, if theswitch unit 17 is pressed, theelectronic device 100 is switched to the first touch mode.
Thesensing unit 19 is disposed in theelectronic device 100 and electrically connected to theprocessing unit 21. Thesensing unit 19 is used for sensing the motion of theelectronic device 100, such as the movement or shaking of theelectronic device 100, generating a motion signal and transmitting the motion signal to theprocessing unit 21. In this embodiment, thesensing unit 19 is an accelerometer, and the motion signal is an acceleration signal. Of course, it is understood that thesensing unit 19 is not limited to the accelerometer, but may be other sensing mechanisms, as long as thesensing unit 19 can sense the movement of theelectronic device 100.
In this embodiment, shaking theelectronic device 100 while the user presses thedisplay screen 11 may also implement switching between two touch modes of theelectronic device 100. Specifically, thepressure sensor 15 senses the pressing action on thedisplay screen 11 and generates a pressure signal, and transmits the pressure signal to theprocessing unit 21. Thesensing unit 19 senses the motion of theelectronic device 100 and generates and transmits a corresponding motion signal of theelectronic device 100 to theprocessing unit 21. Theprocessing unit 21 receives the pressure signal from thepressure sensor 15 and the motion signal from thesensing unit 19, processes the pressure signal and the motion signal, and determines whether to switch the touch mode. For example, when theprocessing unit 21 receives the pressure signal and the motion signal in the same time period, theprocessing unit 21 compares a pressure value included in the received pressure signal with a preset pressure threshold value, and compares a motion value included in the received motion signal with a preset motion threshold value. When theprocessing unit 21 determines that the pressure value and the motion value both exceed the corresponding threshold values, the switching of the one-time touch mode is triggered. It is understood that the preset pressure threshold and the preset motion threshold are both stored in thestorage unit 23. In other embodiments, thestorage unit 23 can also be used for storing other data and signals.
It can be understood that, according to the above description, in the present embodiment, theelectronic device 100 can control the switching of the two touch modes in three ways, that is, theelectronic device 100 can trigger the switching of the touch modes by toggling theswitch unit 17, pressing theswitch unit 17, and simultaneously pressing thedisplay screen 11 and shaking theelectronic device 100.
It is understood that, in the present embodiment, the toggling of theswitch unit 17, the pressing of theswitch unit 17, and the simultaneous pressing of thedisplay screen 11 and shaking of theelectronic device 100 are defined as preset operations. For example, the toggling of theswitch unit 17 is defined as a first preset operation, the pressing of theswitch unit 17 is defined as a second preset operation, and the simultaneous pressing of thedisplay screen 11 and shaking of theelectronic device 100 is defined as a third preset operation.
Referring to fig. 3, a touch mode switching method applied to theelectronic device 100 according to an embodiment of the invention includes the following steps.
In step S1, whether a preset operation is detected is determined, if yes, step S2 is performed, and if no, step S1 is continued.
Specifically, theprocessing unit 21 detects whether a toggle signal is received from theswitch unit 17. If yes, judging that a first preset operation is detected; if not, theprocessing unit 21 further detects whether a pressing signal is received from theswitch unit 17. If yes, it is determined that the second preset operation is detected, and if not, theprocessing unit 21 further detects whether the pressure signal from thepressure sensor 15 and the motion signal from thesensing unit 19 are received in the same time period. If yes, theprocessing unit 21 compares the pressure value and the motion value with a preset pressure threshold value and a preset motion threshold value respectively, and when both the pressure value and the motion value exceed the corresponding threshold values, it is determined that a third preset operation is detected; if not, execution continues with S1.
In step S2, the current touch mode is determined.
Specifically, theprocessing unit 21 determines a current touch mode of theelectronic device 100, and if the current touch mode of theelectronic device 100 is the first touch mode, executes step S3. If the touch mode of theelectronic device 100 is the second touch mode, step S4 is executed.
In step S3, the touch screen is switched to the second touch mode. Theprocessing unit 21 switches theelectronic device 100 to a second touch mode to execute a function corresponding to the second touch mode, that is, theprocessing unit 21 configures thepressure sensor 15 to be in an operating state and configures thecapacitive sensor 13 to be in a non-operating state.
In step S4, the touch screen is switched to the first touch mode. Theprocessing unit 21 switches theelectronic device 100 to a first touch mode to execute a function corresponding to the first touch mode, that is, theprocessing unit 21 configures both thecapacitive sensor 13 and thepressure sensor 15 to be in a working state.
Obviously, theelectronic device 100 is provided with thepressure sensor 15, theswitch unit 17 and thesensing unit 19, so as to control the switching of the two touch modes of theelectronic device 100 in three different ways. It is understood that theelectronic device 100 may also switch the touch mode of theelectronic device 100 by only one of the three manners or a combination of any two manners.
Although the present invention has been described in detail with reference to the preferred embodiments, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted for elements thereof without departing from the spirit and scope of the present invention.