Screen rotation method and device, mobile device
Screen rotation method and device, mobile device
 CN 103,902,185 B
 Filed: 04/23/2014
 Issued: 02/12/2019
 Est. Priority Date: 04/23/2014
 Status: Active Grant
First Claim
1. a kind of screen rotation method characterized by comprisingStart position when two groups of fingers move on the screen and final position are obtained, two groups of fingers separation is in screen centerThe two sides of point；
 Wherein, center'"'"'s point of screen is being equidistant away from screen upper edge and lower edge and away from left margin and the right edgeEquidistant point；
One ray is determined by the center'"'"'s point of screen and the start position, directions of rays is by the screen center to instituteState start position；
When the final position is at the left side of the directions of rays, determine that the moving direction of finger is counterclockwise；
When the final position is at the right side of the directions of rays, determine that the moving direction of finger is clockwise；
If the moving direction of two groups of fingers is identical, by the moving direction Rotation screen；
Wherein, the final position is penetrated in the judgment method in the left side of the directions of rays and the final position describedThe judgment method on the right side in line direction, comprising;
The first coordinate system is established by the Xaxis of default coordinate system and the parallel direction of Yaxis using center'"'"'s point of screen as origin；
The angle [alpha] for determining the X positive axis of start position and the first coordinate system, angle is negative if starting point is above X positive axis, ifThen angle is positive below X positive axis；
The absolute value of α
should be less than 180 °
；
The second coordinate system is established by the Xaxis of default coordinate system and the parallel direction of Yaxis using start position as origin；
Determine the angle beta of the negative semiaxis of final position and the second coordinate system, if starting point is above X positive axis, then angle is negative, ifBelow X positive axis, then angle is positive, and the absolute value of β
should be less than 180 °
；
Obtain angle [alpha] angle beta；
As α
<
0 and β
<
0 and β
>
α
；
Or α
<
0 and β
>
0 andα
<
180 °
β
；
Or α
>
0 and β
<
α
；
Or α
>
0 and when alphabeta<
180 °
, determine handRefer to be mobile clockwise；
As β
=α
or  β
α
=180 °
, can not determine moving direction；
It is unsatisfactory under the condition moved clockwise is also unsatisfactory for the condition that can not determine moving direction in angle [alpha] angle beta, reallyDetermining moving direction is counterclockwise movement.
Chinese PRB Reexamination
Abstract
The present invention provides a kind of screen rotation method and devices, mobile device, the present invention does not use gravity sensor to come to mobile device direction of rotation, but it is moved on the screen using user using simple gesture, judge the finger moving direction of user for mobile clockwise or movement counterclockwise using software program, determining can be by moving direction Rotation screen after moving direction, whole process participates in can be realized the rotation of screen without gravity sensor, when without user'"'"'s frequent switching usage scenario and switch key, therefore both the user experience is improved also protects switch key for this method.
8 Claims

1. a kind of screen rotation method characterized by comprising
Start position when two groups of fingers move on the screen and final position are obtained, two groups of fingers separation is in screen centerThe two sides of point；  Wherein, center'"'"'s point of screen is being equidistant away from screen upper edge and lower edge and away from left margin and the right edgeEquidistant point；
One ray is determined by the center'"'"'s point of screen and the start position, directions of rays is by the screen center to instituteState start position； When the final position is at the left side of the directions of rays, determine that the moving direction of finger is counterclockwise； When the final position is at the right side of the directions of rays, determine that the moving direction of finger is clockwise； If the moving direction of two groups of fingers is identical, by the moving direction Rotation screen； Wherein, the final position is penetrated in the judgment method in the left side of the directions of rays and the final position describedThe judgment method on the right side in line direction, comprising; The first coordinate system is established by the Xaxis of default coordinate system and the parallel direction of Yaxis using center'"'"'s point of screen as origin； The angle [alpha] for determining the X positive axis of start position and the first coordinate system, angle is negative if starting point is above X positive axis, ifThen angle is positive below X positive axis；
The absolute value of α
should be less than 180 °
；The second coordinate system is established by the Xaxis of default coordinate system and the parallel direction of Yaxis using start position as origin； Determine the angle beta of the negative semiaxis of final position and the second coordinate system, if starting point is above X positive axis, then angle is negative, ifBelow X positive axis, then angle is positive, and the absolute value of β
should be less than 180 °
；Obtain angle [alpha] angle beta； As α
<
0 and β
<
0 and β
>
α
；
Or α
<
0 and β
>
0 andα
<
180 °
β
；
Or α
>
0 and β
<
α
；
Or α
>
0 and when alphabeta<
180 °
, determine handRefer to be mobile clockwise；As β
=α
or  β
α
=180 °
, can not determine moving direction；It is unsatisfactory under the condition moved clockwise is also unsatisfactory for the condition that can not determine moving direction in angle [alpha] angle beta, reallyDetermining moving direction is counterclockwise movement.
 Wherein, center'"'"'s point of screen is being equidistant away from screen upper edge and lower edge and away from left margin and the right edgeEquidistant point；

