A kind of the key activation control device and its method of touch screen
Technical field
The present invention relates to the key activation control device of technical field of mobile terminals more particularly to a kind of touch screen and
Its method.
Background technique
Intelligent mobile terminal (such as smart phone, tablet computer) after touching screen unlocks, if into interface operation, for example,
It listens to music, sees video, play games, see e-book, whens editing short message wechat etc., accidentally touch certain touch key-press, can return
It returns to upper interface or is returned directly to desktop or pops up other dialog boxes.This maloperation may will affect current interface
Display, and may cause current function and interrupt, make troubles to operating with for user.Therefore, intelligent mobile terminal is touching
The technical existing defects of press-key lock are touched, the influence and solution for not thering is also related personnel to consider the technology at present.
Therefore, the existing technology needs to be improved and developed.
Summary of the invention
Place in view of above-mentioned deficiencies of the prior art, the purpose of the present invention is to provide a kind of key activation controls of touch screen
Devices and methods therefor processed, it is intended to solve the problems, such as that existing touch screen influences current display interface by mistaken touch.
The technical proposal for solving the technical problem of the invention is as follows:
A kind of key activation control device comprising touch screen detection module and control module;
When mobile terminal is in a display interface, touch screen detection module judges whether touch screen is touched;It is to pass through
Control module executes the touch operation finger lock touch key-press, and otherwise control module keeps current interface to show content finger lock touching
Touch key;When touch screen detection module detection mobile terminal exits the display interface, control module releases the locking of touch key-press.
In the key activation control device, the control module include: central processing unit, external memory unit,
Read-write cell, display unit, locking key unit and clock count unit
When mobile terminal is in a display interface, touch screen detection module issues point touching request signal to central processing unit,
So that central processing unit control external memory unit is exported corresponding control instruction and read-write cell is written, is called from read-write cell
Control instruction is simultaneously transferred to display unit execution corresponding operation;The clock count unit at the end of corresponding operation, prolong
After after slow preset time, central processing unit controls locking key unit and locks touch key-press;
When touch screen detection module detection mobile terminal exits the display interface, unlock detection signal is sent to locking key list
Member, locking key unit send unlocking request signal and retrieve corresponding unlocking request instruction to central processing unit, and central processing unit calls
The unlocking request instructs and sends unlocked clock signal to locking key unit, is unlocked to touch key-press.
A kind of key activation control method comprising:
A, when mobile terminal is in a display interface, touch screen detection module judges whether touch screen is touched;It is then logical
It crosses control module and executes the touch operation finger lock touch key-press, otherwise control module keeps current interface to show content finger lock
Touch key-press;
B, when touch screen detection module detection mobile terminal exits the display interface, control module releases the lock of touch key-press
It is fixed.
In the key activation control method, in the step A, when mobile terminal is in a display interface, touch
Screen detection module judges that touch screen is touched;The step of executing the touch operation finger lock touch key-press by control module is specific
Include:
When A1, mobile terminal are in a display interface, touch screen detection module judges to issue point touching when touch screen is touched
Request signal;
A2, central processing unit are according to the point touching request signal control external memory unit output point touching slip instruction, simultaneously
Read-write cell is written;
A3, central processing unit call point touching slip instruction from read-write cell and are transferred to display unit and execute accordingly
Point touch slide;
A4, touch screen detection module control clock count unit record point touching stroke time, touching stroke at the end of,
Control touch screen detection module after clock count cell delay preset time and send detection signal to locking key unit, locking key unit to
Central processing unit request locking key simultaneously executes the instruction of central processing unit feedback to lock touch key-press.
In the key activation control method, in the step A, when mobile terminal is in a display interface, touch
Screen detection module judges that touch screen is not touched;The step of control module keeps current interface to show content finger lock touch key-press
It specifically includes:
When A11, the touch screen detection module judge that touch screen is not touched, static request signal is sent to central processing
Device, central processing unit is according to the static request signal control external memory unit output current interface content instruction and is written
Read-write cell;
A12, central processing unit, which call current interface content instruction from read-write cell and be transferred to display unit holding, works as
Preceding display interface;
A13, touch screen detection module send timing signal and control clock count cell delay preset time, clock count list
Member control touch screen detection module sends detection signal to locking key unit, and locking key unit is requested locking key to central processing unit and executed
The instruction of central processing unit feedback is to lock touch key-press.
In the key activation control method, the step B is specifically included:
B1, when mobile terminal exits the display interface into other interface, touch screen detection module sends unlock inspection
It surveys signal and controls locking key unit;
B2, locking key unit send unlocking request signal control central processing unit and retrieve corresponding unlocking request instruction;
B3, central processing unit call unlocking request to instruct and send unlocked clock signal to locking key unit, to touch key-press
It is unlocked.
In the key activation control method, in the step A4, touch screen detection module send detection signal to
Locking key unit is specifically included the step of locking key unit automatic locking touch key-press with controlling:
A41, touch screen detection module send detection signal to locking key unit;
A42, locking key unit send lock request signal to central processing unit, retrieve lock request letter to control central processing unit
Number corresponding lock request instruction;
A43, central processing unit, which call the lock request instruction and send lock clock signal, gives locking key unit, is pressed with lockking to touch
Key.
Compared to the prior art, the key activation control device and its method of touch screen provided by the invention, key activation
Control device includes touch screen detection module and control module, when mobile terminal is in a display interface, touch screen detection module
Judge whether touch screen is touched;It is that the touch operation finger lock touch key-press is executed by control module, otherwise controls mould
Block keeps current interface to show content finger lock touch key-press;Touch screen detection module detection mobile terminal exits the display interface
When, control module releases the locking of touch key-press;To can avoid influence of the mistaken touch to current display interface, make up touch by
The deficiency of key-lock technology.
Detailed description of the invention
Fig. 1 is the structural block diagram of key activation control device provided by the invention.
Fig. 2 is key activation control method flow chart provided by the invention.
Fig. 3 is the first schematic diagram of step S100 in key activation control method provided by the invention.
Fig. 4 is the second schematic diagram of step S100 in key activation control method provided by the invention.
Fig. 5 is the third schematic diagram of step S100 in key activation control method provided by the invention.
Fig. 6 is the 4th schematic diagram of step S100 in key activation control method provided by the invention.
Fig. 7 is the 5th schematic diagram of step S100 in key activation control method provided by the invention.
Fig. 8 is the 6th schematic diagram of step S100 in key activation control method provided by the invention.
Fig. 9 is the first schematic diagram of step S200 in key activation control method provided by the invention.
Specific embodiment
The present invention provides the key activation control device and its method of a kind of touch screen, is avoided that the mistake touching of touch screen occur
It touches.To make the objectives, technical solutions, and advantages of the present invention clearer and more explicit, as follows in conjunction with drawings and embodiments to this hair
Bright further description.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not used to limit
The fixed present invention.
Referring to Fig. 1, key activation control device setting provided by the invention is in the terminal comprising touch screen inspection
Survey module 10 and control module 20;10 link control module 20 of touch screen detection module.Dish is shown after mobile terminal-opening
Single interface.User enters the main interface applied after opening certain application, and different sub-interfaces is entered by the option in main interface, this
A little interfaces are display interface.When mobile terminal is in a display interface, touch screen detection module 10 judge touch screen whether by
It touches;It is that the touch operation finger lock touch key-press is then executed by control module 20, prezone is worked as in the otherwise holding of control module 20
Face shows content finger lock touch key-press.When the detection mobile terminal of touch screen detection module 10 exits the display interface, mould is controlled
The locking of the releasing touch key-press of block 20.
In the present embodiment, the control module 20 includes central processing unit 210, external memory unit 220, read-write cell
230, display unit 240, locking key unit 250 and clock count unit 260.
When mobile terminal is in a display interface, touch screen detection module issues point touching request signal to central processing unit,
Make central processing unit 210 control external memory unit 220 to export corresponding control instruction and read-write cell 230 is written, from read-write
Control instruction is called in unit 230 and is transferred to display unit 240 executes corresponding operation;The clock count unit 260 exists
At the end of corresponding operation, after delay preset time, central processing unit 210 controls locking key unit 250 and locks touch key-press.
When the detection mobile terminal of touch screen detection module 10 exits the display interface, unlock detection signal is sent to locking key list
Member 250, locking key unit 250 send unlocking request signal and retrieve corresponding unlocking request instruction, centre to central processing unit 210
Reason device 210 calls the unlocking request to instruct and sends unlocked clock signal to locking key unit, is unlocked to touch key-press.
Although, if detecting touch operation, can still be held it is to be appreciated that the present embodiment locks touch key-press
It is relocked after the row touch operation.On a display interface, after touch key-press is lockable, subsequent only just genuine touch operation is
Corresponding touch function or keypress function can be executed (i.e. point touching stroke is to click some touch key-press).It can avoid accidentally touching in this way
Caused maloperation is touched, will not influence current display effect.
Based on above-mentioned key activation control device, the present invention also provides a kind of key activation control methods, please join together
Fig. 1 to Fig. 9 is read, the key activation control method is as shown in Figure 2, comprising:
When S100, mobile terminal are in a display interface, touch screen detection module judges whether touch screen is touched;It is then
The touch operation finger lock touch key-press is executed by control module, otherwise control module is locked after keeping current interface to show content
Firmly touch key-press;
When S200, touch screen detection module detection mobile terminal exit the display interface, control module releases touch key-press
Locking.
Also referring to Fig. 3 to Fig. 6, in the step S100, when mobile terminal is in a display interface, touch screen inspection
It surveys module and judges that touch screen is touched;The step of executing the touch operation finger lock touch key-press by control module:
When mobile terminal is in a display interface, touch screen on 10 real-time detection of the touch screen detection module display interface
Touch condition (judging whether touch screen is touched)., touching different with contact surface with the dynamics of mistaken touch is touched based on artificial
It touches in screen detection module 10 and is provided with corresponding testing mechanism, pass through dynamics (being identified as touching greater than preset pressure), contact surface
Product (usually finger touches, and touches area and is identified as touching less than preset area) can preparatory discharge part mistaken touch.
When detect touching paddling operation is carried out on touch screen when, touch screen detection module 10 issues during a point touching request signal gives
Central processor 210, central processing unit 210 issue corresponding control signal according to the point touching request signal and control external storage list
The corresponding point touching slip instruction of 220 output of member.In the specific implementation, the central processing unit 210 includes PMOS tube control unit,
Low level point touching request signal control PMOS tube control unit conducting, the control signal for exporting high level.
Output can only be stored based on external memory unit 220, calling cannot be directly read.External memory unit 220 exports
Point touching slip instruction need to be written in read-write cell 230.Central processing unit 210 and display unit 240 communicate, central processing unit
210 call point touching slip instruction from read-write cell 230 and are transferred to display unit 240 and execute corresponding point touching sliding behaviour
Make, as shown in Figure 4.
Before display unit 240 executes point touching slip instruction, touch screen detection module 10 sends press-key lock detection letter
Number starting locking key unit 250 detects the lock status of each touch key-press, to identify whether current touch key-press has been lockable.It holds
When row point touching slip instruction, clock count unit 260 records the time of point touching stroke on touch screen simultaneously.The present embodiment is in point
The preset time that is delayed after touching paddling operation locks touch key-press again.
As shown in Figure 5 and Figure 6, it carries out lockking touch key-press behaviour while central processing unit 210 and display unit 240 communicate
Make, specifically: touch screen detection module 10 sends enabling signal to clock count unit 260.Setting in clock count unit 260
There is pulse generating circuit 261, at the end of the time that clock counting unit 260 records point touching stroke, controls pulse generating circuit
The pulse of 261 output high level and after timing 5 seconds, clock count unit 260 export clock signal to touch screen detection module 10,
10 step-by-step counting of touch screen detection module is notified to complete.After the completion of touch screen detection module 10 detects step-by-step counting, detection is sent
Signal to locking key unit 250, request locking key to central processing unit and execute the instruction that central processing unit is fed back by locking key unit 250,
With execution point touch paddling operation 5 seconds after, automatic locking touch key-press;It is specific as shown in Figure 6.
In Fig. 6, touch screen detection module 10 sends detection signal to locking key unit 250, and locking key unit 250 sends lock request
Signal is to central processing unit 210.The lock request signal pair is retrieved in the internal storage 211 that central processing unit 210 is set in it
The lock request instruction answered simultaneously is deposited in the internal register 212 set in it.Central processing unit 210 calls the lock request instruction
And lock clock signal is sent to locking key unit 250, to lock touch key-press.
Referring to Figure 7 together and Fig. 8, in the step S100, when judging that touch screen is not touched, the control mould
The step of block 20 keeps current interface to show content finger lock touch key-press specifically includes:
When mobile terminal is in a display interface, and the detection touch screen of touch screen detection module 10 does not put touching stroke,
I.e. touch screen is in opposing stationary state and for example makes a phone call, and plays video etc..Touch screen detection module 10 sends static ask
Ask signal to central processing unit 210, central processing unit 210 issues corresponding holdings signal according to the static request signal, controls
External memory unit 220 processed exports corresponding current interface content instruction.When it is implemented, built in the central processing unit 210
NMOS tube control unit, static request signal open the output of NMOS tube control unit and keep instruction to external memory unit 220.
External memory unit 220 exports current interface content instruction to read-write cell 230.
Central processing unit 210 calls current interface content instruction from read-write cell 230.Central processing unit 210 and display
Unit 240 communicates, and exports current interface content instruction to display unit 240 by the digital output end of central processing unit 210.It is aobvious
Show that unit 240 keeps current display interface, as shown in Figure 8.Herein, central processing unit 210 communicates same with display unit 240
Shi Jinhang locks touch key-press operation.
Based on without a touching paddling operation, the touch screen detection module 10 detects display unit 240 and executes this currently at this time
After interface content instruction, timing signal is sent to pulse generating circuit 261.The pulse of the output high level of pulse generating circuit 261
And after timing 5 seconds, clock count unit 260 exports clock signal to touch screen detection module 10, notifies touch screen detection module
10 step-by-step countings are completed.After the completion of touch screen detection module 10 detects step-by-step counting, detection signal is sent to locking key unit 250.
Locking key unit 250 requests locking key to central processing unit and executes the instruction that central processing unit is fed back, and is executing locking key unit 250
After keeping operation 5 seconds, automatic locking touch key-press.It is same as shown in Figure 6 to detect the latching step that signal is realized, does not make herein in detail
It states.
Also referring to Fig. 9, the step S200 is specifically included:
When mobile terminal, which exits the display interface, enters other interface, touch screen detection module 10 sends unlock detection
Signal controls 250 automatic unlocking touch screen key of locking key unit to locking key unit 250.
Locking key unit 250 sends unlocking request signal, and to the retrieval of internal storage 211 of central processing unit 210, the unlock is asked
It asks the corresponding unlocking request of signal to instruct and deposits in its internal register 212.Central processing unit 210 calls unlocking request
It instructs and sends unlocked clock signal to locking key unit 250, touch key-press is unlocked.
In conclusion the present invention executes the touch if touch screen is touched when mobile terminal is in a display interface
Finger lock touch key-press is operated, current interface is kept to show content finger lock touch key-press if not touched.Work as mobile terminal
When exiting the display interface, the locking of touch key-press is released.Although being locked to touch key-press, if detecting touch behaviour
Make, is relocked after still executing the touch operation.It can avoid maloperation caused by mistaken touch in this way, and will not influence current
Display effect, moreover it is possible to make up the deficiency of touch key-press lock technology.
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills can
With improvement or transformation based on the above description, all these modifications and variations all should belong to the guarantor of appended claims of the present invention
Protect range.