Portable electronic apparatus and touch detecting method thereof
First Claim
1. A touch detecting method of a portable electronic apparatus, adapted for the portable electronic apparatus having a touch screen and a gravity sensor, the touch detecting method comprising:
- detecting a screen wake-up signal in a screen-off state, wherein the screen wake-up signal is generated in response to a power button or a Home button being pressed, and a touch and display function of the touch screen is disabled in the screen-off state;
in response to detecting the screen wake-up signal, activating the touch screen to detect a touch and determining whether the touch is located in an edge area of the touch screen at an instant of waking the touch screen from the screen-off state, wherein before the step of determining whether the touch is located in the edge area of the touch screen, the touch detecting method further comprises;
detecting an orientation of the portable electronic apparatus by using the gravity sensor, wherein the orientation is one of a transverse state and a longitudinal state; and
setting the edge area for determining a location of the touch to be two edge areas of the touch screen in a transverse direction under the orientation;
detecting whether the orientation changes by using the gravity sensor; and
in response to determining the orientation changes, adjusting the edge area for determining the location of the touch to be the two edge areas of the touch screen in the transverse direction under the changed orientation;
in response to detecting the touch is located in the edge area of the touch screen, accumulating a touch time during which the touch continues and no other touch is detected and determining whether the touch time exceeds a preset time; and
in response to determining the touch time exceeds the preset time, removing related information of the touch from an event triggered by the touch until the touch ends.
1 Assignment
0 Petitions
Accused Products
Abstract
A portable electronic apparatus and a touch detecting method thereof are provided. In the method, a touch is detected by a touch screen of the portable electronic apparatus. Then, whether the touch is located in an edge area of the touch screen is determined. If it is determined that the touch is located in the edge area of the touch screen, the touch time during which the touch continues and no other touch is detected by the touch screen is accumulated, and whether the accumulated touch time exceeds a preset time is determined. If the accumulated touch time exceeds the preset time, related information of the touch is removed from an event triggered by the touch until the touch ends.
11 Citations
4 Claims
-
1. A touch detecting method of a portable electronic apparatus, adapted for the portable electronic apparatus having a touch screen and a gravity sensor, the touch detecting method comprising:
-
detecting a screen wake-up signal in a screen-off state, wherein the screen wake-up signal is generated in response to a power button or a Home button being pressed, and a touch and display function of the touch screen is disabled in the screen-off state; in response to detecting the screen wake-up signal, activating the touch screen to detect a touch and determining whether the touch is located in an edge area of the touch screen at an instant of waking the touch screen from the screen-off state, wherein before the step of determining whether the touch is located in the edge area of the touch screen, the touch detecting method further comprises; detecting an orientation of the portable electronic apparatus by using the gravity sensor, wherein the orientation is one of a transverse state and a longitudinal state; and setting the edge area for determining a location of the touch to be two edge areas of the touch screen in a transverse direction under the orientation; detecting whether the orientation changes by using the gravity sensor; and in response to determining the orientation changes, adjusting the edge area for determining the location of the touch to be the two edge areas of the touch screen in the transverse direction under the changed orientation; in response to detecting the touch is located in the edge area of the touch screen, accumulating a touch time during which the touch continues and no other touch is detected and determining whether the touch time exceeds a preset time; and in response to determining the touch time exceeds the preset time, removing related information of the touch from an event triggered by the touch until the touch ends. - View Dependent Claims (2)
-
-
3. A portable electronic apparatus comprising:
-
a touch screen, configured to detect a touch; a gravity sensor, configured to detect an orientation of the portable electronic apparatus, wherein the orientation is one of a transverse state and a longitudinal state; a storage unit, configured to record a plurality of modules; and at least one processing unit, connected to the touch screen and the storage unit, and configured to access and execute the modules recorded in the storage unit, the modules comprising; an edge area setting module, setting an edge area for determining a location of the touch to be two edge areas of the touch screen in a transverse direction under the orientation detected by the gravity sensor and adjusting the edge area for determining the location to be the two edge areas of the touch screen in the transverse direction under the changed orientation in response to detecting the orientation changes; a touch location determination module, activating the touch screen to detect the touch and determining whether the touch is located in the edge area of the touch screen at an instant of waking the touch screen from a screen-off state in response to detecting a screen wake-up signal in the screen-off state, wherein the screen wake-up signal is generated in response to a power button or a Home button being pressed, and a touch and display function of the touch screen is disabled in the screen-off state; a touch time determination module, accumulating a touch time during which the touch continues and no other touch is detected by the touch screen in response to the touch location determination module determining the touch is located in the edge area of the touch screen, and determining whether the touch time exceeds a preset time; and a touch information removing module, removing related information of the touch from an event triggered by the touch until the touch ends in response to the touch time determination module determining the touch time exceeds the preset time. - View Dependent Claims (4)
-
Specification