Summary of the invention
The technical matters that the present invention mainly solves is to provide a kind of extended method of keyboard, also provides the equipment of corresponding band easily extensible keyboard, can provide abundant application keyboard, and can not consume extra mobile phone electric energy for mobile terminal, cost-saving.
For solving the problems of the technologies described above, the technical solution used in the present invention is:
An extended method for keyboard, comprising:
Detect the push button signalling whether fixing key-position area has mark key mapping, described fixing key-position area comprises multiple fixing key mapping, wherein said fixing key-position area comprises mark key mapping and function key mapping, described fixing key mapping and extended keyboard support the use, wherein, when described fixing key mapping and described extended keyboard support the use, described extended keyboard is positioned in described fixing key mapping, the mark key mapping that the contact point that the extended keyboard identification point of described extended keyboard is corresponding is corresponding with described fixing key mapping contacts, the face of described extended keyboard and described fixing key mapping module contact is provided with multiple contact point, each contact point of described extended keyboard is corresponding with the specific key mapping of described fixing key mapping, when pressing the key mapping of described extended keyboard, the contact point corresponding with the key mapping of this extended keyboard contacts with key mapping corresponding in described fixing key mapping, produce key-position signal, described extended keyboard is multiple, and the mark key mapping that the extended keyboard identification point of different extended keyboards is corresponding different, the contact point that wherein said extended keyboard identification point is corresponding is longer than the contact point of other keys of this extended keyboard,
If be tested with the push button signalling of mark key mapping, then obtain the push button signalling of described mark key mapping;
Push button signalling according to described mark key mapping is being preset in the extended keyboard type of searching correspondence in local mark key mapping type list, and described mark key mapping type list comprises the push button signalling of multiple mark key mapping and corresponding extended keyboard type;
The function event corresponding according to the push button signalling of described extended keyboard type response function key mapping.
Further, comprise according to the step of function event corresponding to the push button signalling of extended keyboard type response function key mapping:
Obtain the push button signalling of function key mapping;
Push button signalling according to described extended keyboard type and described function key mapping is being preset in the function event of searching correspondence in local function key mapping correspondence table, described function key mapping correspondence table comprises the push button signalling of extended keyboard type and function key mapping, and the function event corresponding with the push button signalling of described extended keyboard type and function key mapping;
Respond described function event.
Further, comprise according to the step of function event corresponding to the push button signalling of extended keyboard type response function key mapping:
Obtain the push button signalling of function key mapping;
Corresponding function event is searched according in being preset in that the local function key mapping corresponding with described extended keyboard type is corresponding and showing, described function key mapping correspondence table comprises the push button signalling of function key mapping, and the function event corresponding with the push button signalling of described function key mapping;
Respond described function event.
With an equipment for easily extensible keyboard, comprising:
Fixing key mapping module, described fixing key mapping module comprises multiple fixing key mapping, wherein said fixing key mapping module comprises mark key mapping and function key mapping, described fixing key mapping and extended keyboard support the use, wherein, when described fixing key mapping and described extended keyboard support the use, described extended keyboard is positioned in described fixing key mapping, the mark key mapping that the contact point that the extended keyboard identification point of described extended keyboard is corresponding is corresponding with described fixing key mapping contacts, the face of described extended keyboard and described fixing key mapping module contact is provided with multiple contact point, each contact point of described extended keyboard is corresponding with the specific key mapping of described fixing key mapping, when pressing the key mapping of described extended keyboard, the contact point corresponding with the key mapping of this extended keyboard contacts with key mapping corresponding in described fixing key mapping, produce key-position signal, described extended keyboard is multiple, and the mark key mapping that the extended keyboard identification point of different described extended keyboards is corresponding different, the contact point that wherein said extended keyboard identification point is corresponding is longer than the contact point of other keys of this extended keyboard,
Detection module, for detecting the push button signalling whether having mark key mapping;
Acquisition module, for being tested with the push button signalling of mark key mapping when detection module, then obtains the push button signalling of described mark key mapping;
Search module, push button signalling for the mark key mapping obtained according to acquisition module is being preset in the extended keyboard type of searching correspondence in local mark key mapping type list, and described mark key mapping type list comprises the push button signalling of multiple mark key mapping and corresponding extended keyboard type;
Respond module, for the function event corresponding according to the push button signalling of described extended keyboard type response function key mapping.
Further, respond module comprises:
Acquiring unit, for obtaining the push button signalling of function key mapping;
Search unit, the function event of searching correspondence in local function key mapping correspondence table is being preset in for the push button signalling according to described extended keyboard type and described function key mapping, described function key mapping correspondence table comprises the push button signalling of extended keyboard type and function key mapping, and the function event corresponding with the push button signalling of described extended keyboard type and function key mapping;
Response unit, for responding described function event.
Further, search unit also for searching corresponding function event according in being preset in that the local function key mapping corresponding with described extended keyboard type is corresponding and showing, described function key mapping correspondence table comprises the push button signalling of function key mapping, and the function event corresponding with the push button signalling of described function key mapping.
Further, fixing key mapping module installation has multiple mark key mapping; Each described extended keyboard is provided with a contact point, when described extended keyboard and described fixing key mapping module support the use, described contact point contacts with the corresponding key mapping that identifies in described fixing key mapping module, thus makes described equipment can judge the type of extended keyboard according to this mark key mapping of contact.
The invention has the beneficial effects as follows: the situation being different from prior art, whether the present invention has the push button signalling of mark key mapping by detecting fixing key-position area, when being tested with the push button signalling of mark key mapping, obtain the push button signalling of this mark key mapping, then the extended keyboard type of searching correspondence in local mark key mapping type list is being preset according to the push button signalling of this mark key mapping, function event corresponding according to the push button signalling of this extended keyboard type response function key mapping again, the mark key mapping that different extended keyboards is corresponding different, produce corresponding push button signalling, the type of extended keyboard is judged according to different push button signallings, thus the function event that the push button signalling of response function key mapping is corresponding, for mobile terminal provides abundant application keyboard, and extra mobile phone electric energy can not be consumed, cost-saving.
Embodiment
Consult Fig. 1, the embodiment of the extended method of keyboard of the present invention comprises:
101, the push button signalling whether fixing key-position area has mark key mapping is detected;
Be provided with a fixing key-position area on mobile terminals, this fixing key-position area comprises multiple fixing key mapping, and comprising mark key mapping and function key mapping, mark key mapping is for distinguishing different extended keyboards, and function key mapping is for distinguishing different function events; And this fixing key mapping and extended keyboard support the use, extended keyboard is movable dismountable keyboard, when user needs, suitable extended keyboard can be selected to be installed to fixing key-position area, thus this mobile terminal can respond the push button signalling of this extended keyboard, wherein, push button signalling comprises the mark push button signalling of key mapping and the push button signalling of function key mapping;
First, the push button signalling whether fixing key-position area has mark key mapping is detected;
If be tested with the push button signalling of mark key mapping, then perform step 102, if detect the push button signalling not identifying key mapping, then continue to perform step 101;
102, the push button signalling of this mark key mapping is obtained;
If be tested with the push button signalling of mark key mapping, then obtain the push button signalling of this mark key mapping;
103, the extended keyboard type of searching correspondence in local mark key mapping type list is being preset according to the push button signalling of mark key mapping;
Pre-set a mark key mapping type list in this locality, this mark key mapping type list comprises the push button signalling of mark key mapping and corresponding extended keyboard type, and concrete is as shown in table 1:
Table 1
The coordinate of mark key mapping |
The push button signalling of mark key mapping |
Extended keyboard type |
(6,1) |
1 |
Gamepad |
(4,2) |
4 |
Music keyboard |
…… |
|
…… |
(7,2) |
5 |
Full keyboard |
Such as, after extended keyboard is installed to fixing key-position area, the coordinate of the mark key mapping pressed is (4,2), and the push button signalling of this key mapping is 4, and so, the type of the extended keyboard that system searching is corresponding is music keyboard;
104, corresponding according to the push button signalling of this extended keyboard type response function key function event;
When after the type knowing the extended keyboard being installed to fixing key-position area, the button operation to function key of subsequent user on extended keyboard, the system function event corresponding according to function key responds;
Concrete, a function key mapping correspondence table is provided with in this locality, as shown in table 2:
Table 2
Keyboard type |
Cancel key |
Acknowledgement key |
Special keys 1 |
Play button |
Other keys |
Gamepad |
(2,4) |
(2,3) |
(x,y) |
N/A |
… |
Numeric keypad |
(4,11) |
(4,10) |
N/A |
(3,4) |
… |
… |
… |
… |
… |
… |
… |
Music keyboard |
(3,10) |
(4,5) |
N/A |
(5,5) |
… |
Such as, when the extended keyboard installed is music keyboard, pressed play button exactly time user presses function key (5,5) key mapping, system responds this play button accordingly;
Or, first can also search the corresponding table of the function key mapping corresponding with extended keyboard, then search corresponding function event from this function key mapping correspondence table; Such as, first from table 3, the corresponding table of the function key mapping corresponding with extended keyboard is searched;
Table 3
Extended keyboard type |
Function key mapping correspondence table |
Gamepad |
Table 3-1 |
Music keyboard |
Table 3-2 |
… |
… |
Full keyboard |
Table 3-X |
Such as, when the extended keyboard installed is music keyboard, corresponding function key mapping correspondence table is table 3-2, then goes to show the event that in 3-2, locating function key mapping is corresponding;
Table 3-2
Keyboard type |
Cancel key |
Acknowledgement key |
Play button |
Advance key |
Back spacer |
Music keyboard |
(3,10) |
(4,5) |
(5,5) |
(2,7) |
(2,8) |
Such as, when user presses function key (2,7) key mapping time, pressed advance key exactly, system responds this advance key accordingly;
In the present embodiment, the push button signalling of mark key mapping whether is had by detecting fixing key-position area, when being tested with the push button signalling of mark key mapping, obtain the push button signalling of this mark key mapping, then the extended keyboard type of searching correspondence in local mark key mapping type list is being preset according to the push button signalling of this mark key mapping, function event corresponding according to the push button signalling of this extended keyboard type response function key mapping again, the mark key mapping that different extended keyboards is corresponding different, produce corresponding push button signalling, the type of extended keyboard is judged according to different push button signallings, thus the function event that the push button signalling of response function key mapping is corresponding, for mobile terminal provides abundant application keyboard, and extra mobile phone electric energy can not be consumed, cost-saving.
Refer to Fig. 2 to Fig. 9, the embodiment of the equipment of band easily extensible keyboard of the present invention comprises:
Fixing key mapping module 201, fixing key mapping module comprises multiple fixing key mapping, and wherein, fixing key mapping and extended keyboard support the use;
Detection module 202, for detecting the push button signalling whether having mark key mapping;
Acquisition module 203, for being tested with the push button signalling of mark key mapping when detection module, then obtains the push button signalling of this mark key mapping;
Search module 204, push button signalling for the mark key mapping obtained according to acquisition module is being preset in the extended keyboard type of searching correspondence in local mark key mapping type list, wherein, identify key mapping type list and comprise the push button signalling of mark key mapping and corresponding extended keyboard type;
Respond module 205, for the function event corresponding according to the push button signalling of extended keyboard type response function key mapping;
Further, respond module 205 comprises:
Acquiring unit, for obtaining the push button signalling of function key mapping;
Search unit, the function event of searching correspondence in local function key mapping correspondence table is being preset in for the push button signalling according to extended keyboard type and function key mapping, wherein, function key mapping correspondence table comprises the push button signalling of extended keyboard type and function key mapping, and the function event corresponding with the push button signalling of this extended keyboard type and function key mapping;
Response unit, for responding described function event;
Further, search unit also for searching corresponding function event according in being preset in that the local function key mapping corresponding with extended keyboard type is corresponding and showing, wherein, function key mapping correspondence table comprises the push button signalling of function key mapping, and the function event corresponding with the push button signalling of this function key mapping;
As shown in Figure 3, equipment 10 comprises display screen 12 and fixing key mapping module 201 to the front elevation of the equipment in the present embodiment, and fixing key mapping module 201 comprises multiple fixing key mapping;
Further, equipment 10 also comprises:
Dismountable extended keyboard, as shown in Figures 4 to 7, Fig. 4 is gamepad 20, Fig. 5 be full keyboard 30, Fig. 6 be fingerboard 40, Fig. 7 is music keyboard 50;
Extended keyboard and fixing key mapping module 201 support the use, and the face that extended keyboard contacts with fixing key mapping module 201 is provided with multiple contact point, and wherein, contact point is corresponding with the key mapping on extended keyboard; When fixing key mapping module 201 supports the use with extended keyboard, each contact point of extended keyboard is corresponding with the specific key mapping of fixing key mapping, when pressing the key mapping of extended keyboard, the contact point corresponding with this key mapping contacts with key mapping corresponding in fixing key mapping, produces key-position signal;
Each extended keyboard is provided with an extended keyboard identification point, under extended keyboard identification point, correspondence arranges contact point 21, wherein, under this extended keyboard identification point, the corresponding contact point 21 arranged is longer than the contact point of other keys, when extended keyboard and fixing key mapping module 201 support the use, contact point 21 contacts with the corresponding key mapping of fixing in fixing key mapping module 201, this fixing key mapping is called the mark key mapping of corresponding extended keyboard, thus make this equipment can according to the fixing key mapping of this contact, namely the mark key mapping of extended keyboard judges the type of extended keyboard;
Fig. 8 is the front schematic view be arranged on by music keyboard 50 on equipment, in time installing, as shown in Figure 9, contact point 21 is specially pressed without user, just can contact with corresponding fixing key mapping 22, thus making this equipment can judge the type of extended keyboard according to the fixing key mapping of this contact, this fixing key mapping is the fixing key mapping of identification; And other functional fixing key mappings 11, need user's corresponding key mapping pressed on extended keyboard that the contact point on extended keyboard just can be made to contact with functional fixing key mapping 11;
In the present embodiment, the push button signalling of the contact point from setting corresponding under extended keyboard identification point whether is had by detecting fixing key-position area, when being tested with this push button signalling, obtain this push button signalling, then the extended keyboard type of searching correspondence in local mark key mapping type list is being preset according to this push button signalling, function event corresponding according to the push button signalling of this extended keyboard type response function key mapping again, the mark key mapping that different extended keyboards is corresponding different, produce corresponding push button signalling, the type of extended keyboard is judged according to different push button signallings, thus the function event that the push button signalling of response function key mapping is corresponding, for mobile terminal provides abundant application keyboard, and extra mobile phone electric energy can not be consumed, cost-saving.
The foregoing is only embodiments of the invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.