The content of the invention
It is an object of the invention to solve problems of the prior art, that is, provide a kind of method and dress of external inputPut, it can not only replace external connection keyboard input word, and other non-keyboards input that also can be directly to electronic equipment operates.
To solve the above problems, the present invention provides a kind of method of external input, it is described outer applied to external input deviceConnect input unit to be used to connect electronic equipment to realize external input operation, methods described includes:
Connect an electronic equipment;
Detect the first button of the electronic equipment current display interface;
One-to-one second button is provided according to the first button of the electronic equipment current display interface;
Judge whether user triggers second button;
, to the electronic equipment, hold the electronic equipment if so, then sending control instruction corresponding to second buttonThe corresponding operating of first button corresponding to row.
Further, first button is virtual key and/or secondary or physical bond..
Further, methods described also includes:The external input device, which is sent, hides first key command to instituteState electronic equipment.
Further, methods described also includes:
When user triggers second button, judge whether the first button corresponding to second button is pressed comprising sonKey;
If so, one the 3rd button is then provided, wherein, it is described corresponding to second button corresponding to the 3rd buttonThe sub- button that first button includes;
Judge whether user triggers the 3rd button;
, to the electronic equipment, hold the electronic equipment if so, then sending control instruction corresponding to the 3rd buttonThe corresponding operating of the sub- button of first button corresponding to row.
Further, the 3rd button also returns to button comprising one, for returning to the corresponding second button placeInterface.
The present invention also provides a kind of external input device, described for connecting electronic equipment to realize external input operationDevice also includes:
Block is touched in one connection, for connecting an electronic equipment;
One detection module, for detecting the first button of the electronic equipment current display interface;
One display module, for providing one-to-one the according to the first button of the electronic equipment current display interfaceTwo buttons;
One judge module, for judging whether user triggers second button;
One processing module, for when user triggers second button, sending control corresponding to second button and referring toMaking to the electronic equipment, makes the corresponding operating of first button corresponding to the electronic equipment execution.
Further, first button is virtual key and/or secondary or physical bond..
Further, the processing module, which is additionally operable to send, hides first key command to the electronic equipment.
Further, the processing module is additionally operable to, when user triggers second button, judge second buttonWhether corresponding first button includes sub- button;
If so, send idsplay order to the display module, the display module receives the idsplay order and provides one theThree buttons, wherein, it is the sub- button that first button corresponding to second button includes corresponding to the 3rd button;
The judge module is additionally operable to, and judges whether user triggers the 3rd button;
The processing module is additionally operable to, and when for triggering three button, is sent and is controlled corresponding to the 3rd buttonSystem instructs the corresponding operating for the electronic equipment, making the sub- button of first button corresponding to the electronic equipment execution.
Further, the 3rd button also returns to button comprising one, for returning to the corresponding second button placeInterface.
Compared with prior art, technical scheme has advantages below:
Currently shown by detecting the first button of the electronic equipment current display interface, and according to the electronic equipmentFirst button at interface provides one-to-one second button, due to being one-to-one generation button, so in external inputWhat is provided in device is not only virtual key, it is also possible to and it is secondary or physical bond, or both combinations.User needs operating functionWhen key, avoid the need for operating electronic equipment, and only need just can directly complete all operations by external input device,Solve the problems, such as that existing external connection keyboard can not manipulate electronic equipment completely.
Further, in technical solution of the present invention, first key command can also be hidden to the electricity by sendingSub- equipment, makes the visual interface of electronic equipment increase.
Further, can also be by providing one the 3rd button, i.e., the first button bag corresponding to described second buttonThe sub- button contained, improve the speed and convenience of user's operation.
Embodiment
In order that relevant technical staff in the field more fully understands technical scheme, below in conjunction with of the invention realThe accompanying drawing of mode is applied, the technical scheme in embodiment of the present invention is clearly and completely described, it is clear that described realityApply mode only a part of embodiment of the present invention, rather than whole embodiments.
The invention provides a kind of method of external input, and applied to external input device, the external input device is usedIn connection electronic equipment to realize external input operation, Fig. 1 is a kind of first embodiment of the method for external input of the present inventionSchematic flow sheet, it is as follows with reference to Fig. 1, methods described, step:
Step S11:Connect an electronic equipment;
It should be noted that connection electronic equipment can also pass through wired connection by wireless connection.
Step S12:Detect the first button of electronic equipment current display interface;
First button of electronic equipment current display interface, first button can be that virtual key can also be physicsKey, it can also be both combinations.Such as:First button can be virtual inputs in keyboard or such as short message editing interfaceThe enter key with input function of " editor " key etc.;First button can also be physical keyboard key(That is traditional type pressing keyboard)Either " screen locking " button etc. there is input function be physically entered key;First button can also be such as:Physical keyboardAnd " editor " key in short breath editing interface etc. has the combination of the virtual input keys of input function.
It should be noted that in step S12 detect electronic equipment current display interface the first button, acquisition canTo be the pictorial information or function information of its first button, it can also be that the first button in the script file of electronic equipment is adjustedFunction information.
Step S13:One-to-one second button is provided according to the first button of electronic equipment current display interface;
The function that pictorial information or button of the external input device in the first button obtained in step S12 callThe function information that first button of the information also or in the script file of electronic equipment calls, a pair of external input device offer 1The second button answered.
When step S12 obtain be the pictorial information of the first button when, the second button that external input device provides can be withThe picture of the first button is directly displayed, can also be the picture of the first button of corresponding zoom.When user's triggering second is pressedDuring key, the first key image in key image and electronic equipment that the second button that electronic equipment triggers user is shown is carried outCompare, electronic equipment obtains the first button corresponding to the second button of user's triggering, and is touched user according to the communications protocolThe first button that the control instruction of second button of hair is corresponding matches, and triggers first button and performs its corresponding operation.
What is obtained as step S12 is the first button in the function information of the first button or the script file of electronic equipmentThe function information of calling, external input device can also be divided according to the function information of the first button or the function of callingAnalysis, there is provided corresponding implied meaning identical other buttons diagram shows the second button.When user triggers the second button, electronic equipment willThe function information of function information or call function corresponding to second button of user's triggering and the first button in electronic equipment withCall function is compared, and electronic equipment obtains the first button corresponding to the second button of user's triggering, and according to the communicationThe first button that the control instruction for the second button that agreement triggers user is corresponding matches, and triggers first button and performs itCorresponding operation.
In the present embodiment, by detecting the first button of electronic equipment current display interface, generation the is correspondedTwo buttons, by this step, realize that user can input word by external input device, and can is real by external input deviceNow operate other functions of electronic equipment current display interface.
Existing external input device be mostly computer external keyboard also or digital external connection keyboard, be merely able to carry out wordRelated function is inputted, the operation to other functions of electronic equipment can not be realized, for example, in short message editing interface, if desired forCarry out short message sending, it is desired nonetheless to send key is operated on an electronic device, or by being previously set in external connection keyboardSome button or key combination realize sending function.
The invention provides the second button of the first button for corresponding electronic equipment current display interface, such as:WhenWhen the current interface of electronic equipment is short message editing interface, step S12 of the invention detect the function of electronic equipment byKey " transmission " button, step S13 just provide the second of a correspondence " transmission " button according to corresponding to the result that step S12 is detectedButton, it is convenient for the user to operate.
Step S14:External input device, which is sent, hides the first key command to electronic equipment;
Because the display interface of electronic equipment is limited, so when there is external input equipment to replace its original buttonWait, can be to increase its display area if those first virtual buttons in electronic equipment stash.
It should be noted that the priority of step S13 and step S14 execution, can be to first carry out step S14 to perform step againRapid S13, or step S13 and step S14 are performed dividing without priority simultaneously, the scheme being not only limited in the present embodiment.
Step S15:Judge whether user triggers the second button;
If user triggers the second button, step S16 is performed:Control instruction corresponding to second button is sent to the electricitySub- equipment, make the corresponding operating of first button corresponding to the electronic equipment execution.
When user triggers the second button, corresponding electronic equipment can also receive the control instruction of second button transmission,Electronic equipment is by the communications protocol between external input device, by the control instruction of the second button and second button pairThe first button answered matches, and performs the corresponding operating of the first button corresponding to second button.For example, in interface of electronic equipmentFor short message editing interface, when the second button of user's triggering is " transmission ", electronic equipment receives the control that the second button is sent and referred toOrder, perform and send operation.
After completing step S16, return and perform step S12.
Present invention also offers a kind of second embodiment of the method for external input, the second embodiment of methods described are relativeIt is in the difference of first embodiment, adds and judge whether the first button has the step of sub- button corresponding to the second button, whenWhen the first button has sub- button corresponding to second button, there is provided one the 3rd button is the son of the first button corresponding to the second buttonButton, when user needs to operate the sub- button of the first button, just without carrying out step S12~step in such as embodiment oneS15, the 3rd button is directly provided and operated for user.Fig. 2 is a kind of stream of the second embodiment of the method for external input of the present inventionJourney schematic diagram, it is as follows with reference to Fig. 2, methods described, step:
Step S21:Connect an electronic equipment;
Step S22:Detect the first button of electronic equipment current display interface;
Step S23:One-to-one second button is provided according to the first button of electronic equipment current display interface;
Step S24:Send and hide the first key command to electronic equipment;
Step S25:Judge whether user triggers the second button;
If user triggers the second button, step S26 is performed:Judge the first button corresponding to the second button whether have son byKey;
If the first button corresponding to the second button has sub- button, step S262 is performed:One the 3rd button is provided, itsIn, it is the sub- button that first button corresponding to second button includes corresponding to the 3rd button;
Step S27:Judge whether user triggers the 3rd button;
If judging, user triggers the 3rd button, performs step S28:Control instruction corresponding to the 3rd button is sent to electronicsEquipment, make the corresponding operating of the sub- case of the first button corresponding to electronic equipment execution.
Step S22 is continued executing with after performing step S28.
Function key on the interface of electronic equipment is possible to have sub- button, such as:At short message sending interface, have and " compileVolume " as function key, such button often has sub- button, and " editor " function key as escribed above, its sub- button canIt can be the sub- buttons such as " forwarding ", " deletion ", " duplication ", if pressing first embodiment, need by step S12~stepS15 could carry out the operation of this little button, and relative service speed is slower, the present embodiment directly when step S22 justWhole key informations of the first button are obtained, when user triggers the second button, directly invoke sub- key information corresponding to itThe 3rd button is generated, accelerates processing speed, it is convenient for the user to operate.
It should be noted that it is the sub- button of the button of correspondence first of corresponding second button corresponding to the 3rd button, in realityDuring applying, maloperation of the user when triggering the second button is might have, therefore also wrapped in the 3rd button in the present embodimentIncluding one has the 3rd button for returning to the second key interface.
Present invention also offers an external input device, Fig. 3 is a kind of first embodiment of external input device of the present inventionStructural representation, with reference to Fig. 3, the external input device 1 includes:Link block 11, detection module 12, display module 13,Judge module 14 and processing module 15.
Block 11 is touched in connection, for being electrically connected with electronic equipment 2;
Detection module 12 is electrically connected with link block 11, is worked as detecting the electronic equipment 2 by link block 11First button of preceding display interface;
Display module 13 is electrically connected with detection module 12, for the testing result that draws after being detected according to detection module 12 i.e.First button of the current display interface of electronic equipment 2 provides one-to-one second button;
Judge module 14 is electrically connected with display module 13, is pressed for judging whether user triggers second in display module 13Key;
Processing module 15 is electrically connected with judge module 14 and link block 11, for judging that user triggers when judge module 14During second button, sending control instruction corresponding to second button by link block 11, to the electronic equipment 2, makesThe electronic equipment 2 performs the corresponding operating of corresponding first button.
In the present embodiment, further, first button is virtual key or secondary or physical bond..
Further, the processing module 15, which is additionally operable to send, hides first key command to the electronic equipment 2.
Present invention also offers a kind of second embodiment of external input device, the second embodiment of described device relative toThe difference of first embodiment is:
Processing module 15 is also electrically connected with display module, when user triggering the second button corresponding to the first button have son byDuring key, send idsplay order to the display module 13, the display module 13 and one the 3rd button is provided, wherein, the described 3rdThe sub- button that first button corresponding to corresponding to button being corresponding second button includes.
In the present embodiment, the judge module 14 is additionally operable to judge whether user triggers the 3rd button;
In the present embodiment, the processing module 15 is additionally operable to, when user triggers three button, send described theControl instruction corresponding to three buttons to the electronic equipment, make the electronic equipment perform corresponding to first button son byThe corresponding operating of key.
Further, the 3rd button also returns to button comprising one, for returning to the corresponding second button placeInterface.
Compared with prior art, technical scheme has advantages below:
Currently shown by detecting the first button of the electronic equipment current display interface, and according to the electronic equipmentFirst button at interface provides one-to-one second button, due to being one-to-one generation button, so in external inputThe not exclusively virtual key provided in device is it could also be possible that secondary or physical bond.User needs to operate the work(in virtual key or secondary or physical bondWhen energy key input key, avoid the need for operating electronic equipment, and only need just can directly complete by external input deviceAll operations.Solve the problems, such as that existing external connection keyboard can not manipulate electronic equipment completely.
Further, this programme can also hide first key command to the electronic equipment by sending, and make electricityThe visual interface increase of sub- equipment.
Further, can also be by providing one the 3rd button, i.e., the first button bag corresponding to described second buttonThe sub- button contained, improve the speed and convenience of user's operation.
Although present disclosure is as above, the present invention is not limited to this.Any those skilled in the art, this is not being departed fromIn the spirit and scope of invention, it can make various changes or modifications, therefore protection scope of the present invention should be with claim instituteThe scope of restriction is defined.