2. the method as described in claim 1, which is characterized in that include at least a finger in every group of finger.

3. the method as described in claim 1, which is characterized in that further include:
If wherein one group of finger not can determine that moving direction in two groups of fingers, by the moving direction rotary screen of another group of fingerCurtain.

4. method as claimed in claim 1 or 3, which is characterized in that include:
 by the moving direction Rotation screen
By the moving direction by 90 °
of screen rotation.
 by the moving direction Rotation screen

5. the method as described in claim 1, which is characterized in that the start position when obtaining two groups of fingers and moving on the screenAfter final position further include:

Obtain starting time corresponding with the start position and the final position and terminal time； When the difference of the terminal time and the starting time is less than preset threshold, then subsequent process is executed, is otherwise terminatedProgram.


6. method as claimed in claim 5, which is characterized in that further include:

The starting time includes first starting time and the second starting time of two groups of fingers； When first starting time and second starting time absolute difference within a preset range, then execute rear onward encodingOtherwise sequence terminates program.


7. a kind of screen rotating device characterized by comprising
Acquiring unit, for obtaining start position and final position when two groups of fingers move on the screen, two groups of fingersSeparation is in the two sides of center'"'"'s point of screen；  Wherein, center'"'"'s point of screen is being equidistant and away from a left side away from screen upper edge and lower edgeThe equidistant point at edge and the right edge；
Determine ray unit, for determining a ray by the center'"'"'s point of screen and the start position, directions of rays isBy the screen center to the start position； Direction unit is determined, for determining the moving direction of finger when the final position is at the left side of the directions of raysIt is counterclockwise；
When the final position is at the right side of the directions of rays, determine that the moving direction of finger is clockwise；Rotary unit, if the moving direction for two groups of fingers is identical, by the moving direction Rotation screen； Wherein, the final position is penetrated in the judgment method in the left side of the directions of rays and the final position describedThe judgment method on the right side in line direction, comprising; The first coordinate system is established by the Xaxis of default coordinate system and the parallel direction of Yaxis using center'"'"'s point of screen as origin； The angle [alpha] for determining the X positive axis of start position and the first coordinate system, angle is negative if starting point is above X positive axis, ifThen angle is positive below X positive axis；
The absolute value of α
should be less than 180 °
；The second coordinate system is established by the Xaxis of default coordinate system and the parallel direction of Yaxis using start position as origin； Determine the angle beta of the negative semiaxis of final position and the second coordinate system, if starting point is above X positive axis, then angle is negative, ifBelow X positive axis, then angle is positive, and the absolute value of β
should be less than 180 °
；Obtain angle [alpha] angle beta； As α
<
0 and β
<
0 and β
>
α
；
Or α
<
0 and β
>
0 andα
<
180 °
β
；
Or α
>
0 and β
<
α
；
Or α
>
0 and when alphabeta<
180 °
, determine handRefer to be mobile clockwise；As β
=α
or  β
α
=180 °
, can not determine moving direction；It is unsatisfactory under the condition moved clockwise is also unsatisfactory for the condition that can not determine moving direction in angle [alpha] angle beta, reallyDetermining moving direction is counterclockwise movement.
 Wherein, center'"'"'s point of screen is being equidistant and away from a left side away from screen upper edge and lower edgeThe equidistant point at edge and the right edge；

8. a kind of mobile device, which is characterized in that use the method as described in claim 1.
Specification(s)