CN102402373B - Method and device for controlling touch keyboard in mobile terminal - Google Patents

Method and device for controlling touch keyboard in mobile terminal Download PDF

Info

Publication number
CN102402373B
CN102402373B CN201010284158.8A CN201010284158A CN102402373B CN 102402373 B CN102402373 B CN 102402373B CN 201010284158 A CN201010284158 A CN 201010284158A CN 102402373 B CN102402373 B CN 102402373B
Authority
CN
China
Prior art keywords
keyboard
keyboard picture
picture
mobile terminal
configuration file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201010284158.8A
Other languages
Chinese (zh)
Other versions
CN102402373A (en
Inventor
刘琨
焦伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Co Ltd
Original Assignee
China Mobile Communications Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Co Ltd filed Critical China Mobile Communications Co Ltd
Priority to CN201010284158.8A priority Critical patent/CN102402373B/en
Publication of CN102402373A publication Critical patent/CN102402373A/en
Application granted granted Critical
Publication of CN102402373B publication Critical patent/CN102402373B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method and device for controlling a touch keyboard in a mobile terminal. The main technical scheme comprises the steps of: monitoring a trigger event of controlling the touch keyboard; after the trigger event is monitored, obtaining a stored keyboard picture and a configuration file corresponding to the keyboard picture, wherein the keyboard picture is used for identifying a display style of each key in the touch keyboard in the mobile terminal, the configuration file corresponding to the keyboard picture comprises position information corresponding to each key in the keyboard picture in the keyboard picture and a key event corresponding to each key; obtaining a region matched with the keyboard picture from a display memory of the mobile terminal, writing the keyboard picture in the obtained region and displaying the keyboard picture on a touch screen region mapped by the region; and importing the configuration file corresponding to the keyboard picture into a touch event processing function of the mobile terminal. By adopting the technical scheme, the efficiency of the realized control over the touch keyboard in the mobile terminal can be increased.

Description

A kind of method and device of controlling touch keyboard in mobile terminal
Technical field
The present invention relates to terminal technology field, relate in particular to a kind of method and device of controlling touch keyboard in mobile terminal.
Background technology
Touch screen (Touch panel) is called again contact panel, it is the induction type liquid crystal indicator that can receive the input signals such as contact, when having contacted the graphic button on screen, haptic feedback system on screen can drive various hookup mechanisms according to the formula of programming in advance, can be in order to replace mechanical push button panel, and produce lively visual and sound effects by liquid crystal display picture.And universal along with mobile terminal, touch-screen is applied in mobile terminal more and more, because that touch-screen has is sturdy and durable, reaction velocity fast, save space, be easy to many advantages such as interchange.Utilize this technology, icon or word that user needs only on the touch-screen of clicking mobile terminal just can be realized the operation to terminal, thereby make man-machine interaction more simple and direct.Meanwhile, along with being widely used of touch-screen, the effect of virtual touch keyboard in mobile terminal of mobile telephone input is also more and more outstanding.
At present, realize touch keyboard having on the mobile terminal of touch-screen, be all before terminal is dispatched from the factory generally, by mobile terminal manufacturer, touch keyboard is encapsulated as to an application in terminal operating system, and provide the API that can be called by user (Application Programming Interface, application programming interface), this application general all with mobile terminal in input control module binding, be user by this application of API Calls after, touch keyboard is displayed on the touch-screen of mobile terminal, user is after clicking this touch keyboard, the input control module of binding can eject the input of text box indicating user with it.The touch keyboard that should realize by package application is due to the application being encapsulated as in operating system, user uses mobile keyboard to need to call API at every turn, and this application be with terminal in input control module binding, by the application restric-tion of touch keyboard in input application; And the touch keyboard of realizing on mobile terminal is cured in terminal operating system, cannot after dispatching from the factory, terminal control the touch keyboard in this terminal.
In sum, based on prior art, the touch keyboard of realizing in mobile terminal depends on operating system, and Show Styles and function are all cured, and can not in the actual use procedure of terminal, realize the control to touch keyboard.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method and device of controlling touch keyboard in mobile terminal, adopts this technical scheme, can in the actual use of mobile terminal, realize the control to touch keyboard.
The embodiment of the present invention is achieved through the following technical solutions:
According to the embodiment of the present invention aspect, provide a kind of method of controlling touch keyboard in mobile terminal.
The method of the control touch keyboard in mobile terminal providing according to the embodiment of the present invention, comprising:
The trigger event of touch keyboard is controlled in monitoring;
After monitoring described trigger event, obtain the keyboard picture of preservation and the configuration file corresponding with described keyboard picture, wherein, described keyboard picture is for identifying the Show Styles of each button of touch keyboard in mobile terminal, and the configuration file corresponding with described keyboard picture comprises each button in described keyboard picture corresponding positional information and corresponding key-press event in described keyboard picture;
From the display memory of mobile terminal, obtain the region of mating with described keyboard picture, described keyboard picture is write to the described region obtaining and be presented in the touch screen zone of described region mapping; And
The touch event that the configuration file corresponding with described keyboard picture is imported to described mobile terminal is processed in function.
According to another aspect of the embodiment of the present invention, also provide a kind of device of controlling touch keyboard in mobile terminal.
The device of the control touch keyboard in mobile terminal providing according to the embodiment of the present invention, comprising:
Monitoring unit, controls the trigger event of touch keyboard for monitoring mobile terminal;
Acquiring unit, for monitoring after described trigger event at described monitoring unit, obtain the keyboard picture of preservation and the configuration file corresponding with described keyboard picture, wherein, described keyboard picture is for identifying the Show Styles of each button of touch keyboard in mobile terminal, and the configuration file corresponding with described keyboard picture comprises each button in described keyboard picture corresponding positional information and corresponding key-press event in described keyboard picture;
Picture writing unit, obtains for the display memory from mobile terminal the region that the keyboard picture that obtains with described acquiring unit mates, and described keyboard picture is write to the described region obtaining and be presented in the touch screen zone of described region mapping;
Configuration file imports unit, and the touch event that imports described mobile terminal for the configuration file corresponding with described keyboard picture that described acquiring unit is obtained is processed function.
Another aspect according to the embodiment of the present invention, also provides a kind of mobile terminal, and this mobile terminal comprises the device of above-mentioned control touch keyboard in mobile terminal.
Above-mentioned at least one technical scheme providing by the embodiment of the present invention, by controlling the trigger event of touch keyboard in monitoring mobile terminal, after monitoring this trigger event, obtain the keyboard picture of preservation and the configuration file corresponding with keyboard picture, wherein, keyboard picture is for identifying the Show Styles of each button of touch keyboard in mobile terminal, and the configuration file corresponding with keyboard picture comprises positional information that each button in keyboard picture is corresponding and corresponding key-press event; Further from the display memory of mobile terminal, obtain the region of mating with this keyboard picture, this keyboard picture is write to the region obtaining and be presented in the touch screen zone of described region mapping; And the configuration file corresponding with this keyboard picture imported in the touch event processing function of mobile terminal.According to this technical scheme, can in mobile terminal, preserve in advance keyboard picture and the configuration file corresponding with keyboard picture, can be in the actual use procedure of terminal, by the trigger event in monitor terminal, the control of realization to touch keyboard, be about to default keyboard picture and be presented on terminal touch screen, and configuration file corresponding to this keyboard picture imported to touch event processing function, with the click event to user, respond.This technical scheme can realize the control to touch keyboard in the actual use of mobile terminal, and makes touch keyboard not rely on operating system.
Other features and advantages of the present invention will be set forth in the following description, and, partly from instructions, become apparent, or understand by implementing the present invention.Object of the present invention and other advantages can be realized and be obtained by specifically noted structure in the instructions write, claims and accompanying drawing.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for instructions, is used from explanation the present invention with the embodiment of the present invention one, is not construed as limiting the invention.In the accompanying drawings:
The process flow diagram of the control touch keyboard in mobile terminal that Fig. 1 provides for the embodiment of the present invention one;
The process flow diagram that obtains the region of mating with keyboard picture that Fig. 2 provides for the embodiment of the present invention one;
Fig. 3 processes the process flow diagram in function for the touch event that the configuration file corresponding with keyboard picture is imported to mobile terminal that the embodiment of the present invention one provides;
Control flow chart to touch keyboard during system boot that Fig. 4 provides for the embodiment of the present invention one;
The device schematic diagram one of the control touch keyboard in mobile terminal that Fig. 5 provides for the embodiment of the present invention two;
The device schematic diagram two of the control touch keyboard in mobile terminal that Fig. 6 provides for the embodiment of the present invention two;
The mobile terminal schematic diagram that Fig. 7 provides for the embodiment of the present invention three.
Embodiment
In order to provide the implementation improving the control efficiency of the touch keyboard of realizing in mobile terminal, the embodiment of the present invention provides a kind of method and device of controlling touch keyboard in mobile terminal, below in conjunction with Figure of description, the preferred embodiments of the present invention are described, be to be understood that, preferred embodiment described herein only, for description and interpretation the present invention, is not intended to limit the present invention.And in the situation that not conflicting, embodiment and the feature in embodiment in the application can combine mutually.
Embodiment mono-
The embodiment of the present invention one provides a kind of method of controlling touch keyboard in mobile terminal, according to the method, can in mobile terminal, load different touch keyboards, has enriched pattern and the function of touch keyboard in mobile terminal.
As shown in Figure 1, control touch keyboard in mobile terminal, mainly comprise the steps:
In step 101, monitoring mobile terminal, control the trigger event of touch keyboard.
Step 102, judge whether to monitor the trigger event of controlling touch keyboard, if so, perform step 103, if not, return to step 101.
Step 103, obtain the keyboard picture of preservation and the configuration file corresponding with keyboard picture.
In this step, the keyboard picture of preserving is for identifying the Show Styles of each button of touch keyboard in mobile terminal, and the configuration file corresponding with keyboard picture comprises each button in this keyboard picture corresponding positional information and corresponding key-press event in keyboard picture.
Step 104, from the display memory of mobile terminal, obtain the region of mating with this keyboard picture, this keyboard picture is write to the described region obtaining and be presented in the touch screen zone of described region mapping.
In this step 104, specifically by the frame buffer Framebuffer in mobile terminal, from display memory, obtain the region of mating with this keyboard picture.
Step 105, the touch event that the configuration file corresponding with this keyboard picture imported to this mobile terminal are processed in function, and so far, the flow process that the trigger event monitoring according to this is controlled touch keyboard in mobile terminal finishes.
Above-mentioned steps 104 and step 105 there is no strict execution sequence, in practical application, can first perform step 104 as mentioned above, then perform step 105; Or, first perform step 105, then perform step 104; Or, start two threads and carry out above-mentioned steps simultaneously.
By above-mentioned flow process, can realize in mobile terminal and load according to trigger event keyboard picture and the configuration file of preserving in advance, this keyboard picture and corresponding configuration file can be designed according to the actual requirements by user, can represent by different keyboard pictures the Show Styles of different touch keyboards, and represent positional information and the corresponding key-press event of each button in keyboard picture in corresponding keyboard picture by designing different configuration files, enriched the implementation of touch keyboard in mobile terminal, and do not rely on system operating system, without flow processs such as executive's interface call.Below concrete ins and outs related in above-mentioned steps are elaborated.
Shown in Fig. 1 in the step 101 of flow process, the trigger event of controlling touch keyboard can be set in advance in mobile terminal, for example, mobile terminal is set and in start, time carries out the control of touch keyboard, or arrange and when user needs to switch touch keyboard in the process of using mobile terminal, carry out the control of touch keyboard.Correspondingly, in this step 101, in monitoring mobile terminal, control the trigger event of touch keyboard, specifically comprise:
The start event of monitoring mobile terminal, detects in mobile terminal whether have starting-up signal, and this starting-up signal can be triggered by user, also can be triggered by mobile terminal, for example, Auto Power On; Or
The indication of carrying out touch keyboard switching that monitoring mobile terminal receives, detect and whether receive touch keyboard switching indication, this touch keyboard switches indication can in use be triggered in real time by user, also can trigger according to being set in advance in while meeting the switching condition of setting.In practical application, user can set the switching condition of touch keyboard in mobile terminal according to the actual requirements, for example, for controlling conveniently, user can set the touch keyboard corresponding with different application, when user starts this application program, system, after this event being detected, is set and is triggered keyboard shift indication according to user; User also can be according to self use habit, in different time sections, can start different touch keyboards, for example, user can set the touch keyboard corresponding with different time sections, when system time entered after certain time period, according to user, set and trigger keyboard shift indication.
Shown in Fig. 1, in the step 103 of flow process, in order to reach the object of enriching touch keyboard, in mobile terminal, generally all preserve many group keyboard pictures and the configuration file corresponding with keyboard picture.Particularly, in the situation that in mobile terminal, generally all preserve many group keyboard pictures and the configuration file corresponding with keyboard picture, above-mentioned steps 103, can preferably realize by following any one obtain manner:
Obtain manner one
The keyboard picture obtaining according to user indication obtains keyboard picture and the configuration file thereof that user's indication is obtained from many groups keyboard picture of preserving and the configuration file corresponding with keyboard picture.
In practical application, can in mobile terminal being detected, preserve after many groups keyboard picture and configuration file thereof, to user, export selectable keyboard picture (or keyboard picture thumbnail or keyboard picture description information), and receive the current keyboard picture that needs loading that user selects according to the selectable keyboard picture of output; Also after can being set in advance by user, need the keyboard picture loading, herein, can directly according to user, set and load corresponding keyboard picture, to improve the loading efficiency of touch keyboard.
Obtain manner two
According to each default time period and corresponding relation and the current system time of keyboard picture, from many groups keyboard picture of preservation and the configuration file corresponding with keyboard picture, obtain keyboard picture and the configuration file thereof corresponding with place time period current system time.
The prerequisite of implementing this obtain manner two is the corresponding relation that user has set each time period and keyboard picture, and user, according to self-demand, arranges the keyboard picture of this time period use in different time sections.According to this embodiment two, can load corresponding keyboard picture according to place time period current time in system, having enriched on the basis of keybaord file, further met user's request.
Obtain manner three
According to default each application program and the corresponding relation of keyboard picture and the application program of current startup, from many groups keyboard picture of preservation and the configuration file corresponding with keyboard picture, obtain keyboard picture and the configuration file thereof corresponding with the application program of current startup.
The prerequisite of implementing this obtain manner three is the corresponding relation that user has set each application program and keyboard picture, be that user is according to self-demand, keyboard picture corresponding to this application program is set when starting different application, for example, when starting MP3 player, can load the touch keyboard of being convenient to control this MP3 player.According to this embodiment three, the application program that can start according to user loads corresponding keyboard picture, having enriched on the basis of keybaord file, has further met user's request.
Be to be understood that, above obtain manner is only for realizing the preferred implementation of the embodiment of the present invention, in practical application, can there is multiple obtain manner, for example, from many groups keyboard picture and configuration file thereof, choose any one group of loading, or, the one group of keyboard picture and the configuration file thereof that meet current loading sequence according to setting order, from many groups keyboard picture and configuration file thereof, chosen.
Shown in Fig. 1 in the step 104 of flow process, the frame buffer Framebuffer by mobile terminal obtains the region of mating with this keyboard picture from display memory, as shown in Figure 2, mainly comprises the steps:
Step 201, the keyboard picture obtaining is resolved, determine photo resolution information and color depth information that this keyboard picture is corresponding.
In this step, the color depth of picture (Color Depth) information is the color bits degree of depth of picture, is illustrated in and sets under resolution, and each pixel can have how many kinds of color to describe, and the unit of color depth is " bit (position) ".At present, typical color depth is 8bit, 16bit, 24bit and 32bit.Wherein, depth value is higher, and the color that can obtain is more.
Step 202, according to the resolution information of definite keyboard picture and color depth information, by frame buffer Framebuffer, in Installed System Memory, obtain the region with this keyboard layout chip resolution information and color depth information matches.
In this step 202, frame buffer Framebuffer is used for the demonstration of current frame image on the touch-screen of control terminal, obtains with the region of this keyboard layout chip resolution information and color depth information matches to be by frame buffer Framebuffer from display memory:
x*y*a/n
Wherein:
X*y represents the resolution of keyboard picture;
A represents the color depth of keyboard picture, and unit is bit;
N represents unit in frame buffer Framebuffer and the relation of bit, and for example, the unit in frame buffer Framebuffer is byte, and 1 byte equals 8bit, and the value of n is 8 herein.
In display memory, for keyboard picture gets after above-mentioned zone, need available region in reporting system operating system display memory, utilize the original region of display memory to deduct the region obtaining for keyboard picture.
Shown in Fig. 1, in the step 105 of flow process, the touch event that the configuration file corresponding with keyboard picture is imported to mobile terminal is processed in function, as shown in Figure 3, mainly comprises the steps:
Step 301, the configuration file corresponding according to keyboard picture, determine corresponding regional extent and the corresponding key-press event in keyboard picture of each button in this keyboard picture.
Step 302, the touch event that corresponding regional extent and corresponding key-press event import mobile terminal respectively of each button in this keyboard picture is processed in function.
In above-mentioned steps 301, the configuration file that keyboard picture is corresponding comprises regional extent and the corresponding key-press event of each button correspondence in keyboard picture in keyboard picture, in this configuration file, the regional extent at button place and corresponding key-press event be can be defined as follows:
<Key>
<name>2</name>
<Rect>
<x1>100</x1>
<x2>150</x2>
<y1>50</y1>
<y2>80</y2>
</Rect>
<Event>2,a,b,c</Event>
</Key>
Be more than the ios dhcp sample configuration IOS DHCP of button in configuration file " 2 ", button name is called " 2 ", and in key image, the regional extent at place is (100,50), (100,80) rectangular area that, (150,50), (150,80) four pixels surround.Key-press event button can represent for this reason button or function, herein " 2 " button can trigger out 2, the key-press event of a, b, tetra-characters of c.
By above-mentioned configuration mode, user can be according to self-demand, definition keyboard picture and the configuration file corresponding with this keyboard picture, and in configuration file flexible key-press event corresponding to each button of definition, by with system in frame buffer and touch event control module (for carrying out touch event, processing the module of function) carry out mutual, thereby complete from the customization that designs keyboard.
In the embodiment of the present invention one, after executing above-mentioned steps 105, loaded after touch keyboard, also comprised the steps:
Obtain user and click the click event that is presented at the keyboard picture in described touch screen zone;
The user that click event is comprised clicks the positional information of described keyboard picture, mates with the configuration file importing in touch event processing function, determines the button that this positional information is corresponding, and triggers the key-press event that this button is corresponding.
Above step has formed the touch keyboard based on loading in the embodiment of the present invention one, the flow process that user click event is responded.
The technique scheme providing in order to understand better the embodiment of the present invention one, the technical scheme embodiment of the present invention being provided below in conjunction with concrete start flow process describes:
As shown in Figure 4, the control procedure to touch keyboard during system boot, mainly comprises the steps:
Step 401, system detect start event, enter init state Init.
Step 402, Init process seeking system configuration file, judge whether to preserve keyboard picture and corresponding configuration file, and if not, execution step 403, if so, performs step 404.
Step 403, system enter normal startup flow process.
Step 404, obtain the keyboard picture preserved in CONFIG.SYS and corresponding configuration file.
Herein, having omitted keyboard picture and the corresponding configuration file in CONFIG.SYS, preserved is in the situations of many groups, choose the process of the keyboard picture of current loading and the configuration file of correspondence, in practical application, need the obtain manner providing according to above embodiment to obtain wherein one group, repeat no more herein.
The keyboard picture that step 405, basis are obtained obtains a region in display memory by framebuffer, this keyboard picture is write to this region and show.
In this step 405, keyboard picture is write behind this region, further reporting system can be that original framebuffer region deducts the region of distributing to this keyboard picture with framebuffer region.
Step 406, configuration file corresponding to this keyboard picture imported to touch event process in function, system enters Idle state (being holding state).
Step 407, when system monitoring is when the touch event, obtain the touch area that this touch event is corresponding.
Step 408, by configuration file coupling corresponding to the keyboard picture of this touch area and current loading, judge whether to match key area, if so, perform step 409, otherwise return to step 406.
Trigger event corresponding to button that step 409, triggering match, afterwards, system enters Idle state.
Embodiment bis-
The embodiment of the present invention two provides a kind of device of controlling touch keyboard in mobile terminal, and the method flow of the control touch keyboard in mobile terminal that this device provides with above-described embodiment one is corresponding one by one.
As shown in Figure 5, the device that this controls touch keyboard in mobile terminal, mainly comprises:
Monitoring unit 501, acquiring unit 502, picture writing unit 503 and configuration file import unit 504;
Wherein:
Monitoring unit 501, controls the trigger event of touch keyboard for monitoring mobile terminal;
Acquiring unit 502, for monitoring after trigger event at monitoring unit 501, obtain the keyboard picture of preservation and the configuration file corresponding with this keyboard picture, wherein, described keyboard picture is for identifying the Show Styles of each button of touch keyboard in mobile terminal, and the configuration file corresponding with described keyboard picture comprises each button in described keyboard picture corresponding positional information and corresponding key-press event in described keyboard picture;
Picture writing unit 503, obtains for the display memory from mobile terminal the region that the keyboard picture that obtains with acquiring unit 502 mates, and this keyboard picture is write to the region obtaining and be presented in the touch screen zone of described region mapping;
Configuration file imports unit 504, and the touch event that imports described mobile terminal for configuration file that obtain by acquiring unit 502 and that described keyboard picture is corresponding is processed function.
In the preferred embodiment of the present invention, the monitoring unit 501 that the device shown in Fig. 5 comprises, specifically for:
Monitor the start event of described mobile terminal; Or
Monitor the indication of carrying out touch keyboard switching that described mobile terminal receives.
In the preferred embodiment of the present invention, the acquiring unit 502 that the device shown in Fig. 5 comprises, specifically for:
At the keyboard picture of preserving and the configuration file corresponding with described keyboard picture, be while organizing more, the keyboard picture obtaining according to user indication obtains keyboard picture and the configuration file thereof that described user's indication is obtained from many groups keyboard picture of preserving and the configuration file corresponding with described keyboard picture; Or
At the keyboard picture of preserving and the configuration file corresponding with described keyboard picture, be while organizing more, according to each default time period and corresponding relation and the current system time of keyboard picture, from many groups keyboard picture of preservation and the configuration file corresponding with described keyboard picture, obtain keyboard picture and the configuration file thereof corresponding with place time period current system time; Or
At the keyboard picture of preserving and the configuration file corresponding with described keyboard picture, be while organizing more, according to default each application program and the corresponding relation of keyboard picture and the application program of current startup, from many groups keyboard picture of preservation and the configuration file corresponding with described keyboard picture, obtain keyboard picture and the configuration file thereof corresponding with the application program of current startup.
In the preferred embodiment of the present invention, the picture writing unit 503 that the device shown in Fig. 5 comprises, specifically for:
Determine corresponding photo resolution information and the color depth information of described keyboard picture of obtaining;
According to described keyboard layout chip resolution information and the described color depth information determined, the frame buffer Framebuffer by described mobile terminal obtains the region with described keyboard layout chip resolution information and color depth information matches from display memory;
Described keyboard picture is write to the described region obtaining.
As shown in Figure 6, in the preferred embodiment of the present invention, the device shown in Fig. 5, can further include:
Control module 505, for obtaining user, click the click event that is presented at the keyboard picture in described touch screen zone, the user that described click event is comprised clicks the positional information of described keyboard picture, the configuration file importing in the described touch event processing of unit 504 importing function with configuration file mates, determine the button that described positional information is corresponding, and trigger the key-press event that described button is corresponding.
Should be appreciated that the only logical partitioning for carrying out according to the function of this device realization of unit that the device of above control touch keyboard in mobile terminal comprises, in practical application, can carry out stack or the fractionation of said units.And the method flow of the control touch keyboard in mobile terminal that the function that the device that this embodiment provides is realized provides with above-described embodiment one is corresponding one by one, the more detailed treatment scheme realizing for this device, in above-described embodiment one, be described in detail, be not described in detail herein.
Embodiment tri-
The embodiment of the present invention three provides a kind of mobile terminal, this mobile terminal comprises the device of the control touch keyboard in mobile terminal that above-described embodiment two provides, mobile terminal as shown in Figure 7, the device of this control touch keyboard in mobile terminal can be preferably located between the kernel (kernel) and framework (application framework) layer of system.In file system, preserve keyboard picture and the configuration file corresponding with keyboard picture, after system initialization (being load in Init), the device of this control touch keyboard in mobile terminal writes keyboard picture the module showing for controlling internal memory, for example, frame buffer Frame buffer (being Framebuffer map), and according to configuration file, obtain the corresponding keyevent of touch event (key-press event) and offer keyevent receiver (key-press event receiver).This control procedure can start before system initialization process, and carries out alternately with frame buffer and touch event control module in the process of system initialization, therefore can not affect the postrun logic state of system, has realized the isolation with operating system.And the frame buffer obtaining by control system initialize process and touch event information, reached the adaptation of system to the response of customizing keyboard and system demonstration itself.
The concrete function of realizing for this device and realize the related detailed technology details of each function and describe in detail in above-described embodiment two repeats no more herein.
Above-mentioned at least one technical scheme providing by the embodiment of the present invention, by controlling the trigger event of touch keyboard in monitoring mobile terminal, after monitoring this trigger event, obtain the keyboard picture of preservation and the configuration file corresponding with keyboard picture, wherein, keyboard picture is for identifying the Show Styles of each button of touch keyboard in mobile terminal, and the configuration file corresponding with keyboard picture comprises positional information that each button in keyboard picture is corresponding and corresponding key-press event; Further from the display memory of mobile terminal, obtain the region of mating with this keyboard picture, this keyboard picture is write to the region obtaining and be presented in the touch screen zone of described region mapping; And the configuration file corresponding with this keyboard picture imported in the touch event processing function of mobile terminal.According to this technical scheme, can in mobile terminal, preserve in advance keyboard picture and the configuration file corresponding with keyboard picture, can be in the actual use procedure of terminal, by the trigger event in monitor terminal, the control of realization to touch keyboard, be about to default keyboard picture and be presented on terminal touch screen, and configuration file corresponding to this keyboard picture imported to touch event processing function, with the click event to user, respond.This technical scheme can realize the control to touch keyboard in the actual use of mobile terminal, and makes touch keyboard not rely on operating system.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.

Claims (9)

1. a method of controlling touch keyboard in mobile terminal, it is characterized in that, the device of controlling touch keyboard in mobile terminal is set in described mobile terminal, and described device is between the kernel kernel and application framework framework layer of described mobile terminal operating system, and the method comprises:
In monitoring mobile terminal, control the trigger event of touch keyboard;
After monitoring described trigger event, obtain the keyboard picture of preservation and the configuration file corresponding with described keyboard picture, wherein, described keyboard picture is for identifying the Show Styles of each button of touch keyboard in mobile terminal, and the configuration file corresponding with described keyboard picture comprises each button in described keyboard picture corresponding positional information and corresponding key-press event in described keyboard picture;
Determine corresponding photo resolution information and the color depth information of described keyboard picture of obtaining; According to described keyboard layout chip resolution information and the described color depth information determined, the frame buffer Framebuffer by described mobile terminal obtains the region with described keyboard layout chip resolution information and color depth information matches from display memory;
Described keyboard picture is write to the described region obtaining and be presented in the touch screen zone of described region mapping; And
The touch event that the configuration file corresponding with described keyboard picture is imported to described mobile terminal is processed in function.
2. the method for claim 1, is characterized in that, controls the trigger event of touch keyboard in monitoring mobile terminal, comprising:
Monitor the start event of described mobile terminal; Or
Monitor the indication of carrying out touch keyboard switching that described mobile terminal receives.
3. the method for claim 1, is characterized in that, at the keyboard picture of preserving and the configuration file corresponding with described keyboard picture, be while organizing more, obtains the keyboard picture of preservation and the configuration file corresponding with described keyboard picture, comprising:
The keyboard picture obtaining according to user indication obtains keyboard picture and the configuration file thereof that described user's indication is obtained from many groups keyboard picture of preserving and the configuration file corresponding with described keyboard picture; Or
According to each default time period and corresponding relation and the current system time of keyboard picture, from many groups keyboard picture of preservation and the configuration file corresponding with described keyboard picture, obtain keyboard picture and the configuration file thereof corresponding with place time period current system time; Or
According to default each application program and the corresponding relation of keyboard picture and the application program of current startup, from many groups keyboard picture of preservation and the configuration file corresponding with described keyboard picture, obtain keyboard picture and the configuration file thereof corresponding with the application program of current startup.
4. the method for claim 1, is characterized in that, after the touch event that the configuration file corresponding with described keyboard picture imported to described mobile terminal is processed in function, comprising:
Obtain user and click the click event that is presented at the keyboard picture in described touch screen zone;
The user that described click event is comprised clicks the positional information of described keyboard picture, mates with the configuration file importing in described touch event processing function, determines the button that described positional information is corresponding, and triggers the key-press event that described button is corresponding.
5. a device of controlling touch keyboard in mobile terminal, is characterized in that, this installs between the kernel kernel and application framework framework layer of described mobile terminal operating system, and this device comprises:
Monitoring unit, controls the trigger event of touch keyboard for monitoring mobile terminal;
Acquiring unit, for monitoring after described trigger event at described monitoring unit, obtain the keyboard picture of preservation and the configuration file corresponding with described keyboard picture, wherein, described keyboard picture is for identifying the Show Styles of each button of touch keyboard in mobile terminal, and the configuration file corresponding with described keyboard picture comprises each button in described keyboard picture corresponding positional information and corresponding key-press event in described keyboard picture;
Picture writing unit, the region of mating for obtain the keyboard picture that obtains with described acquiring unit from the display memory of mobile terminal, described keyboard picture write to the described region obtaining and be presented in the touch screen zone of described region mapping, being specially: determine corresponding photo resolution information and the color depth information of described keyboard picture of obtaining; According to described keyboard layout chip resolution information and the described color depth information determined, the frame buffer Framebuffer by described mobile terminal obtains the region with described keyboard layout chip resolution information and color depth information matches from display memory; Described keyboard picture is write to the described region obtaining;
Configuration file imports unit, and the touch event that imports described mobile terminal for the configuration file corresponding with described keyboard picture that described acquiring unit is obtained is processed function.
6. device as claimed in claim 5, is characterized in that, described monitoring unit, specifically for:
Monitor the start event of described mobile terminal; Or
Monitor the indication of carrying out touch keyboard switching that described mobile terminal receives.
7. device as claimed in claim 5, is characterized in that, described acquiring unit, specifically for:
At the keyboard picture of preserving and the configuration file corresponding with described keyboard picture, be while organizing more, the keyboard picture obtaining according to user indication obtains keyboard picture and the configuration file thereof that described user's indication is obtained from many groups keyboard picture of preserving and the configuration file corresponding with described keyboard picture; Or
At the keyboard picture of preserving and the configuration file corresponding with described keyboard picture, be while organizing more, according to each default time period and corresponding relation and the current system time of keyboard picture, from many groups keyboard picture of preservation and the configuration file corresponding with described keyboard picture, obtain keyboard picture and the configuration file thereof corresponding with place time period current system time; Or
At the keyboard picture of preserving and the configuration file corresponding with described keyboard picture, be while organizing more, according to default each application program and the corresponding relation of keyboard picture and the application program of current startup, from many groups keyboard picture of preservation and the configuration file corresponding with described keyboard picture, obtain keyboard picture and the configuration file thereof corresponding with the application program of current startup.
8. device as claimed in claim 5, is characterized in that, also comprises:
Control module, for obtaining user, click the click event that is presented at the keyboard picture in described touch screen zone, the user that described click event is comprised clicks the positional information of described keyboard picture, the configuration file importing in described touch event processing function with described configuration file importing unit mates, determine the button that described positional information is corresponding, and trigger the key-press event that described button is corresponding.
9. a mobile terminal, is characterized in that, comprises that claim 5 is to the device of the control touch keyboard in mobile terminal described in claim 8 any one.
CN201010284158.8A 2010-09-15 2010-09-15 Method and device for controlling touch keyboard in mobile terminal Expired - Fee Related CN102402373B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010284158.8A CN102402373B (en) 2010-09-15 2010-09-15 Method and device for controlling touch keyboard in mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010284158.8A CN102402373B (en) 2010-09-15 2010-09-15 Method and device for controlling touch keyboard in mobile terminal

Publications (2)

Publication Number Publication Date
CN102402373A CN102402373A (en) 2012-04-04
CN102402373B true CN102402373B (en) 2014-12-10

Family

ID=45884633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010284158.8A Expired - Fee Related CN102402373B (en) 2010-09-15 2010-09-15 Method and device for controlling touch keyboard in mobile terminal

Country Status (1)

Country Link
CN (1) CN102402373B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929640B (en) * 2012-11-08 2015-10-21 山东大学 A kind of method being promoted Android system performance by multi cache mechanism
CN104238920A (en) * 2013-06-13 2014-12-24 深圳市同洲电子股份有限公司 Method and device for generating simulation configuration file information
US9158426B1 (en) * 2014-03-19 2015-10-13 Google Inc. Touch keyboard calibration
CN104360816B (en) * 2014-11-27 2018-01-16 广东欧珀移动通信有限公司 Screenshotss method and system
CN107450813B (en) * 2017-06-30 2020-02-07 武汉斗鱼网络科技有限公司 Design method and device of button with trigger function
CN107390998B (en) * 2017-08-18 2018-07-06 中山叶浪智能科技有限责任公司 The setting method and system of button in a kind of dummy keyboard
CN111796149B (en) * 2020-06-15 2023-05-09 深圳市极致汇仪科技有限公司 Entity key touch vector network analyzer
CN113220135B (en) * 2021-04-27 2021-11-23 北京麟卓信息科技有限公司 Touch event-based adaptive keyboard mapping method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1755604A (en) * 2004-09-29 2006-04-05 株式会社东芝 Input device, microcomputer and information processing method
CN101075873A (en) * 2007-06-28 2007-11-21 腾讯科技(深圳)有限公司 Method and system for inputting content
CN101620506A (en) * 2008-07-02 2010-01-06 三星电子株式会社 Mobile terminal having touch screen and touch-based key input method for the same

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3882424B2 (en) * 1999-10-18 2007-02-14 カシオ計算機株式会社 Input device and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1755604A (en) * 2004-09-29 2006-04-05 株式会社东芝 Input device, microcomputer and information processing method
CN101075873A (en) * 2007-06-28 2007-11-21 腾讯科技(深圳)有限公司 Method and system for inputting content
CN101620506A (en) * 2008-07-02 2010-01-06 三星电子株式会社 Mobile terminal having touch screen and touch-based key input method for the same

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特开2001-117695A 2001.04.27 *

Also Published As

Publication number Publication date
CN102402373A (en) 2012-04-04

Similar Documents

Publication Publication Date Title
CN102402373B (en) Method and device for controlling touch keyboard in mobile terminal
US20200169596A1 (en) File transfer display control method and apparatus, and corresponding terminal
US20150301730A1 (en) Object Suspension Realizing Method and Device
EP2583154B1 (en) Contextual control of dynamic input device
KR102006598B1 (en) Management of the channel bar
KR20160013162A (en) User interface elements for multiple displays
US10055102B2 (en) Method of promptly starting windowed applications installed on a mobile operating system and device using the same
US20100033438A1 (en) Touch-based remote control apparatus and method
CN103425481B (en) Shortcut is dynamically distributed to menu item and action
US20150058776A1 (en) Providing keyboard shortcuts mapped to a keyboard
TW200417902A (en) Computer system capable of being operated under multiple operation modes and operation method thereof
CN104135684A (en) A method and a device for displaying an interface based on a Firefox OS
CN103019595A (en) Terminal equipment and subject switching method thereof
CN106547429B (en) Display method and device for electronic terminal
CN110019464B (en) Page processing method and device
CN102981818A (en) Scenario based animation library
KR20190032861A (en) Electronic device and control method thereof
CN106325699A (en) Application program starting method and device
WO2019019899A1 (en) Method and device for improving response to black screen gesture, storage medium, and mobile terminal
CN107533448A (en) Image output control method, image Output Control Program and display device
CN101650635A (en) Method for controlling remote display by terminal equipment and terminal equipment
US20150317185A1 (en) Method for switching operating system and electronic device using the method
US20070018963A1 (en) Tablet hot zones
US9026691B2 (en) Semi-autonomous touch I/O device controller operation under control of host
CN103838304A (en) Electronic equipment and display control method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20141210

CF01 Termination of patent right due to non-payment of annual fee