1. Technical Field
The present disclosure relates to a touch display device and a control method of the touch display device.
2. Description of Related Art
Touch display devices, such as smart phones, provide a graphical user interface (GUI) having a plurality of touchable items, such as application icons. However, certain areas of the GUI may not be touchable, such as an edge area of the GUI. When the edge area is touched, a touch driver of the touch display device still obtains touch data and transmits the touch data to a processor of the touch display device, and the processor still analyzes and processes the touch data. Thus, power consumption of the processor is increased.
Therefore, what is needed is a means to overcome the above-described shortcoming.
The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of at least one embodiment. In the drawings, like reference numerals designate corresponding parts throughout the various views.
Reference will be made to the drawings to describe various embodiments.
The touch driver 120 defines a valid operation area according to the GUI 112 displayed on the display 100 and obtains information of the touch operation applied to the touch panel 110. In the embodiment, the touch driver 120 includes an area defining module 122, a touch detection module 124, and a determination module 126. In general, the word “module”, as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware, such as in an erasable programmable read only memory (EPROM). The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable medium include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives.
The area defining module 122 defines the valid operation area according to attribute information of the GUI 112. In detail, the attribute information includes a size and coordinates of four endpoints of the GUI 112 on the display 100 which four connection lines between the four endpoints form four edges of the GUI 112 and a location of each touchable item 114 on the GUI 112. The area defining module 122 first determines two scanning lines (e.g., X5 and XM-4) and two sensing lines (e.g., Y5 and YN-4) corresponding to four edges, respectively, of the GUI 112 according to the attribute information of the GUI 112. Then, a rectangular area surrounded by the two scanning lines and the two sensing lines is determined to be the valid operation area.
The touch detection module 124 detects the touch operation applied to the touch panel 110 and obtains information, such as a type and a location of the touch operation. The type of the touch operation can be a single-tap touch, a multiple-tap touch, or a sliding touch.
The determination module 126 determines whether the touch operation is within the valid operation area. When the touch operation is not located within the valid operation area, the touch operation is determined to be an invalid touch operation, and no touch signals are generated. When the touch operation is within the valid operation area, the touch operation is determined to be a valid touch operation. Then, the touch determination module 126 generates a touch signal according to the touch operation and sends the touch signal to the processor 130.
The processor 130 performs corresponding functions according to the received touch signals.
The storage 140 stores the attribute information of the GUI 112, the touchable items 114, the programs and/or applications corresponding to the touchable items 114, and other information of the touch display device 10. The storage 140 can be a flash memory, a read only memory, a hard disk drive, or other similar device.
In step S201, the display 100 displays a GUI 112. The GUI 112 includes a plurality of touchable items 114, and each touchable item 114 corresponds to a function or an application of the touch display device 10.
In step S202, the area defining module 122 defines a valid operation area according to the GUI 112 displayed on the display 100 and obtains information of a touch operation applied to the touch panel 110. Details of defining the valid operation area are provided above.
In step S203, the touch detection module 124 detects a touch operation applied to the touch panel 110.
In step S204, the determination module 126 determines whether the detected touch operation is within the valid operation area. When the touch operation is not within the valid operation area, the touch operation is determined to be an invalid touch operation, and step 203 is repeated. When the touch operation is within the valid operation area, step S205 is performed.
In step 205, the determination module 126 generates a touch signal according to the touch operation.
In step 206, the processor 130 controls the touch display device 100 perform a corresponding function according to the received touch signal.
In summary, the control method for the touch display device 10 sets a valid operation area corresponding to the graphic user interface. When a detected touch operation in not located within the valid operation area, the processor will not receive the touch data of the touch operation. Thus, the processor processes less data and consumes less power.
It is to be understood that even though numerous characteristics and advantages of the present embodiments have been set forth in the foregoing description, with details of the structures and functions of the embodiments, the disclosure is illustrative only; and changes may be in detail, especially in the matters of arrangement of parts within the principles of the embodiments to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
Number | Date | Country | Kind |
---|---|---|---|
101145312 | Dec 2012 | TW | national |