Embodiment
The keyboard of existing portable terminal when the user presses any one button of terminal keyboard, will produce an interruption with the circuit board that button directly contacts; Look-at-me is sent to the operating system of terminal; Operating system judges to this interruption that according to the relevant terminal state output key assignments is to man-machine interface.
The present invention changes over the key assignments that the user sets by exporting key assignments to adding a key value mapping table between the man-machine interface with the key assignments that interrupts determining, outputs to man-machine interface, thereby the personalization of realization keyboard is set.
Dynamic keyboard of the present invention comprises: button, circuit board and dynamic control unit; Described dynamic cell comprises: revise key value mapping table control module, preserve the memory module of key value mapping table and the scheduler module of optional key assignments be provided; Operating system is according to the key assignments of the interruption correspondence of relevant terminal state judgement button contact circuit plate generation, and after the key value mapping table of preserving according to mnemon was changed again, the output key assignments was to man-machine interface.
Described control module is used for receiving trigger command, triggers resetting of keyboard.After entering keyboard and resetting state, the user presses the button that will set, and scheduler module provides the key assignments selected of this button, and after the selected new key assignments of user, control module notice memory module is stored this key assignments corresponding relation.
Memory module can directly upgrade the key value mapping table of preservation according to new corresponding relation, but preferably temporary transient earlier this key assignments corresponding relation of preservation, and offer the function that the user returns to this preoperative state.Reset process when the user finishes keyboard, withdraw from keyboard and reset state and upgrade the keyboard mapping table later on again.
Scheduler module can also have the function of error correction, prevents that the user from re-defining same button.Scheduler module offers in the optional key assignments option of user and does not comprise the key assignments that had redefined.Perhaps, control module provides the keyboard arbitration functions of each input key assignments in the customization procedure again, prevents that the user from importing once more to the button that had defined, and generation re-defines.
The button that can provide several terminals itself to solidify in addition distributes, as: the people at lefthanded preestablishes a keyboard map table that is suitable for the left-handed mode, when control module is triggered, after entering keyboard and resetting state, offer the user and select, remove the loaded down with trivial details step that user oneself sets.
The mode of resetting of trigger control module keypress function can have multiple, as adopt following technical scheme: the one,, special key is set, i.e. the special button of design on terminal, trigger control module is in order to support and to finish redefining other keypress functions; The 2nd, call by the software option in the terminal menu, promptly by selecting the specific function option in the terminal menu to redefine keypress function.
The method that dynamic keyboard keypress function of the present invention is provided with comprises the steps:
Step 1: according to user's input information, the pairing key assignments of button that set or revise and the operating function of resetting are set up corresponding relation, generate and the new key assignments function mapping relations information of temporary transient storage;
Step 2:,, finish resetting of keypress function with the new key assignments function mapping relations information updating key value mapping table of temporary transient storage according to the affirmation key information of user's input.
The present invention is before step 1, and the user can trigger the function that dynamically arranges keyboard provided by the invention by dual mode, specifically can install special-purpose button on described mobile communication terminal, and the user presses described button, triggers; Perhaps, the user selects the option that the keypress function in the menu dynamically arranges in the described mobile communication terminal to trigger the described function that dynamically arranges keyboard.
The new key assignments mapping relations of the described generation of step 1 of the present invention can adopt following two kinds of realizations:
The one, the corresponding relation between the autonomous setting key value of user generates the correspondence relationship information of whole key assignments and each operating function; The 2nd, the user selects the key assignments that terminal itself provides in advance and the scheme of each operating function corresponding relation, thus the corresponding relation of selected new key assignments.Can certainly select new key assignments and each operating function corresponding relation earlier, further adjust by the user again.
The described renewal key value mapping table of step 2 of the present invention, can directly upgrade the key value mapping table of preservation according to the corresponding relation of new settings, but preferably temporary transient earlier this key assignments of preservation and described operating function correspondence relationship information, and offer the function that the user returns to this preoperative state; Reset process when the user finishes keyboard, withdraw from keyboard and reset state and upgrade the keyboard mapping table later on again.
Below by a specific embodiment, further specify technical scheme of the present invention, as shown in Figure 1, specifically comprise the steps:
A) by above-mentioned by special use button or two kinds of schemes of menu in the triggering method described can trigger the operating process that dynamic keyboard is provided with in the accompanying drawing;
B) program presets: the control module in the portable terminal starts resetting of keyboard after receiving trigger command, generates interim mapping table, and digital counter is put initial value M=N, and wherein N is the button sum that can define.Preparatory function is to be finished by control module;
C) wait for new key assignments input: scheduler module provides all selections that button spread option optional or acquiescence supplies new key assignments;
D) if be input as " cancellation " this operation, EOP (end of program) and recover this preoperative state then;
E) if the key assignments of input redetermination then judges whether to re-define button by control module: if repeat, ignore input this time, send prompting, and wait for input next time by man-machine interface; Otherwise carry out next step operation.
F) condition upgraded of update functions digital counter M:M: when key assignments is 0~9, *, # the time, M is constant; When the key assignments of definition was other any function keys, M subtracted 1.
G) control module control memory module upgrades interim mapping table: memory module will store the interim key value mapping table that generates, upgrades in a definition procedure.Return the wait input state.Because what upgraded this moment is interim mapping table, if find mistake in user's step afterwards, the key value mapping table of preserving before also can turning back to.
H) if newly be input as " affirmation ", then judge whether simultaneously to satisfy three conditions: a) satisfy key assignments and be 0~9, the button of *, # must exist; B) be less than M in the function key that is modified, i.e. M>0; C) button of redetermination and the button that is not redefined do not repeat.If satisfy, then upgrade key value mapping table, enter step 16; If do not satisfy, then ignore operation this time, send prompting, enter step 10.
I) confirm EOP (end of program): carry out new key value mapping table.
Because the keyboard basal keystroke that must have comprises: 0~9,12 keys such as *, #, therefore, the M value in the above-mentioned function counter is not counted, with the sum of assurance basal keystroke when these basal keystrokes being carried out more redetermination.
Triggering mode of the present invention can be by being provided with a button separately or realizing by the menu dummy keyboard, and, for all buttons on the whole keyboard, can carry out Dynamic Definition by method of the present invention.
It should be noted last that: above embodiment is the unrestricted technical scheme of the present invention in order to explanation only, although the present invention is had been described in detail with reference to the foregoing description, those of ordinary skill in the art is to be understood that: still can make amendment or be equal to replacement the present invention, and not breaking away from any modification or partial replacement of the spirit and scope of the present invention, it all should be encompassed in the middle of the claim scope of the present invention.