This application claims priority of Taiwan Patent Application No. 097111968, filed on Apr. 2, 2008, the entirety of which is incorporated by reference herein.
1. Field of the Invention
The invention relates to an electronic apparatus and control method thereof, and more particularly, to an electronic apparatus having a touch screen and control method thereof.
2. Description of the Related Art
Driven by user requirements, more and more electronic devices, especially handheld or portable electronic devices such as smart phones, personal digital assistants (PDAs), tablet PCs or Ultra Mobile PCs (UMPCs), and each of these comprises a touch screen. The touchable or touch screen can be directly touched by users and used as one of the main input devices. Specifically, users operate the electronic device through a touch-and-select function, whereby one of the items or programs displayed on the touch screen is controlled or performed by directly touching the item or program on the touch screen. For example, a user may touch-and-select a button or an icon that represents a multimedia playing function to perform a multimedia playback or touch-and-select a button or an icon that represents a GPS navigation function to perform a GPS related program.
For current touch screens, one operation can be performed by directly selecting a target item representing the operation. A pointing device, such as a finger(s), a fingertip(s) or a stylus, is applied for touching and making selections on the touch screen. That is, pointing devices are inevitable in the scenarios mentioned above, wherein users use them to perform specific functions on the electronic devices.
However, for a conventional resistive type touch screen, it can not recognize whether the finger or the stylus is selected. Since it means no difference between the finger contact and the stylus contact to the electronic apparatus, they are processed in the same way.
A control method for an electronic apparatus having a touch screen that can differentiate between contact or control by a finger or a stylus is disclosed for providing further control of the electronic apparatus for users.
The method comprises the following steps. Contact with the touch screen is first detected. Next, whether the contact is initiated by a finger or a stylus is determined. Thereafter, an input gesture type generated from a motion of the finger is determined based on a predetermined rule after determining that the contact is initiated by the finger. Then, visual effects of a target screen currently operating is triggered in response to the determined input gesture type.
An electronic apparatus is further disclosed. The electronic apparatus comprises a touch screen, a detection unit and a processing unit. The detection unit is used for detecting whether the touch screen is contacted. The processing unit determines whether the contact is initiated by a finger or a stylus. When the finger contact is identified, the motion of the finger is further analyzed to see if it can be matched with a predefined gesture pattern. If any gesture pattern is recognized in the former step, the visual effects corresponding to the designated pattern will be triggered.
Control methods and electronic apparatuses may take the form of an executable code embodied in any type of media. When the executable code is loaded and executed by a processor, the processor becomes the apparatus for practicing the disclosed method.
The invention can be more fully understood by reading the subsequent detailed description and examples with reference to the accompanying drawings, wherein:
The following description is of the best-contemplated mode of carrying out of the invention. This description is made for the purpose of illustrating the general principles of the invention and should not be taken in a limiting sense. The scope of the invention is best determined by reference to the appended claims.
The invention is described with reference to
Embodiments of the invention provide an electronic apparatus with a touch screen and related control method thereof, wherein the control method can distinguish whether contact of the touch screen is generated by a finger or a stylus and perform specific processes when the contact of the touch screen is generated by the finger for providing more intuitive operation of the electronic apparatus for users.
The touch screen 110 is capable of operating in a finger-touched mode or a stylus-touched mode and can be touched or contacted by a finger or a stylus. The electronic apparatus 100 may be, for example, any kind of handheld electronic device such as smart phones, personal digital assistants (PDAs), handheld computer systems or tablet computers, or any devices that allows a user to control the function of the devices by touching and selecting control items from a touch screen.
The detection unit 120 is used for detecting whether the touch screen 110 is touched by the finger or the stylus. For example, the detection unit 120 will continually detect whether the touch screen 110 is touched by a finger or a stylus and send a message to inform the processing unit 130 in response to a detected touch by the finger or the stylus, wherein the sent message comprises information about the pressure value generated by the touch or the contact. After contact with the touch screen 110 is detected by the detection unit 120, the processing unit 130 further determines whether the contact is initiated by the finger or the stylus. After it is determined that the contact is initiated by the finger, a motion analyzing unit 132 of the processing unit 130 further analyzes an input gesture type generated from a motion of the finger and transfers the input gesture to a control signal so as to control a target screen currently operating on the touch screen 110.
When the touch screen 110 is operated in the stylus-touched mode, the processing unit 130 may use the inputted contact signal to process as a normal contact event handling based on a predetermined procedure such as converting the contact signals to corresponding mouse messages. When the touch screen 110 is operated in the finger-touched mode, the processing unit 130 may convert the inputted contact signals to corresponding input gestures for performing a specific finger-touched event handling such as to scroll, to zoom in or out the target screen.
Thereafter, in step S220, the processing unit 130 acquires the pressure value P generated by the contact and determines whether the contact is initiated by the finger or the stylus accordingly. The processing unit 130 may determine whether the contact is initiated by the finger or the stylus according to a comparison result of the acquired pressure value and a threshold value TH, wherein the threshold value TH is defined to be a pressure value that differentiates pressure between a finger and a stylus. The processes showing how the processing unit 130 discriminates contact between a finger and a stylus according to the pressure value P are detailed below with reference to
First, the processing unit 130 determines whether the pressure value P is less than or equal to the threshold value TH (step S310). If so, the contact is determined to be initiated by the finger (step S320). When the pressure value P exceeds the threshold value TH (No in step S310), the contact is determined to be initiated by the stylus (step S330).
Thereafter, when determining that the contact is generated by the stylus (No in step S230), in step S240, the touch screen 110 is configured to be operated in the stylus-touched mode. Thus, the processing unit 130 processes the inputted contact signal as a normal contact event, for example, converts the contact signals to corresponding mouse messages. When determining that the contact is generated by the finger (Yes in step S230), in step S250, the touch screen 110 is configured to be operated in the finger-touched mode and the motion analyzing unit 132 of the processing unit 130 may further analyze an input gesture type generated from a motion of the finger and transfer the input gesture to a control signal based on a predetermined rule.
The motion analyzing unit 132 may detect contact points/signals within a predetermined time period and obtain the first and the second contact points, calculate a shift direction and a distance between the first and the second contact points and recognize the input gesture type according to a predetermined formula and the calculated distance.
The diagonal gesture is defined as a gesture that is generated by moving the finger from a diagonal direction of the target screen such as moving the finger from the left top position to the right bottom position of the target screen (e.g. dragging the finger from the point P1 toward the direction of the point P2 as shown in
The combined gesture is a gesture that is generated by combining the directional gesture and the diagonal gesture, which may be a combination of more then one directional gestures that forms a fixed combined shape such as a text shape or a normal shape. For example, a combined gesture, a first L-shaped gesture (e.g. dragging the finger from with the points from P1, P2 to P3 that form a L-shaped trace as shown in
With the different gestures, users may input or issue control commands with their finger to operate a target screen. It is to be noted that the input gestures may be predefined as desired and the processing unit 130 may perform an operation corresponding to a gesture according to the predefined input gesture.
Referring again to
Thereafter, in step S520, the user inputs a rotating gesture (such as the L-shaped gesture shown in
In summary, the electronic apparatus having a touch screen and the related control method of the invention, can differentiate between whether the touch screen is contacted by a finger or a stylus by determining a pressure value. When it is determined that the contact is initiated by the finger, an input gesture type generated from a motion of the finger is further determined so as to trigger the visual effects of the target screen currently operating in response to the determined input gesture type for providing a more diverse control method for users.
Electronic apparatuses and control methods thereof, or certain aspects or portions thereof, may take the form of an executable code (i.e., executable instructions) embodied in any type of media, such as floppy diskettes, CD-ROMS, hard drives, or any other machine-readable storage medium, wherein, when the executable code is loaded into and executed by a machine, such as a computer, the machine thereby becomes an apparatus for practicing the methods. The methods may also be embodied in the form of an executable code transmitted over some transmission medium, such as electrical wiring or cabling, through fiber optics, or via any other form of transmission, wherein, when the executable code is received and loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the disclosed methods. When implemented on a general-purpose processor, the executable code combines with the processor to provide a unique apparatus that operates analogously to application specific logic circuits.
Certain terms are used throughout the description and claims to refer to particular system components. As one skilled in the art will appreciate, consumer electronic equipment manufacturers may refer to a component by different names. This document does not intend to distinguish between components that differ in name but not function.
While the invention is described by way of example and in terms of preferred embodiment, it is to be understood that the invention is not limited thereto. To the contrary, it is intended to cover various modifications and similar arrangements (as would be apparent to the skilled in the art). Therefore, the scope of the appended claims should be accorded to the broadest interpretation so as to encompass all such modifications and similar arrangements.
Number | Date | Country | Kind |
---|---|---|---|
97111968 | Apr 2008 | TW | national |