CN103620542B - A physical key simulating method and apparatus based on a touch screen - Google Patents

A physical key simulating method and apparatus based on a touch screen Download PDF

Info

Publication number
CN103620542B
CN103620542B CN201380000292.2A CN201380000292A CN103620542B CN 103620542 B CN103620542 B CN 103620542B CN 201380000292 A CN201380000292 A CN 201380000292A CN 103620542 B CN103620542 B CN 103620542B
Authority
CN
China
Prior art keywords
touch
area
physical button
screen
action
Prior art date
Application number
CN201380000292.2A
Other languages
Chinese (zh)
Other versions
CN103620542A (en
Inventor
周晨光
谭冠中
Original Assignee
华为终端有限公司
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 华为终端有限公司 filed Critical 华为终端有限公司
Priority to PCT/CN2013/070845 priority Critical patent/WO2014113923A1/en
Publication of CN103620542A publication Critical patent/CN103620542A/en
Application granted granted Critical
Publication of CN103620542B publication Critical patent/CN103620542B/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Abstract

The invention discloses a physical key simulating method and apparatus based on a touch screen. The method comprises: sensing a touch action on the touch screen in order to determine a touch type and obtaining touch area corresponding to the touch action; determining a corresponding physical key event in combination with the touch area and the touch type; triggering the physical key event; and responding to the physical key event in order to call preset key processing logic to perform key operation mapped by physical key event. By means of the above disclosed content, the physical key simulating method may achieve simulation of physical keys, save limited screen area, and simplify physical space so as to improve user experience.

Description

Physical button analogy method based on touch-screen and device

Technology leads network

The present invention relates to electronic technology field, more particularly to a kind of physical button analogy method based on touch-screen and dress Put.

Background technology

At this stage, touch-screen is in mobile phone, panel computer, PDA(Personal Digital Assistant, individual digital Assistant)It has been widely used Deng in electronic product, the popular ANDRIOD in existing market(Android)Mobile phone have HOME, The physical button such as MENU, RETURN, relatively iPhone, design is wordy.

From 2012, a lot of producers were to pursue compact design, eliminate physical button, and arrange virtual pressing in screen Key, specifically, shows that virtual key, to replace the physical button such as HOME, MENU, RETURN, passes through in user on a display screen Touch-screen presses and can produce the physical button such as HOME, MENU, RETURN corresponding physical button event during this virtual key.But, This take screen inner area method come the method to realize physical button said function occupy screen display space so that Consumer's Experience declines.

Content of the invention

In view of this, a kind of physical button analogy method based on touch-screen and device are embodiments provided, with Realize the simulation of physical button, effectively save limited screen area by touching area, simplify physical space, improve use Family is experienced.

In a first aspect, being included based on the physical button analogy method of touch-screen:Touch action on induction touch panel is with true Determine touch type, and obtain the touch area corresponding to touch action;To determine touching area with reference to touch type accordingly Physical button event;Triggering physical button event;Response physical button event carries out physics to call programmable button to process logic The button operation of key-press event mapping.

In the first possible implementation of first aspect, the touch action on induction touch panel is to determine touch Type, and before obtaining the touch area corresponding to touch action, provide Man Machine Interface to obtain the area of user setup Threshold range.

In conjunction with the first possible implementation of first aspect, in the possible implementation of second, obtain and touch Touch area corresponding to action further includes:Within the scope of judging whether touch area is located at area threshold, if so, then will Touch area to determine corresponding physical button event with reference to touch type, if it is not, then determined corresponding according to touch type Touch event.

In conjunction with the possible reality of the second of first aspect, the first possible implementation of first aspect or first aspect Existing mode, in the third possible implementation, the touch action on induction touch panel is to determine touch type, and obtains tactile Touch the touch area corresponding to action to include:After sensing described touch action, time delay one scheduled duration obtains touch again Touch area corresponding to action.

In conjunction with the possible reality of the second of first aspect, the first possible implementation of first aspect, first aspect Existing mode or the third possible implementation of first aspect, in the 4th kind of possible implementation of first aspect, obtain The touch area corresponding to touch action is taken to include:The touch-control points of the touch area that statistics touch action is contacted with touch-screen, And area is touched according to the areal calculation of touch-control points and each touch point.

Second aspect, is included based on the physical button analogue means of touch-screen:Touch action processing module, tactile for sensing Touch touch action on screen to determine touch type, and obtain the touch area corresponding to touch action;Physical button event is true Recognize module, for determine corresponding physical button event by touching area with reference to touch type;Physical button event trigger mode Block, for triggering physical button event;Key operation module, is patrolled with calling programmable button to process for responding physical button event Collect the button operation carrying out physical button event mapping.

In the first possible implementation of second aspect, this device further includes Man Machine Interface module, Man Machine Interface module is used for obtaining the area threshold scope of user setup.

In conjunction with the first possible implementation of second aspect, in the possible implementation of second, this device enters One step includes judge module and touch event determining module, and judge module is used for judging to touch whether area is located at area threshold Within the scope of, if so, physical button event confirmation module to determine corresponding physical button by touching area with reference to touch type Event, if it is not, touch event confirms that module determines corresponding touch event according to touch type.

In conjunction with the possible reality of the second of second aspect, the first possible implementation of second aspect or second aspect Existing mode, in the third possible implementation, touch action processing module is further used for:Sense touch action it Afterwards, time delay one scheduled duration obtains the touch area corresponding to touch action again.

In conjunction with the possible reality of the second of second aspect, the first possible implementation of second aspect, second aspect Existing mode or the third possible implementation of second aspect, in the 4th kind of possible implementation, touch action is processed Module is further used for:The touch-control of touch area that statistics touch action contact with touch-screen is counted, and according to touch-control count with And the areal calculation of each touch point touches area.

The third aspect, includes touch-screen, processor and bus, processor based on the physical button analogue means of touch-screen And touch-screen is of coupled connections with bus respectively, and communication is interacted by bus, touch-screen is used on induction touch panel Touch action;Processor is used for:Touch type is determined according to touch action, and obtains the touch area corresponding to touch action; To determine corresponding physical button event by touching area with reference to touch type;Triggering physical button event;Response physical button Event processes, to call programmable button, the button operation that logic carries out physical button key assignments mapping.

In the first possible implementation of the third aspect, this device further includes that be of coupled connections with bus is shown Display screen, this processor is further used for:To display screen output display interface to show area threshold range setting interface, control and touch Touch the area threshold scope that screen obtains user setup.

In conjunction with the first possible implementation of the third aspect, in the possible implementation of second, this processor It is further used for:Within the scope of judging whether touch area is located at area threshold, if so, will touch area and come with reference to touch type Determine corresponding physical button event, if it is not, determine corresponding touch event according to touch type.

In conjunction with the possible reality of the second of the third aspect, the first possible implementation of the third aspect or the third aspect Existing mode, in the third possible implementation, this processor is further used for:Touch screen induction to touch action it Afterwards, time delay one scheduled duration obtains the touch area corresponding to touch action again.

In conjunction with the possible reality of the second of the third aspect, the first possible implementation of the third aspect, the third aspect Existing mode or the third possible implementation of the third aspect, in the 4th kind of possible implementation, this processor enters one Walk and be used for:The touch-control points of the touch area that statistics touch action is contacted with touch-screen, and counted according to touch-control and each tactile The areal calculation of control point touches area.

By technique scheme, the embodiment of the present invention combined by touch type touch area realize physical button or The triggering of the physical button event corresponding to virtual key, responds this physical button event and is entered with calling programmable button to process logic The button operation of row physical button event mapping, it is achieved thereby that the simulation to physical button, efficiently solve using physics by Key or virtual key make Consumer's Experience not high and technical problem that is wasting display area.

Brief description

In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description are these Some bright embodiments, for those of ordinary skill in the art, without having to pay creative labor, acceptable Other accompanying drawings are obtained according to these accompanying drawings.

Fig. 1 is the flow chart of the input method based on touch-screen according to a first embodiment of the present invention;

Fig. 2 is touch type is the schematic diagram singly dubbing;

Fig. 3 is touch type is double schematic diagram dubbing;

Fig. 4 is to dub the schematic diagram of slip for touch type;

The schematic diagram that Fig. 5 is pressing for touch type;

Fig. 6 is the schematic diagram flashing for touch type;

Fig. 7 is 2 points of close schematic diagrames for touch type;

Fig. 8 is the schematic diagram of 2 points of rotations;

Fig. 9 is to obtain the process schematic touching area in first embodiment of the invention;

Figure 10 is the structural representation of the input unit based on touch-screen of first embodiment of the invention;

Figure 11 is the flow chart of the input method based on touch-screen of second embodiment of the invention;

Figure 12 is the structural representation of the input unit based on touch-screen of second embodiment of the invention;

Figure 13 is the hardware structure diagram of the input unit based on touch-screen of third embodiment of the invention;

Figure 14 is applied to the software interface connection diagram of ANDRIOD operating system for the present invention.

Specific embodiment

Purpose, technical scheme and advantage for making the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described it is clear that described embodiment is The a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment being obtained under the premise of not making creative work, broadly falls into the scope of protection of the invention.

Referring firstly to Fig. 1, Fig. 1 is the flow process of the input method based on touch-screen according to a first embodiment of the present invention Figure.As shown in figure 1, the present invention's is comprised the following steps based on the input method of touch-screen:

Step 101:Touch action on induction touch panel is to determine touch type, and obtains touching corresponding to touch action Touch area.

Step 102:To determine corresponding physical button event by touching area with reference to touch type.

Step 103:Triggering physical button event.

Step 104:Response physical button event carries out physical button event mapping to call programmable button to process logic Button operation.

And refer to Fig. 2 to Fig. 8, so that above-mentioned step 101 is made with concrete introduction, wherein:

Fig. 2 is touch type is the schematic diagram singly dubbing, and quickly touches as shown in Fig. 2 singly dubbing and being specifically defined as finger Touch-screen come to start application program or activation one image.In a step 101 however, it is determined that touch type is singly to dub, then obtain Finger quickly touches during touch-screen in a certain preset duration the contact area between finger and touch-screen using as touching area. Wherein, this preset duration can set according to actual needs, and the contact area that specifically may be set between finger and touch-screen is maximum Time period in.

Fig. 3 is touch type is double schematic diagram dubbing, and dubs that to be specifically defined as finger continuously quick as shown in figure 3, double Dub touch-screen twice to be turned on and off application program or document.In a step 101 however, it is determined that touch type dubs for double, Then obtain finger and quickly dub during touch-screen in a certain preset duration the contact area between finger and touch-screen using as touching Touch area.Wherein, this preset duration can set according to actual needs, specifically may be set to the contact surface between finger and touch-screen In the long-pending maximum time period.When noticeable, in double touch type dubbing, two touch areas can be got, therefore, In a preferred embodiment, the mean value that can obtain this two touch areas is as final touch area.

Fig. 4 is to dub the schematic diagram of slip for touch type, dubs slip and is specifically defined as and places a finger on touch-screen And slide with the project on moving display screen or the zoom page, map and picture.In a step 101 however, it is determined that touching class Type be dub slip, then obtain finger put on the touchscreen slide when in a certain preset duration connecing between finger and touch-screen Contacting surface is amassed using as touch area.Wherein, this preset duration specifically may be set in the shorter time period, and this time period compares hand The sliding time referring to is short a lot, to avoid getting the slide area of finger.

The schematic diagram that Fig. 5 is pressing for touch type, pressing is specifically defined as to place finger and maintains one on the touchscreen The section time opens document, starts application program or other functions.In a step 101 however, it is determined that touch type is pressing, then obtain Finger is taken to touch during touch-screen in a certain preset duration the contact area between finger and touch-screen using as touching area.Its In, this preset duration can set according to actual needs, specifically may be set to contact area between finger and touch-screen maximum In time period.

Fig. 6 is the schematic diagram flashing for touch type, flashes and is specifically defined as quickly on the touchscreen in side up and down To mobile finger so that scrolling or slide a series of projects or the page.In a step 101 however, it is determined that touch type is to flash, then Obtain finger put on the touchscreen when the mobile finger in direction up and down in a certain preset duration between finger and touch-screen Contact area using as touch area.Wherein, this preset duration specifically may be set in the shorter time period, this time period Shorter than the sliding time of finger a lot, to avoid getting the slide area of finger.

Fig. 7 is 2 points of close schematic diagrames for touch type, 2 points near be specifically defined as two fingers are placed on tactile Touch screen above and make them close or separately to zoom in or out display project.In a step 101 however, it is determined that touch type is at 2 points Close, then obtain finger and put when moving finger on the touchscreen the contact surface between finger and touch-screen in a certain preset duration Amass using as touch area.Wherein, this preset duration specifically may be set in the shorter time period, and this time period is than finger Sliding time is short a lot, to avoid getting the slide area of finger.

Fig. 8 is the schematic diagram of 2 points of rotations, and 2 points of rotations are specifically defined as places two fingers on the touchscreen with suitable Clock or counterclockwise turn are rotating the object on display screen.In a step 101 however, it is determined that touch type turns for 2 points Dynamic, then obtain finger and put when moving finger on the touchscreen the contact area between finger and touch-screen in a certain preset duration Using as touch area.Wherein, this preset duration specifically may be set in the shorter time period, this time period turning than finger The dynamic time is short a lot, to avoid getting the slide area of finger.

In a step 101, touch type is determined by the touch action on induction touch panel, wherein touch type includes Singly dub, double dub, dub slip, press, flash, 2 points closer or far from, 2 points rotation.

Hereinafter will refer to Fig. 9 and be specifically described to how getting touch area, wherein, for convenience of description, in Fig. 9 The corresponding touch type of touch action be singly to dub.

Fig. 9 is to obtain, in first embodiment of the invention, the process schematic touching area, as shown in figure 9, in step 401 In, the touch location of record touch action, in step 402, obtain the initial data of touch location, in step 403, carry out Go interference to process, in step 404, calculate pressure spot, in step 405, set up touch area 901, in a step 406, meter Calculate the mean value 902 of all coordinates in touch area 901(I.e.(X, y)), and count touch-control points, and counted according to touch-control and every The areal calculation of one touch point touches area.

In a step 102, physical button event includes HOME key-press event, RETURN key-press event and MENU button thing Part, wherein, above-mentioned physical button event, touch area can be set up according to actual needs with touch type and associate.

For example, definable touch type is singly to dub, touch area in 4 × 4 square millimeters to 15 × 15 squares millis When between rice, send HOME key-press event.It is equally possible that defining touch type is to dub slips, touch area 4 × 4 When square millimeter is between 15 × 15 square millimeters, send RETURN key-press event.Or, define touch type and being pressing, touching When area is between 4 × 4 square millimeters to 15 × 15 square millimeters, send MENU key-press event.

In addition, in another embodiment of the invention, above-mentioned touch type, touch the right of area and physical button event Should be related to also dependent on such as table 1 below, table 2 or table 3 and be configured.

Table 1:

Table 2:

Table 3:

It should be noted that the touch type, touch area and the physical button thing that are limited with upper table 1, table 2 and table 2 The corresponding relation of part is embodiments of the invention, and user can voluntarily be arranged, and the present invention is for specific corresponding to relation not Make concrete restriction.

And, after sensing touch action, specifically can be with time delay one scheduled duration(Such as 5ms or set as needed For other numerical value)Obtain the touch area corresponding to touch action again, be in order in specific duration the reason make this setting Touch action is sampled, thus avoiding, when touch action is to slide, slide area being calculated, to avoid at one Multiple touch points are collected in longer time section.

At step 104, specifically, upper level applications need not make change, after receiving physical button event, rings Physical button event should carry out the button operation of physical button event mapping to call programmable button to process logic.Thus realizing Simulation to physical button

Hereinafter refer to Figure 10, Figure 10 is the structural representation of the input unit based on touch-screen of first embodiment of the invention Figure.As shown in Figure 10, being included based on the physical button analogue means of touch-screen of the present invention:Touch action processing module 201, uses Touch action on induction touch panel is to determine touch type, and obtains the touch area corresponding to touch action;Physics is pressed Key events confirm module 202, for determine corresponding physical button event by touching area with reference to touch type;Physical button Event trigger module 203, for triggering physical button event;Key operation module 204, for responding physical button event to adjust Process the button operation that logic carries out physical button event mapping with programmable button..

Therefore, the present invention determines corresponding physical button thing by the touch type combination touch area of user input Part, achieves physical button event by touch-screen.Due to need not take display space, physical button or virtual key are set, Therefore save limited screen area, simplify physical space, thus improve Consumer's Experience.

Hereinafter refer to Figure 11, Figure 11 is the flow chart of the input method based on touch-screen of second embodiment of the invention. As shown in figure 11, being comprised the following steps based on the input method of touch-screen of the present invention:

Step 301:There is provided Man Machine Interface to obtain the area threshold scope of user setup.

Step 302:Touch action on induction touch panel is to determine touch type, and obtains touching corresponding to touch action Touch area.

Step 303:Within the scope of judging whether touch area is located at area threshold, if so, execution step 304, if it is not, hold Row step 307.

Step 304:To determine corresponding physical button event by touching area with reference to touch type.

Step 305:Triggering physical button event.

Step 306:Response physical button event carries out physical button event mapping to call programmable button to process logic Button operation.

Step 307:Determine corresponding touch event according to touch type.

In the present embodiment, in step 301 arrange Man Machine Interface, wherein Man Machine Interface include display screen with And touch-screen, display reminding interface on display screen, prompting interface lists options for user setting area threshold range, sets in user After putting area threshold scope, area threshold scope is obtained by touch-screen.

Specifically, above-mentioned area threshold scope specifically may be configured as:Finger-tip operated, the operation of finger tripe and palm behaviour Make, it makes three kinds of situations of touch action corresponding to user with finger tip, finger tripe or palm.Specifically, if user selects Finger-tip operated is set, then area threshold scope may be provided between 4 × 4 square millimeters to 15 × 15 square millimeters, i.e. 4 × 4mm2 ≤ S < 15 × 15mm2(Corresponding to table 3).If user selects setting finger tripe operation, area threshold scope may be provided at 15 × Between 15 square millimeters to 30 × 30 square millimeters, i.e. 15 × 15mm2≤S≤30×30mm2(Corresponding to table 1).If user selects Setting palm operation, then area threshold scope may be provided between 30 × 30 square millimeters to 60 × 60 square millimeters, that is, 30 × 30mm2< S≤60 × 60mm2(Corresponding to table 2).

Determine touch type in step 302 and touch area, just as described in the first embodiment, touch type includes Singly dub, double dub, dub slip, press, flash, 2 points closer or far from, 2 points rotation.Touch the acquisition methods of area Consistent with described in first embodiment, do not repeat in this.

In step 303, within the scope of judging whether touch area is located at area threshold, wherein, if touch area being located at Within the scope of area threshold, then judge now to need to confirm physical button event, therefore execution step 304, area will be touched and combine Touch type is determining corresponding physical button event, and triggers this physical button event in step 305, within step 306 Response physical button event processes, to call programmable button, the button operation that logic carries out physical button event mapping.Thus passing through Touch action carrys out analog physical button.

If touching area not within the scope of area threshold, judging now to confirm physical button event, and executing Step 307, confirms corresponding touch event according to touch type.Wherein, corresponding touch event includes starting or closing answering With program event, it is turned on and off application program or document event, amplification picture event, reduces picture event, scrolling or slip Picture event and rotation picture event.For example, application program or one image of activation can be started according to singly dubbing;Root It is turned on and off application program or document according to double dubbing;According to the project dubbing on slip moving display screen or zoom page Face, map and picture;According to started by press application program or closing application program;According to flash scrolling or slide a series of items Mesh or the page;Project according to 2 points closer or far from scaling or amplification;Project shown by rotating according to rotating Etc..

Therefore, in the present embodiment, obtain the area threshold scope of user's selection by providing Man Machine Interface, and Judge that touch action is corresponding and touch whether area is located at area threshold scope to send physical button event or routine operation thing Part, so that user is using different touch action input modes(Tactile including being made using finger tip, finger tripe and palm Touch action)When can determine that out user it is desirable that sending physical button event or routine operation event, realized by touching area The confirmation of physical button event is so that can confirm physical button event by touch action in actual applications, and passes through Triggering and mutually should physical button event to call programmable button to process the button operation that logic carries out physical button event mapping, Thus achieving the simulation of physical button.

Touch the corresponding corresponding physical button event of area setting by combining touch type, the present invention greatly expands The species of touch type, specifically, by adding the judgement touching area, more can make singly to dub, double dub, dub cunning Move, press, flashing, 2 points caned corresponding event closer or far from touch type such as, 2 points of rotations and doubled.The present invention passes through Above technical scheme, effectively combines touch area by touch type and realizes the thing corresponding to physical button or virtual key The triggering of reason key-press event, efficiently solves using physical button or virtual key so that Consumer's Experience is high and waste display The technical problem that panel amasss.

Hereinafter refer to Figure 12, Figure 12 is that the architecture of the input unit based on touch-screen of second embodiment of the invention is shown It is intended to.As shown in figure 12, the present invention based on the physical button analogue means of touch-screen include touch action processing module 401, Man Machine Interface module 405, judge module 406, physical button event trigger module 403, key operation module 404, physics Key-press event confirms that module 402 and touch event confirm module 407.Wherein:

Touch action processing module 401, for the touch action on induction touch panel to determine touch type, and obtains tactile Touch the touch area corresponding to action;

Man Machine Interface module 405, Man Machine Interface module 405 is used for obtaining the area threshold model of user setup Enclose;

Judge module 406, within the scope of judging whether touch area is located at area threshold, if so, physical button thing Part confirms that module 402 to determine corresponding physical button event by touching area with reference to touch type, if it is not, touch event confirms Module 407 determines corresponding touch event according to touch type;

Physical button event trigger module 403, for triggering physical button event;

Key operation module 404, for respond physical button event with call programmable button process logic carry out physics by The button operation of key events mapping.

Wherein, touch action processing module 401 is further used for:After sensing touch action, the pre- timing of time delay one Length obtains the touch area corresponding to touch action again.

Wherein, touch action processing module 401 is further used for:The touch area that statistics touch action is contacted with touch-screen Touch-control points, and according to touch-control points and each touch point areal calculation touch area.

Below please with further reference to Figure 13, Figure 13 is the hard of the input unit based on touch-screen of third embodiment of the invention Part structure chart.As shown in figure 13, the present invention touch-screen 801, processor are included based on the physical button analogue means of touch-screen 802 and bus 804, processor 802 and touch-screen 805 are of coupled connections with bus 804 respectively, and are carried out by bus 804 Interactive communication, touch-screen 801 is used for the touch action on induction touch panel 801;Processor 802 is used for:True according to touch action Determine touch type, and obtain the touch area corresponding to touch action;To determine touching area with reference to touch type accordingly Physical button event;Triggering physical button event;Response physical button event carries out physics to call programmable button to process logic The button operation of button value mapping.

Alternatively, the present invention can further include to couple with bus 804 based on the physical button analogue means of touch-screen The display screen 805 connecting, above-mentioned processor 802 is further used for:To display screen 805 output display interface to show area threshold Value scope setting interface, controls touch-screen 801 to obtain the area threshold scope of user setup.And, this processor 802 can enter one Walk and be used for:Within the scope of judging whether touch area is located at area threshold, if so, to determine touching area with reference to touch type Corresponding physical button event, if it is not, determine corresponding touch event according to touch type.

In addition, this processor 802 can be further used for:After touch screen induction to touch action, the pre- timing of time delay one Length obtains the touch area corresponding to touch action again.And this program can further include:Statistics touch action and touch-screen The touch-control points of the touch area of contact, and area is touched according to the areal calculation of touch-control points and each touch point.

Hereinafter will refer to Figure 14 and enumerate specific application scenarios, Figure 14 is applied to ANDRIOD operating system for the present invention Software interface connection diagram.As shown in figure 14, the present invention is had in this application scene taking ANDRIOD mobile phone as a example Body illustrate, in ANDRIOD mobile phone, can by change algorithm so that the external interface of ANDRIOD operating system can report tactile The mean value of control area coordinate and touch-control points(With(X, y, num)Represent)To kernel.Wherein, x is touch area coordinate Abscissa mean value, y is the ordinate mean value of touch area coordinate, and num counts for touch-control.

Specifically, can be by changing the driver of screen:Kernel in bottom-up modification ANDRIOD operating system EventHub in layer/Native Framework(X, y)In message, be revised as EventHub(X, y, num), (X, y, num)To Java Framework, this information contains touch-control area to information transmission.

In order to keep the compatibility to original operation for the upper layer application, do not change MotionEvent (x, y) and KeyEvent (x, Y) interface, wherein touch type are determined by MotionEvent (x, y) interface and KeyEvent (x, y) interface, MotionEvent (x, y) interface represents the movement of touch action, and KeyEvent (x, y) interface represents the species of touch action, and It is to increase new message NumEvent(X, y, num)(Coordinate with touch-control points)Pass to operating system.

Operating system responds NumEvent(X, y, num)Message, calculates and touches area, and completes accordingly should according to area With processing.

In addition, also can be counted by touch-control or touch-control area is setting thresholding, the scope of thresholding can be according to commonly touching Control, finger tripe touch-control, palm touch-control are arranging.Every kind of thresholding size provides default value, and user can be according to the big ditty of oneself finger Section.

User may be selected conventional operating threshold and secondary or physical bond operating threshold.Realize daily behaviour with the thresholding of oneself custom Make, the thresholding being of little use is for distinguishing the operation as physical button.

Operating system receives answers NumEvent(X, y, num)After message, according to touch-control area and MotionEvent (x, y) The touch type determining with KeyEvent (x, y), when this touch type meets certain condition, simulates a physical keyboard thing Part is transmitted.

It is assumed that user selects finger tripe to operate as physics key operation, for example:

When user is pressed with finger tripe length, operating system judges that the touch area corresponding to the Num in NumEvent exceedes door Limit, just sends MENU key-press event.

Operating system receives slip event to the left, and operating system judges NumEvent(X, y, num)In Num corresponding to Touch area and exceed thresholding, just send RETURN key-press event.Operating system receives slip event to the right, and operating system judges Touch area corresponding to Num in NumEvent exceedes thresholding, just sends HOME key-press event.Certainly also can be combined with other To realize substituting above-mentioned physical button function.Wherein, the relation touching between area, touch type and physical button event can Table 1 in seeing above, table 2 or table 3 are configured.

Therefore, disclosed technical scheme is passed through, in the case of being not provided with physical button, to provide one kind side Easy means, substitute original function, and the program are not take up the display space of touch-screen, and display space is left for use Family shows more contents.

Based on disclosure above, the physical button analogy method based on touch-screen of the embodiment of the present invention and device pass through Touch type combines and touches area to realize the triggering of the physical button event corresponding to physical button or virtual key, and responding should Physical button event carries out the button operation of physical button event mapping to call programmable button to process logic, it is achieved thereby that right The simulation of physical button, efficiently solves using physical button or virtual key so that Consumer's Experience is high and waste display screen The technical problem of area.

It should be understood that disclosed apparatus and method in several embodiments provided herein, can pass through Other modes are realized.For example, device embodiment embodiment described above is only schematically, for example, described mould Block or the division of unit, only a kind of division of logic function, actual can have other dividing mode when realizing, for example multiple Unit or assembly can in conjunction with or be desirably integrated into another system, or some features can be ignored, or does not execute.Another Point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, device or The INDIRECT COUPLING of unit or communication connection, can be electrical, mechanical or other forms.

The described unit illustrating as separating component can be or may not be physically separate, show as unit The part showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected according to the actual needs to realize the present embodiment embodiment The purpose of scheme.

In addition, each functional unit in each embodiment embodiment of the application can be integrated in a processing unit In or unit is individually physically present it is also possible to two or more units are integrated in a unit.Above-mentioned Integrated unit both can be to be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.

If described integrated unit is realized and as independent production marketing or use using in the form of SFU software functional unit When, can be stored in a computer read/write memory medium.Based on such understanding, the technical scheme of the application is substantially The part in other words prior art being contributed or all or part of this technical scheme can be in the form of software products Embody, this computer software product is stored in a storage medium, including some instructions with so that a computer Equipment(Can be personal computer, server, or network equipment etc.)Or processor(processor)Execution the application each The all or part of step of embodiment embodiment methods described.And aforesaid storage medium includes:USB flash disk, portable hard drive, read-only Memory(ROM, Read-Only Memory), random access memory(RAM, Random Access Memory), magnetic disc or Person's CD etc. is various can be with the medium of store program codes.

The foregoing is only embodiments of the invention, not thereby limit the present invention the scope of the claims, every using this Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (6)

1. a kind of physical button analogy method based on touch-screen is it is characterised in that include:
There is provided Man Machine Interface to obtain the area threshold scope of user setup, described area threshold scope is set to finger tip behaviour Make, the operation of finger tripe or palm operate corresponding area threshold scope;
Sense touch action on described touch-screen to determine touch type, and obtain the touch surface corresponding to described touch action Long-pending, described touch action is finger-tip operated, the operation of finger tripe or palm operate;
Within the scope of judging whether described touch area is located at the corresponding area threshold of described touch action,
If so,
Described touch area to be determined corresponding physical button event with reference to described touch type;
Trigger described physical button event;
Respond described physical button event to call programmable button to process the button that logic carries out described physical button event mapping Operation;
If it is not, then determine corresponding touch event according to described touch type.
2. method according to claim 1 is it is characterised in that the touch action on the described touch-screen of described sensing is to determine Touch type, and the touch area obtaining corresponding to described touch action includes:
After sensing described touch action, time delay one scheduled duration obtains the touch surface corresponding to described touch action again Long-pending.
3. method according to claim 1 and 2 is it is characterised in that touch corresponding to the described touch action of described acquisition Area includes:
Count the touch area that described touch action is contacted with described touch-screen touch-control points, and according to described touch-control points with And described in the areal calculation of each described touch point, touch area.
4. a kind of physical button analogue means based on touch-screen is it is characterised in that include:
Man Machine Interface module, described Man Machine Interface module is used for obtaining the area threshold scope of user setup, described Area threshold scope is set to finger-tip operated, the operation of finger tripe or palm and operates corresponding area threshold scope;
Touch action processing module, for sensing the touch action on described touch-screen to determine touch type, and obtains described Touch area corresponding to touch action, described touch action is finger-tip operated, the operation of finger tripe or palm operate;
Judge module, within the scope of judging whether described touch area is located at the corresponding area threshold of described touch action;
Physical button event confirmation module, during for judging that described touch area is within the scope of described area threshold, by institute State touch area to determine corresponding physical button event with reference to described touch type;
Physical button event trigger module, for triggering described physical button event;
Key operation module, for respond described physical button event with call programmable button process logic carry out described physics by The button operation of key events mapping;
Touch event confirms module, determines corresponding touch event according to described touch type.
5. device according to claim 4 is it is characterised in that touch action processing module is further used for:Sensing After described touch action, time delay one scheduled duration obtains the touch area corresponding to described touch action again.
6. the device according to claim 4 or 5 is it is characterised in that touch action processing module is further used for:
Count the touch area that described touch action is contacted with described touch-screen touch-control points, and according to described touch-control points with And described in the areal calculation of each described touch point, touch area.
CN201380000292.2A 2013-01-22 2013-01-22 A physical key simulating method and apparatus based on a touch screen CN103620542B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/070845 WO2014113923A1 (en) 2013-01-22 2013-01-22 Touchscreen-based physical button simulation method and device

Publications (2)

Publication Number Publication Date
CN103620542A CN103620542A (en) 2014-03-05
CN103620542B true CN103620542B (en) 2017-02-08

Family

ID=50169868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201380000292.2A CN103620542B (en) 2013-01-22 2013-01-22 A physical key simulating method and apparatus based on a touch screen

Country Status (2)

Country Link
CN (1) CN103620542B (en)
WO (1) WO2014113923A1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104238946B (en) * 2014-09-19 2018-09-21 努比亚技术有限公司 A kind of touch control method, device and terminal
CN104267902B (en) * 2014-09-22 2017-03-08 努比亚技术有限公司 A kind of application program interaction control method, device and terminal
CN106406587A (en) * 2015-07-16 2017-02-15 小米科技有限责任公司 Terminal touch control identification method and device
CN105727551A (en) * 2016-01-29 2016-07-06 网易(杭州)网络有限公司 Game attacking method and device for mobile terminal
WO2017133244A1 (en) * 2016-02-04 2017-08-10 中兴通讯股份有限公司 Touch-control method for operation and terminal
CN107203290B (en) * 2016-03-17 2020-05-05 上海和辉光电有限公司 Method for distinguishing touch pressure and mobile terminal thereof
CN105786389A (en) * 2016-03-17 2016-07-20 四川长虹电器股份有限公司 Method for simulating touch pressure to enhance touch experience
CN106339108A (en) * 2016-09-06 2017-01-18 深圳格兰泰克汽车电子有限公司 Intelligent vehicle-mounted navigation method and device based on physical key control
CN107071151A (en) * 2017-03-15 2017-08-18 广东欧珀移动通信有限公司 For the control method and mobile terminal of the physical button corresponding to home keys
CN107341067A (en) * 2017-06-22 2017-11-10 努比亚技术有限公司 A kind of keys deactivation processing method, equipment and computer-readable recording medium
CN108399042B (en) * 2018-01-31 2020-09-01 歌尔科技有限公司 Touch identification method, device and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101930341A (en) * 2010-08-25 2010-12-29 宇龙计算机通信科技(深圳)有限公司 Method for displaying time of mobile terminal system, system and mobile terminal
CN101980153A (en) * 2010-10-22 2011-02-23 中兴通讯股份有限公司 Method and mobile terminal for identifying hardware gestures
CN102117166A (en) * 2009-12-31 2011-07-06 联想(北京)有限公司 Electronic equipment, method for realizing prearranged operation instructions, and handset
WO2012086957A2 (en) * 2010-12-24 2012-06-28 Samsung Electronics Co., Ltd. Method and apparatus for providing touch interface
CN102566818A (en) * 2011-12-17 2012-07-11 鸿富锦精密工业(深圳)有限公司 Electronic device with touch screen and screen unlocking method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117166A (en) * 2009-12-31 2011-07-06 联想(北京)有限公司 Electronic equipment, method for realizing prearranged operation instructions, and handset
CN101930341A (en) * 2010-08-25 2010-12-29 宇龙计算机通信科技(深圳)有限公司 Method for displaying time of mobile terminal system, system and mobile terminal
CN101980153A (en) * 2010-10-22 2011-02-23 中兴通讯股份有限公司 Method and mobile terminal for identifying hardware gestures
WO2012086957A2 (en) * 2010-12-24 2012-06-28 Samsung Electronics Co., Ltd. Method and apparatus for providing touch interface
CN102566818A (en) * 2011-12-17 2012-07-11 鸿富锦精密工业(深圳)有限公司 Electronic device with touch screen and screen unlocking method

Also Published As

Publication number Publication date
WO2014113923A1 (en) 2014-07-31
CN103620542A (en) 2014-03-05

Similar Documents

Publication Publication Date Title
US20200183577A1 (en) Devices, Methods, and Graphical User Interfaces for Messaging
US20190391658A1 (en) Device, Method, and Graphical User Interface for Forgoing Generation of Tactile Output for a Multi-Contact Gesture
US9959025B2 (en) Device, method, and graphical user interface for navigating user interface hierarchies
US20180188920A1 (en) Device, Method, and Graphical User Interface for Providing Feedback for Changing Activation States of a User Interface Object
US9965074B2 (en) Device, method, and graphical user interface for transitioning between touch input to display output relationships
CN106445184B (en) Virtual machine keyboard
US10296136B2 (en) Touch-sensitive button with two levels
US10338798B2 (en) Haptically enabled user interface
CN205665680U (en) Electronic equipment and be arranged in adjusting device of electronic equipment's setting
US10152131B2 (en) Systems and methods for multi-pressure interaction on touch-sensitive surfaces
TWI511027B (en) Method, device and apparatus of splitting screen
CN104756060B (en) Cursor control based on gesture
CN103186345B (en) The section system of selection of a kind of literary composition and device
CN104272240B (en) System and method for changing dummy keyboard on a user interface
EP2684115B1 (en) Method and apparatus for providing quick access to media functions from a locked screen
CN104156171B (en) Method and device for preventing touch key misoperations in landscape screen state of mobile terminal
EP2812796B1 (en) Apparatus and method for providing for remote user interaction
US9250790B2 (en) Information processing device, method of processing information, and computer program storage device
CN103513767B (en) Haptic feedback control system
EP2666079B1 (en) Method and apparatus for providing a multi-stage device transition mechanism initiated based on a touch gesture
US8542216B2 (en) Multi-touch device having dynamic haptic effects
JP5490508B2 (en) Device having touch sensor, tactile sensation presentation method, and tactile sensation presentation program
CN106406966B (en) Application program preloading method and mobile terminal
TWI585672B (en) Electronic display device and icon control method
US20140344765A1 (en) Touch Sensitive UI Pinch and Flick Techniques for Managing Active Applications

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
C14 Grant of patent or utility model
TR01 Transfer of patent right

Effective date of registration: 20171107

Address after: Metro Songshan Lake high tech Industrial Development Zone, Guangdong Province, Dongguan City Road 523808 No. 2 South Factory (1) project B2 -5 production workshop

Patentee after: HUAWEI terminal (Dongguan) Co., Ltd.

Address before: 518129 Longgang District, Guangdong, Bantian HUAWEI base B District, building 2, building No.

Patentee before: Huawei Device Co., Ltd.

TR01 Transfer of patent right
CP01 Change in the name or title of a patent holder

Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee after: Huawei Device Co., Ltd.

Address before: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee before: HUAWEI terminal (Dongguan) Co., Ltd.

CP01 Change in the name or title of a patent holder