1. Technical Field
The present disclosure relates to electronic devices and, particularly, to an electronic device capable of defining touch gestures, and a method for the device.
2. Description of Related Art
Nowadays, electronic devices with touch input functions are very popular. People can control the electronic device by using touch gestures, such as tap, double tap, and flick quickly and conveniently. However, people can only execute a function by using a predetermined touch gesture set by the producer. For example, usually, people can unlock the electronic device only by moving the finger from left to right but cannot unlock the electronic device by using other touch gestures.
Therefore, it is desirable to provide an electronic device with touch input functions to overcome the above-mentioned limitations.
Many aspects of the present disclosure should be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
Embodiments of the present disclosure will now be described in detail below, with reference to the accompanying drawings.
Referring to
The touch panel 10 can be a single-point touch panel or a multi-point touch panel. In one embodiment, the touch panel 10 combines with the display unit 50 to form a touch screen. The touch detection circuit 20 produces touch signals in response to touches on the touch panel 10.
The processing unit 30 includes a gesture recognition module 301 and a defining module 302. The gesture recognition module 301 receives touch signals from the touch detection circuit 20 and recognizes a touch gesture according to the touch signals.
The defining module 302 controls the electronic device 1 to enter a defining mode in response to a defining operation from the user, and prompts the user to define a touch gesture for a function of the electronic device 1 in the defining mode. For example, the defining module 302 controls the display unit 50 to display the functions of the electronic device 1 for selection, prompts the user to define the touch gesture for a selected function, and stores the defined touch gesture associated with the function in the storage unit 40. In more detail, when a function of unlocking the electronic device 1 (hereinafter, “the unlock function”) is selected, the defining module 302 prompts the user to define the touch gesture for the unlock function, the user can input the touch gesture corresponding to the unlock function discretionary. The gesture detection module 301 determines the touch gesture input by the user according to the touch signals. The defining module 302 establishes a map between the recognized touch gesture input by the user and the selected function, and stores the map between the recognized touch gesture and the selected function to the storage unit 40. In one embodiment, the electronic device 1 provides a menu including a menu item for defining touch gestures. In another embodiment, the electronic device 1 provides a predetermined button for defining touch gestures. In a further embodiments, the electronic device 1 provides a combination of the menu and the predetermined button.
The processing unit 30 further includes a determining module 303 and an executing module 304. The defining module 302 is further configured to control the electronic device 1 to switch from the defining mode to a normal mode when receiving an operation of finishing defining touch gestures. In the normal mode, when the user touches the touch panel 10, the touch detection circuit 20 produces the touch signals in response to the touch operation. The gesture recognition module 301 determines the touch gesture according to the touch signals. The determining module 303 determines the function corresponding to the touch gesture according to the map between the touch gesture and the function. The executing module 304 executes the function.
In step S201, the defining module 302 controls the electronic device to enter a defining mode in response to a defining operation from a user.
In step S202, the defining module 302 prompts the user to define a touch gesture for a function selected by the user.
In step S203, the gesture recognition module 301 recognizes the touch gesture input by the user.
In step S204, the defining module 302 establishes a map between the touch gesture and the function, and stores the map between the touch gesture and the function to the storage unit 40.
In step S401, the gesture recognition module 301 recognizes touch gesture input by the user.
In step S402, the determining module 303 determines the function corresponding to the touch gesture according to the map between the touch gesture and the function stored in the storage unit 40.
In step S403, the executing module 304 executes the function.
It is believed that the present embodiments and their advantages will be understood from the foregoing description, and it will be apparent that various changes may be made thereto without departing from the spirit and scope of the disclosure or sacrificing all of its material advantages, the examples hereinbefore described merely being exemplary embodiments of the present disclosure.
| Number | Date | Country | Kind |
|---|---|---|---|
| 201010137130.1 | Mar 2010 | CN | national |