1. Technical Field
Embodiments of the present disclosure relate to touch screen technology, and particularly to an electronic device and method for avoiding mistouch on a touch screen.
2. Description of Related Art
More electronic devices are having large touch screens. To enlarge a touch screen, some manufacturers decrease the frames of the electronic device around the touch screen. Thus, when a user holds the electronic device by hand to operate the touch screen, mistouch easily occurs on specified regions of the touch screen that are close to the frames of the electronic device. For example, the user's hand overlays the specified regions of the touch screen when the user implements a single-touch operation on the touch screen, the single-touch operation is determined to be a multi-touch operation on the touch screen, thus a mistouch occurs on the touch screen. Accordingly, it is difficult to avoid mistouch on the touch screens. Therefore, an improved method for avoiding mistouch on a touch screen is desired.
The disclosure, including the accompanying drawings, is illustrated by way of examples and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.”
All of the processes described below may be embodied in, and fully automated via, functional code modules executed by one or more general purpose electronic devices or processors. The code modules may be stored in any type of non-transitory computer-readable medium or other storage device. Some or all of the methods may alternatively be embodied in specialized hardware. Depending on the embodiment, the non-transitory computer-readable medium may be a hard disk drive, a compact disc, a digital video disc, a tape drive or other suitable storage medium.
The at least one processor 11 is used to execute the management system 10 and other applications, such as an operating system, installed in the electronic device 1. The storage devices 12 store one or more programs, such as the operating system and applications of the electronic device 1. The storage device 12 can be a storage card, such as a memory stick, a smart media card, a compact flash card, a secure digital card, or any other type of memory storage device.
The touch screen 13 may display visible data and receive touch signals in response to touch operations.
In some embodiments, the management system 10 may preset one or more specified regions (e.g., regions 130 as shown in
In one embodiment, the management system 10 may include one or more modules, for example, a setting module 100, a determination module 102, and a response module 104. 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 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.
In step S2, the setting module 100 presets one or more specified regions on the touch screen 13 to avoid mistouch occurring on the specified regions. The setting module 100 predetermines a coordinate system based on the touch screen 13, and presets coordinate ranges of the specified regions.
In some embodiments, the setting module 100 may preset the specified regions by the following steps. The setting module 100 determines a length and a width of the touch screen 13 according to a resolution of the touch screen 13, and then determines a length and a width of the specified regions. For example, as mentioned above, the specified regions as shown in
It is assumed that the predetermined percentage is P%, and the width of the touch screen 13 is W, an origin of the coordinate system is a bottom left vertex of the touch screen 13. The width of the touch screen 13 is determined to be an X axis, and the length of the touch screen 13 is determined to be a Y axis. Thus, the setting module 100 may preset an X coordinate range of one region 130 on the left of the touch screen 13 to be (0, W*P%), and preset an X coordinate range of one region 130 on the right of the touch screen 13 to be (W*(1−P%), W). The predetermined percentage may be modified according to user requirements.
The setting module 100 further records the coordinate range of the specified regions in a board support package (BSP) layer of the electronic device 1. Thus, the operating system and other layers of the electronic device 1 may identify touch operations of the user according to the preset specified regions.
In step S4, the determination module 102 determines whether a touch signal is received from the specified regions. When a touch signal is received from the specified regions, step S6 is implemented. When no touch signal is received from the specified regions, step S4 is repeated.
In step S6, the determination module 102 determines whether a single-touch operation or a multi-touch operation is implemented. When a single-touch operation is implemented, step S8 is implemented. When a multi-touch operation is implemented, step S10 is implemented. For example, when a single touch signal is received within a predetermined time interval, the determination module 102 determines that a single-touch operation is implemented. When at least two touch signals are received within the predetermined time interval, the determination module 102 determines that a multi-touch operation is implemented.
In step S8, the response module 104 executes a response to the touch signal received from the specified regions when the single-touch operation is implemented. The response module 104 reports coordinates of the touch signal received from the specified region to a user layer of the electronic device 1.
In other embodiments, when the single-touch operation is implemented, the response module 104 may further determine whether a single-click or a double-click is implemented, and execute a response to the touch signal received from the specified regions when a double-click is implemented.
In step S10, the response module 104 ignores the touch signal received from the specified regions when the multi-touch operation is implemented, and executes a response to touch signals received from non-specified region on the touch screen 13. That is, the response module 104 executes the response to a touch event based on the touch signals received from the non-specified region, by reporting coordinates of the touch signals received from the non-specified region to the user layer of the electronic device 1.
The other layers of the electronic device 1 provide the response to the reported coordinates. For example, the electronic device may open a file, display an image, or invoke a function according to the touch signals.
In other embodiments, the response module 104 may further output a prompt to ask the user whether a mistouch occurs by displaying prompt information on a window. When the user clicks a “YES” icon in the window, the response module 104 executes step S10. When the user clicks a “NO” icon in the window, the response module 104 reports coordinates of all touch signals to the user layer.
It should be emphasized that the above-described embodiments of the present disclosure, particularly, any embodiments, are merely possible examples of implementations, set forth for a clear understanding of the principles of the disclosure. Many variations and modifications may be made to the above-described embodiment(s) of the disclosure without departing substantially from the spirit and principles of the disclosure. All such modifications and variations are intended to be included herein within the scope of this disclosure and the present disclosure is protected by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
2012105738268 | Dec 2012 | CN | national |