A kind of method, system and mobile terminal locking interface display directionTechnical field
The present invention relates to mobile phone games technical fields, and in particular to it is a kind of lock interface display direction method, beSystem and mobile terminal.
Background technique
There are two types of modes, i.e. screen rotation mode and non-screen rotating mould for the screen display mode of existing mobile terminalFormula.When carrying out screen rotation mode and non-screen rotary mode switches, needs first to exit the content currently checked, set in displayIt is chosen in setting " screen rotation ", or " screen rotation " is revised as non-selected state.
For just on mobile terminals for the user of operating handset game, when it needs to modify screen display mode,Need to exit the mobile phone games operated, preceding to go in display setting to modify, so that the step of user's operation increases, this is not easy toUser's operation reduces user's game experiencing.
Summary of the invention
The purpose of the present invention is to provide a kind of method, system and mobile terminals for locking interface display direction, useTo lock interface display methods under screen rotation mode.
To achieve the above object, first aspect present invention provides a kind of method for locking interface display direction, answersFor the mobile terminal with touch screen, the method is used to lock interface display direction, institute under screen rotation modeTouch screen is stated for showing interface;The described method includes: the partial region of the touch screen is divided into first area;It connectsIt is received in the touch operation that the first area generates;Judge whether the touch operation meets preset condition;If the touchOperation meets the preset condition, then generates lock instruction according to the touch operation, and the lock instruction is described for lockingInterface display direction on touch screen.
In one possible implementation, the first area is the fringe region of the touch screen.
In one possible implementation, the touch screen be in rectangle, the first area be the touch screen withAny one or more of lower region;The lower left corner, the lower right corner, the upper left corner, the upper right corner.
In one possible implementation, the preset condition are as follows: the duration of touch operation is greater than preset timeThreshold value.
In one possible implementation, the preset condition are as follows: the area of touch operation is greater than preset area threshold value.
In one possible implementation, the preset condition are as follows: the pressure of touch operation is greater than preset pressure threshold value.
In one possible implementation, the interface that the lock instruction is used to lock on the touch screen is shownDirection includes: the lock instruction for shielding rotation instruction caused by the rotation of mobile terminal operation.
In one possible implementation, the method also includes: when the touch operation cancel when, delete the lockFixed instruction.
Second aspect of the present invention provides a kind of system for locking interface display methods, applied to touch screenMobile terminal, the system are used to lock interface display direction under screen rotation mode, and the touch screen is for showingInterface;The system comprises: division unit, for the partial region of the touch screen to be divided into first area;It receivesUnit, for receiving the touch operation generated in the first area;Judging unit, for judging whether the touch operation is fullSufficient preset condition;Generation unit is used for, if the touch operation meets the preset condition, according to the touch operationLock instruction is generated, the lock instruction is used to lock the interface display direction on the touch screen.
Third aspect present invention provides a kind of mobile terminal, using system described in second aspect of the present invention.
The present invention has the advantage that under screen rotation mode, when user wants moving in rotation terminal, but it is not desired to gameWhen the display direction relative movement terminal at interface changes, without cancelling " screen rotation " in display setting, so that it may lockThe display methods for determining interface, is convenient for users to operate, and improves game experiencing.
Detailed description of the invention
Fig. 1 is a kind of flow chart of method for locking interface display direction provided in an embodiment of the present invention.
Fig. 2 is a kind of structural schematic diagram of system for locking interface display direction provided in an embodiment of the present invention.
Specific embodiment
The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention..
Embodiment 1
In the present embodiment, it is carried out in conjunction with method of the Fig. 1 to locking interface display direction provided by the invention specificIt introduces.
The executing subject of this method is mobile terminal.Mobile terminal can have the terminal of touch screen for mobile phone, IPAD etc.;This method is used to lock interface display direction under screen rotation mode, and the touch screen is for showing interface.
As shown in Figure 1, this approach includes the following steps.
The partial region of the touch screen is divided into first area by step 11.
Operate game touch operation be it is diversified, in order to avoid operation game touch operation and for start lockFixed touch operation is obscured;The region division of the touch operation for receiving operation game less on touch screen is the firstth area by this methodDomain.
In one example, the first area is the fringe region of the touch screen.
The fringe region of the touch screen can be divided into first area.It is easily understood that for operating gameTouch operation is less to occur that therefore the fringe region of touch screen first area can be divided into the fringe region of touch screen.It can be specifically first area by left edge region division, can also be first area by right hand edge region division, can also incite somebody to actionUpper edge region is divided into first area, lower edge margin can also be divided into first area.
In one example, the touch screen is in rectangle, and the first area is appointing for the following region of the touch screenIt is one or more;The lower left corner, the lower right corner, the upper left corner, the upper right corner.Can by the lower left corner region of touch screen, lower right field,One or more of upper left corner area, upper right comer region are divided into first area simultaneously.It is easily understood that for operating tripThe touch operation of play is less to be occurred in the lower left corner region of touch screen, lower right field, upper left corner area, upper right comer region, willThese regions are set as first area, so as to reduce influence of the lock operation to game operation.
The touch operation that step 12, reception are generated in the first area.
When user wants locking interface display direction, touch operation is carried out in first area, is specifically as follows pressing.
Step 13 judges whether the touch operation meets preset condition.
If step 14, the touch operation meet the preset condition, locking is generated according to the touch operation and is referred toIt enables, the lock instruction is used to lock the interface display direction on the touch screen.
In one example, the preset condition are as follows: the duration of touch operation is greater than preset time threshold.For example,It can set time threshold to 1 second, when being greater than 1 second the duration of touch operation, then be generated and locked according to touch operationInstruction.
In one example, the preset condition is that the area of touch operation is greater than preset area threshold value.It is swum for operatingThe touch operation of play clicks what touch screen generated generally by finger tip;The touch that touch screen generates can will be pressed by fingerOperation is for starting locking;The area of finger pressing is greater than the area that finger tip is clicked and is therefore identified by setting area threshold valueFor starting the touch operation of locking.For example, 0.8cm can be set by area threshold2, when the area of touch operation is greater thanCm when 0.82, then lock instruction is generated according to touch operation.
The preset condition are as follows: the pressure of touch operation is greater than preset pressure threshold value.For operating the touch operation of gameClick what touch screen generated generally by finger tip;It can be used to start by the touch operation that touch screen generates is pressed by fingerLocking;The pressure of finger pressing is greater than the pressure that finger tip is clicked, and therefore, pressure threshold is arranged, when the pressure of touch operation is greater thanWhen the pressure threshold, then lock instruction is generated according to touch operation.
The interface display direction that the lock instruction is used to lock on the touch screen is specifically as follows: the lockingInstruction is for shielding rotation instruction caused by the rotation of mobile terminal operation.
User's moving in rotation terminal and trigger generation rotation instruction.Mobile terminal can not receive rotation instruction directly;Rotation instruction can also be ignored, without rotating accordingly after receiving rotation instruction.
It should be noted that in embodiments of the present invention, locking interface display direction refers to be sent in mobile terminalWhen rotation, make the rotation for keeping interface display direction not occur relative to mobile terminal.For example, it is assumed that interfaceFor a knife, when mobile terminal is placed vertically, knife display direction is that point of a knife is straight up;When starting locking interfaceAfter display direction, mobile terminal is rotated to the right, until mobile terminal is horizontal positioned, then the direction of point of a knife is horizontally to the right.
In one example, the method also includes: when the touch operation cancel when, delete the lock instruction.FromAnd under screen rotation mode, in touch operation of the user without meeting preset condition, it is aobvious that interface can be restoredShow that direction occurs to change accordingly with mobile rotation.
The present embodiment has the advantages that under screen rotation mode, when user wants moving in rotation terminal, but is not desired to swimWhen the display direction relative movement terminal at play interface changes, without cancelling " screen rotation " in display setting, so that it mayThe display methods for locking interface, is convenient for users to operate, improves game experiencing.
Embodiment 2
A kind of system for locking interface display direction is present embodiments provided, applied to the mobile end with touch screenEnd, the system are used to lock interface display direction under screen rotation mode, and the touch screen is for showing game circleFace.
System is specifically introduced in conjunction with Fig. 2.As shown in Fig. 2, the system comprises:
Division unit 21, for the partial region of the touch screen to be divided into first area;
Receiving unit 22, for receiving the touch operation generated in the first area;
Judging unit 23, for judging whether the touch operation meets preset condition;
Generation unit 24, is used for, raw according to the touch operation if the touch operation meets the preset conditionAt lock instruction, the lock instruction is used to lock the interface display direction on the touch screen.
The content that system provided in this embodiment is referred to the record of embodiment 1 realizes that details are not described herein again.
The present embodiment has the advantages that under screen rotation mode, when user wants moving in rotation terminal, but is not desired to swimWhen the display direction relative movement terminal at play interface changes, without cancelling " screen rotation " in display setting, so that it mayThe display methods for locking interface, is convenient for users to operate, improves game experiencing.
Embodiment 3
A kind of mobile terminal is present embodiments provided, the system recorded using embodiment 2.
The present embodiment has the advantages that under screen rotation mode, when user wants moving in rotation terminal, but is not desired to swimWhen the display direction relative movement terminal at play interface changes, without cancelling " screen rotation " in display setting, so that it mayThe display methods for locking interface, is convenient for users to operate, improves game experiencing.
Although above having used general explanation and specific embodiment, the present invention is described in detail, at thisOn the basis of invention, it can be made some modifications or improvements, this will be apparent to those skilled in the art.Therefore,These modifications or improvements without departing from theon the basis of the spirit of the present invention are fallen within the scope of the claimed invention.