CN108762554A - touch event response method and device - Google Patents

touch event response method and device Download PDF

Info

Publication number
CN108762554A
CN108762554A CN201810482557.1A CN201810482557A CN108762554A CN 108762554 A CN108762554 A CN 108762554A CN 201810482557 A CN201810482557 A CN 201810482557A CN 108762554 A CN108762554 A CN 108762554A
Authority
CN
China
Prior art keywords
touch
touch event
touch panel
displacement distance
event
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.)
Granted
Application number
CN201810482557.1A
Other languages
Chinese (zh)
Other versions
CN108762554B (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.)
Beijing Shell Technology Co Ltd
Original Assignee
Beijing Shell Technology 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 Beijing Shell Technology Co Ltd filed Critical Beijing Shell Technology Co Ltd
Priority to CN201810482557.1A priority Critical patent/CN108762554B/en
Publication of CN108762554A publication Critical patent/CN108762554A/en
Application granted granted Critical
Publication of CN108762554B publication Critical patent/CN108762554B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0412Digitisers structurally integrated in a display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Position Input By Displaying (AREA)

Abstract

The disclosure is directed to touch event response method and devices.This method includes:Obtain location dependent information when touch control object executes the first touch event for touch panel;Obtain the target mobile accuracy after being adjusted according to precision adjust instruction;According to target mobile accuracy, determines the corresponding practical displacement distance of location dependent information, obtain the second touch event;The second touch event is responded, determines current touch-control focal position.Pass through the technical solution, when user executes the first touch event, the practical displacement distance that mobile accuracy after correspondingly moving based on pre-adjusting is determined, with the current touch-control focal position of determination, so usable family freely, neatly adjusts the corresponding mobile accuracy of touch-control focus as desired, to be suitable for the more scenes different to required precision.

Description

Touch event response method and device
Technical field
This disclosure relates to field of terminal technology more particularly to touch event response method and device.
Background technology
In the related art, more and more users like using the equipment with touch panel, as with touch screen Mobile phone, to facilitate it to carry out various touch events on touch panel, such as:It can slidable adjustment be in gaming in touch surface Visual angle, action etc..
But the corresponding mobile accuracy of touch-control focus on touch panel can not adjust in the related technology, and can only use manufacture When, the mobile accuracy of factory default determines focal position, so as to cause the different scene of required precision can not be suitable for, in this way, The corresponding mobile accuracy of focus is not only limited, user experience is also affected.
Invention content
The embodiment of the present disclosure provides touch event response method and device.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of touch event response method is provided, including:
Obtain location dependent information when touch control object executes the first touch event for the touch panel;
Obtain the target mobile accuracy after being adjusted according to precision adjust instruction, wherein determine touching on the touch panel Control the target unit displacement distance that focal position need to be moved relative to the touch panel;
According to the target mobile accuracy, determines the corresponding practical displacement distance of the location dependent information, obtain second Touch event;
Second touch event is responded, determines current touch-control focal position.
In one embodiment, the method further includes:
Obtain the corresponding original mobile accuracy of the touch-control focus;
It is described according to the target mobile accuracy, determine the corresponding practical displacement distance of the location dependent information, obtain To the second touch event, including:
According to the original mobile accuracy, the corresponding original unit's displacement distance of the touch-control focus is determined;According to described Original unit's displacement distance and the target unit displacement distance, determine the practical displacement distance, obtain second touch-control Event.
In one embodiment, the position phase when obtaining touch control object and executing the first touch event for the touch panel Before closing information, the method further includes:
By the interception pop-up covered on the touch panel, first touch event is intercepted.
In one embodiment, the interception pop-up is the adjustable pop-up of size and position;
And/or
It is described to intercept the pop-up that pop-up is default transparency;
In one embodiment, before responding second touch event, the method further includes:
Second touch event is sent to the operating system of the equipment, is touched described second by the operating system Control event is sent to the current application for operating in foreground;
Or
Second touch event is sent in the corresponding driving file of the touch panel, by the operation of the equipment System reads second touch event from the driving file, and is sent to the current application for operating in foreground.
In one embodiment, the location dependent information includes:The touch control object is in current detection cycle phase for institute State the current location of touch panel;And/or
The location dependent information includes:The touch control object movement relative to the touch panel within a preset period of time Distance.
In one embodiment, described according to the target when the location dependent information includes the current location Mobile accuracy determines the corresponding practical displacement distance of the location dependent information, obtains the second touch event, including:
Determine the touch control object in a upper detection cycle adjacent with the current detection period relative to the touch surface The historical position of plate;
Determine the alternate position spike between the current location and the historical position;
According to the target mobile accuracy and the alternate position spike, the practical displacement distance is determined.
According to the second aspect of the embodiment of the present disclosure, a kind of touch event responding device is provided, including:
First acquisition module, for obtaining position phase of the touch control object for the touch panel the first touch event of execution when Close information;
Second acquisition module, for obtaining the target mobile accuracy after being adjusted according to precision adjust instruction, wherein the mesh Mark mobile accuracy be used to indicate the touch control object relative to the touch panel Moving Unit apart from when, on the touch panel Target unit displacement distance of the touch-control focus relative to the touch panel;
Determining module, for according to the target mobile accuracy, determining that the location dependent information is corresponding practical mobile Distance obtains the second touch event;
Respond module moves the touch-control focus for responding second touch event on the touch panel The practical displacement distance.
In one embodiment, described device further includes:
Third acquisition module, the original mobile accuracy for obtaining the touch-control focus;
The determining module includes:
First determination sub-module, for according to the original mobile accuracy, determining the corresponding original list of the touch-control focus Position displacement distance;According to original unit's displacement distance and the target unit displacement distance, determine it is described it is practical it is mobile away from From obtaining second touch event.
In one embodiment, described device further includes:
Blocking module is related for the position when obtaining touch control object and executing the first touch event for the touch panel Before information, by the interception pop-up covered on the touch panel, first touch event is intercepted.
In one embodiment, the interception pop-up is the adjustable pop-up of size and position;
And/or
It is described to intercept the pop-up that pop-up is default transparency;
In one embodiment, described device further includes:
First sending module, for before responding second touch event, second touch event to be sent to Second touch event is sent to by the operating system and operates in currently answering for foreground by the operating system of the equipment With;
Or
Second sending module, for second touch event to be sent to the corresponding driving file of the touch panel In, second touch event is read from the driving file by the operating system of the equipment, and before being sent to and operating in The current application of platform.
In one embodiment, the location dependent information includes:The touch control object is in current detection cycle phase for institute State the current location of touch panel;And/or
The location dependent information includes:The touch control object movement relative to the touch panel within a preset period of time Distance.
In one embodiment, the determining module includes:
Second determination sub-module, for when the location dependent information includes the current location, determining the touch-control Historical position of the object in a upper detection cycle adjacent with the current detection period relative to the touch panel;
Third determination sub-module, for determining the alternate position spike between the current location and the historical position;
4th determination sub-module, for according to the target mobile accuracy and the alternate position spike, determining described practical mobile Distance.
According to the third aspect of the embodiment of the present disclosure, a kind of touch event responding device is provided, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Obtain location dependent information when touch control object executes the first touch event for the touch panel;
Obtain the target mobile accuracy after being adjusted according to precision adjust instruction, wherein the target mobile accuracy is for referring to Show the touch control object relative to the touch panel Moving Unit apart from when, determine the touch-control focal position on the touch panel The target unit displacement distance that need to be moved relative to the touch panel;
According to the target mobile accuracy, determines the corresponding practical displacement distance of the location dependent information, obtain second Touch event;
Second touch event is responded, determines current touch-control focal position.
According to the fourth aspect of the embodiment of the present disclosure, a kind of non-transitorycomputer readable storage medium is provided, thereon It is stored with computer instruction, which is characterized in that any one of first aspect embodiment is realized when described instruction is executed by processor The step of the method.
The technical scheme provided by this disclosed embodiment can include the following benefits:
The technical scheme provided by this disclosed embodiment, when getting above-mentioned location dependent information, by obtaining basis Target mobile accuracy after the adjustment of precision adjust instruction, can determine that location dependent information is corresponding according to the target mobile accuracy Practical displacement distance, to obtain the second touch event, to which when user executes the first touch event, correspondingly movement is based on pre- The practical displacement distance that mobile accuracy after first adjusting is determined, with the current touch-control focal position of determination, so usable family is pressed The corresponding mobile accuracy of touch-control focus freely, is neatly adjusted according to demand, to be suitable for the more fields different to required precision Scape, for example, after the corresponding mobile accuracy of touch-control focus is improved, the mobile accuracy after being adjusted based on user is more accurately determined Touch-control focal position, this is also beneficial to further increase user to relatively high applications of focus points mobile accuracy requirement such as game Usage experience.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of touch event response method shown according to an exemplary embodiment.
Fig. 2 is the flow chart of another touch event response method shown according to an exemplary embodiment.
Fig. 3 is a kind of block diagram of touch event responding device shown according to an exemplary embodiment.
Fig. 4 is the block diagram of another touch event responding device shown according to an exemplary embodiment.
Fig. 5 is the block diagram according to another touch event responding device shown in an exemplary embodiment.
Fig. 6 is according to the block diagram suitable for touch event responding device shown in an exemplary embodiment.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
In order to solve the above-mentioned technical problem, the embodiment of the present disclosure provides a kind of touch event response method, and this method can For in touch event responder, system or device, and the corresponding executive agent of this method can have touch panel The equipment such as mobile phone.As shown in Figure 1, the method comprising the steps of S101 to step S104:
In step S101, location dependent information when touch control object executes the first touch event for touch panel is obtained;
In step s 102, the target mobile accuracy after being adjusted according to precision adjust instruction is obtained, wherein target movement essence Degree be used to indicate touch control object relative to touch panel Moving Unit apart from when, need to relative to the touch panel move target unit Displacement distance determines the touch-control focus on the touch panel;
The precision adjust instruction can be originated from the touch control operation of user, such as:User can show precision adjustment choosing On the interface of item, is increased by different operation and either reduce the corresponding mobile accuracy of touch-control focus or directly input desired Mobile accuracy, regardless of using which kind of mode, system can receive precision adjust instruction, and precision is adjusted to and the precision The corresponding target mobile accuracy of adjust instruction.It, can be according to the touch-control focus mobile accuracy received before executing step S102 Adjust instruction freely adjusts its mobile accuracy, in this way, user can adjust touch-control focus according to demands of individuals personalization at any time Mobile accuracy.
It is, of course, also possible to which a precision adjustment option is arranged could adjust touch-control focus in this way, when the switch is opened Otherwise corresponding precision can not then adjust.
Touch control object can be finger, stylus etc..
In step s 103, it according to target mobile accuracy, determines the corresponding practical displacement distance of location dependent information, obtains Second touch event;
In step S104, the second touch event is responded, determines current touch-control focal position.
When getting above-mentioned location dependent information, essence is moved by obtaining the target after being adjusted according to precision adjust instruction Degree, can determine the corresponding practical displacement distance of location dependent information, to obtain the second touch-control thing according to the target mobile accuracy Part, to the reality that when user executes the first touch event, the mobile accuracy after correspondingly moving based on pre-adjusting is determined Border displacement distance, with the current touch-control focal position of determination, so usable family is free as desired, neatly adjusts touch-control focus Corresponding mobile accuracy, to be suitable for the more scenes different to required precision, for example, by the corresponding mobile essence of touch-control focus After degree improves, the mobile accuracy after being adjusted based on user more accurately determines touch-control focal position, this is also beneficial to further Improve the usage experience that user requires the focus points mobile accuracies such as game relatively high application.
In one embodiment, method further includes:
Obtain the corresponding original mobile accuracy of touch-control focus;
Before the original mobile accuracy, that is, touch accuracy is not adjusted, the corresponding mobile essence of the touch-control focus of factory default Degree.
Above-mentioned step S103 shown in FIG. 1 determines the corresponding reality of location dependent information that is, according to target mobile accuracy Displacement distance obtains the second touch event, can be performed as:
According to original mobile accuracy, the corresponding original unit's displacement distance of touch-control focus is determined;
According to original unit's displacement distance and target unit displacement distance, determines practical displacement distance, obtain the second touch-control Event.
By obtaining the corresponding original mobile accuracy of the touch-control focus, it may be determined that the corresponding original unit of the touch-control focus moves Dynamic distance (i.e. touch control object Moving Unit apart from when, according to the original mobile accuracy, determine should be moved when the touch-control focus away from From), in turn, according to according to original unit's displacement distance and target unit displacement distance, accurately determine the practical displacement distance, The second touch event is obtained, the position of touch-control focus is more accurately determined with the mobile accuracy after being adjusted based on user, this also has Conducive to further increase user to game etc. the relatively high application of focus points mobile accuracy requirement usage experience.
And according to original unit's displacement distance and target unit displacement distance, it determines practical displacement distance, obtains second and touch The step of control event, can execute in the following way:
Mode one:Available targets unit displacement distance directly replaces original unit's displacement distance, with only according to target list Position displacement distance determines practical displacement distance, obtains the second touch event.
Or
Mode two:Original unit's displacement distance and target unit displacement distance are weighted summation, obtain a synthesis Unit displacement distance obtain second touch event then according to the unit displacement distance of the synthesis.
Such as:When location dependent information is relative movement distance of the touch control object relative to touch panel, if according to mode One executes, then relative movement distance is multiplied with target unit displacement distance, you can the practical displacement distance of touch-control focus is obtained, The second touch event is obtained.And if executed according to mode two, can by relative movement distance and comprehensive unit movement away from From multiplication, you can obtain the practical displacement distance of touch-control focus to get to the second touch event.
In one embodiment, the position correlation letter when obtaining touch control object and executing the first touch event for touch panel Before breath, method further includes:
By the interception pop-up covered on touch panel, the first touch event is intercepted.
Before obtaining location dependent information, can also be intercepted automatically by the interception pop-up covered on touch panel One touch event is avoided according to original mobile accuracy directly in response to first touch event, in order to get the first touch-control thing After the location dependent information of part, the practical displacement distance of touch-control focus can be calculated based on the target mobile accuracy after adjustment, with The mobile accuracy of touch-control focus is adjusted, this is also beneficial to the usage experience for further increasing user to applications such as game.
In one embodiment, it is the adjustable pop-up of size and position to intercept pop-up;
And/or
Intercept the pop-up that pop-up is default transparency;
The interception pop-up is special pop-up, and user can freely be sized and position, is not covered when its size is smaller The mobile accuracy there are two types of touch-control focus is equivalent to when entire touch panel, on touch panel.
Certainly, intercepting the transparency of pop-up can also freely adjust, and value range is [0,1], in order to avoid influencing to use Family can be set to fully transparent.
In one embodiment, before responding the second touch event, method further includes:
Second touch event is sent to the operating system of equipment, the second touch event is sent to operation by operating system Current application on foreground;
Or
Second touch event is sent in the corresponding driving file of touch panel, it is literary from driving by the operating system of equipment The second touch event is read in part, and is sent to the current application for operating in foreground, which can be Android operation system System.
Before responding second touch event, the second touch event can be sent directly to the operating system of equipment, then Second touch event is sent to the current application for operating in foreground by operating system, alternatively, the second touch event is sent to In the corresponding driving file of touch panel, then by equipment operating system from driving file in read the second touch event, concurrently It send to the current application for operating in foreground, so that foreground application directly in response to second touch event, avoids the second touch-control thing Part is intercepted.
In one embodiment, location dependent information includes:Touch control object is in current detection cycle phase for touch panel Current location;And/or
Location dependent information includes:Touch control object is within a preset period of time relative to the displacement distance of touch panel.
Location dependent information can be absolute position i.e. current location or relative position i.e. touch control object in preset time period The interior displacement distance relative to touch panel.The preset time period can be the duration of N number of detection cycle.
As shown in Fig. 2, in one embodiment, when location dependent information includes current location, above-mentioned step shown in FIG. 1 Rapid S103 determines the corresponding practical displacement distance of location dependent information, obtains the second touch-control thing that is, according to target mobile accuracy Part may include step S201 to step S203:
In step s 201, determine touch control object in a upper detection cycle adjacent with the current detection period relative to touch surface The historical position of plate;
In step S202, the alternate position spike between current location and historical position is determined;
In step S203, according to target mobile accuracy and alternate position spike, practical displacement distance is determined.
When location dependent information be absolute position, that is, above-mentioned current location when, can also determine touch control object with current detection Historical position of the period adjacent upper detection cycle relative to touch panel, and then determine between current location and historical position Alternate position spike, and according to target mobile accuracy and alternate position spike, you can accurately determine practical displacement distance (the practical displacement distance =target mobile accuracy * alternate position spikes), the position of touch-control focus is more accurately determined with the mobile accuracy after being adjusted based on user, This is also beneficial to the usage experience for further increasing user to relatively high applications of focus points mobile accuracy requirement such as game.
It wherein,, should obtaining after calculating practical displacement distance when location dependent information includes the current location When position (the i.e. current touch-control focal position) of touch-control focus, it is also necessary in conjunction with the history focus of a nearest above-mentioned upper detection cycle Position, i.e., on the basis of the history focal position of a upper detection cycle, in addition the position determined after the practical displacement distance The as current touch-control focal position.
And when location dependent information includes movement of the touch control object within a preset period of time relative to the touch panel When distance (i.e. relative position), practical displacement distance=target mobile accuracy * relative position, in the position of the acquisition touch-control focus When setting (i.e. current touch-control focal position), it is also desirable in conjunction with the history focal position of the initial time of the preset time period, that is, exist On the basis of the history focal position of the initial time of the preset time period, in addition the position determined after the practical displacement distance The as current touch-control focal position.
Below in conjunction with Fig. 3, the solution of the present invention is described further:
The present invention touch event responding device 300 may include:Parameter adjustment unit 301, monitoring interception unit 302, Data processing unit 303 and event injection unit 304. are wherein:
Parameter adjustment unit 301 is provided with the switch of the mobile accuracy of adjustment touch-control focus, for adjusting touch-control for user The mobile accuracy of focus.
Interception unit 302 is monitored, for (i.e. touch event to be relative to touch surface by the data in the touch event intercepted The absolute position of plate or relative position) it is sent to data processing unit 303.
Data processing unit 303, the mobile essence after adjustment for will be preserved in above-mentioned data and parameter adjustment unit 301 Degree calculate regenerate new touch event (mobile accuracy after wherein, which is used to indicate based on adjustment, Move a certain distance determining touch-control focus), and then new touch event is sent to 304 carry out event note of event injection unit Enter.
Event injection unit 304 specifically, can be by new touch event for injecting new touch event Be sent to driving file, the new touch event read from the driving file by operating system, and be sent to foreground application into Row response;Alternatively, new touch event is sent to operating system, by operating system by the new touch event, and it is sent to Foreground application is responded.
Monitoring interception unit 302 is covered using a special pop-up (i.e. the adjustable pop-up of size, position and transparency) A region on touch panel is covered, the touch event in this region then can be intercepted.Event injection unit 304 makes It is injected with Android system api, this element needs the root authority of acquisition system that can just complete operation (i.e. touch event Responding device 300 is a system-level application).And due to the limitation of Android system, in order not to make the event of injection upper again Pop-up interception is stated, needs to modify to the touch case distribution modules of Android system, to ignore pop-up (i.e. so that event is noted Enter unit 304 and execute above-mentioned forwarding step).
As shown in figure 4, according to the second aspect of the embodiment of the present disclosure, a kind of touch event responding device is provided, including:
First acquisition module 401 is configured as obtaining position when touch control object executes the first touch event for touch panel Set relevant information;
Second acquisition module 402 is configured as obtaining the target mobile accuracy after adjusting according to precision adjust instruction, In, target mobile accuracy be configured as instruction touch control object relative to touch panel Moving Unit apart from when, determine the touch surface The target unit displacement distance that touch-control focal position on plate need to be moved relative to the touch panel;
Determining module 403, is configured as according to target mobile accuracy, determine location dependent information it is corresponding it is practical it is mobile away from From obtaining the second touch event;
Respond module 404 is configured to respond to the second touch event, determines current touch-control focal position.
In one embodiment, above-mentioned touch event responding device further includes:
Third acquisition module is configured as obtaining the corresponding original mobile accuracy of touch-control focus;
Determining module 403 may include:
First determination sub-module is configured as, according to original mobile accuracy, determining that the corresponding original unit of touch-control focus moves Dynamic distance;According to original unit's displacement distance and target unit displacement distance, determines practical displacement distance, obtain the second touch-control thing Part.
In one embodiment, above-mentioned touch event responding device further includes:
Blocking module, the position being configured as when obtaining touch control object and executing the first touch event for touch panel are related Before information, by the interception pop-up covered on touch panel, the first touch event is intercepted.
In one embodiment, it is the adjustable pop-up of size and position to intercept pop-up;
And/or
Intercept the pop-up that pop-up is default transparency;
In one embodiment, device further includes:
First sending module is configured as before responding the second touch event, the second touch event is sent to equipment Operating system, the second touch event is sent to the current application for operating in foreground by operating system;
Or
Second sending module is configured as the second touch event being sent in the corresponding driving file of touch panel, by The operating system of equipment reads the second touch event from driving file, and is sent to the current application for operating in foreground.
In one embodiment, location dependent information includes:Touch control object is in current detection cycle phase for touch panel Current location;And/or
Location dependent information includes:Touch control object is within a preset period of time relative to the displacement distance of touch panel.
As shown in figure 5, in one embodiment, determining module 403 may include:
Second determination sub-module 4031 is configured as, when location dependent information includes current location, determining that touch control object exists Historical position of the upper detection cycle adjacent with the current detection period relative to touch panel;
Third determination sub-module 4032, the alternate position spike being configured to determine that between current location and historical position;
4th determination sub-module 4033 is configured as, according to target mobile accuracy and alternate position spike, determining practical displacement distance.
Finally, it should be noted that:Those skilled in the art can be according to actual demand, by multiple implementations disclosed by the invention Example is freely combined, and details are not described herein again.
According to the third aspect of the embodiment of the present disclosure, a kind of touch event responding device is provided, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, processor is configured as:
Obtain location dependent information when touch control object executes the first touch event for the touch panel;
Obtain the target mobile accuracy after being adjusted according to precision adjust instruction, wherein the target mobile accuracy is for referring to Show the touch control object relative to the touch panel Moving Unit apart from when, determine the touch-control focal position on the touch panel The target unit displacement distance that need to be moved relative to the touch panel;
According to the target mobile accuracy, determines the corresponding practical displacement distance of the location dependent information, obtain second Touch event;
Respond second touch event, by the touch-control focus on the touch panel it is mobile it is described it is practical it is mobile away from From.
Above-mentioned processor is also configured to:
The method further includes:
Obtain the corresponding original mobile accuracy of the touch-control focus;
It is described according to the target mobile accuracy, determine the corresponding practical displacement distance of the location dependent information, obtain To the second touch event, including:
According to the original mobile accuracy, the corresponding original unit's displacement distance of the touch-control focus is determined;According to described Original unit's displacement distance and the target unit displacement distance, determine the practical displacement distance, obtain second touch-control Event.
Above-mentioned processor is also configured to:
It is described before location dependent information when obtaining touch control object and executing the first touch event for the touch panel Method further includes:
By the interception pop-up covered on the touch panel, first touch event is intercepted.
Above-mentioned processor is also configured to:
The interception pop-up is the adjustable pop-up of size and position;
And/or
It is described to intercept the pop-up that pop-up is default transparency;
Above-mentioned processor is also configured to:
Before responding second touch event, the method further includes:
Second touch event is sent to the operating system of the equipment, is touched described second by the operating system Control event is sent to the current application for operating in foreground;
Or
Second touch event is sent in the corresponding driving file of the touch panel, by the operation of the equipment System reads second touch event from the driving file, and is sent to the current application for operating in foreground.
Above-mentioned processor is also configured to:
The location dependent information includes:The touch control object is in current detection cycle phase for the current of the touch panel Position;And/or
The location dependent information includes:The touch control object movement relative to the touch panel within a preset period of time Distance.
Above-mentioned processor is also configured to:
It is described according to the target mobile accuracy when the location dependent information includes the current location, determine institute The corresponding practical displacement distance of location dependent information is stated, the second touch event is obtained, including:
Determine the touch control object in a upper detection cycle adjacent with the current detection period relative to the touch surface The historical position of plate;
Determine the alternate position spike between the current location and the historical position;
According to the target mobile accuracy and the alternate position spike, the practical displacement distance is determined.
Fig. 6 is a kind of block diagram of touch event responding device 600 shown according to an exemplary embodiment, which is applicable in In terminal device.For example, device 600 can be mobile phone, and computer, digital broadcast terminal, messaging devices, game control Platform processed, tablet device, Medical Devices, body-building equipment, a number assistant etc..
With reference to Fig. 6, device 600 may include with next or at least two components:Processing component 602, memory 604, Power supply module 606, multimedia component 608, audio component 610, the interface 612 of input/output (I/O), sensor module 614, And communication component 616.
The integrated operation of 602 usual control device 600 of processing component, such as with, call, data communication, camera behaviour Make and record operates associated operation.Processing component 602 may include that one or at least two processors 620 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 602 may include one or at least two moulds Block, convenient for the interaction between processing component 602 and other assemblies.For example, processing component 602 may include multi-media module, with Facilitate the interaction between multimedia component 608 and processing component 602.
Memory 604 is configured as storing various types of data to support the operation in equipment 600.These data are shown Example includes instruction for any storage object or method that are operated on device 600, contacts user data, telephone book data, Message, picture, video etc..Memory 604 can by any kind of volatibility or non-volatile memory device or they Combination is realized, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory Reservoir, disk or CD.
Power supply module 606 provides electric power for the various assemblies of device 600.Power supply module 606 may include power management system System, one or at least two power supplys and other generated with for device 600, management and the associated component of distribution electric power.
Multimedia component 608 is included in the screen of one output interface of offer between described device 600 and user.One In a little embodiments, screen may include liquid crystal device (LCD) and touch panel (TP).If screen includes touch panel, screen can To be implemented as touch screen, to receive input signal from the user.Touch panel includes one or at least two touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 608 includes a front camera and/or rear camera.When equipment 600 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 610 is configured as output and/or input audio signal.For example, audio component 610 includes a Mike Wind (MIC), when device 600 is in operation mode, when such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The received audio signal can be further stored in memory 604 or via communication set Part 616 is sent.In some embodiments, audio component 610 further includes a loud speaker, is used for exports audio signal.
I/O interfaces 612 provide interface between processing component 602 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor module 614 includes one or at least two sensors, the state for providing various aspects for device 600 Assessment.For example, sensor module 614 can detect the state that opens/closes of equipment 600, the relative positioning of component, such as institute The device and keypad that component is device 600 are stated, sensor module 614 can be with 600 1 components of detection device 600 or device The temperature of position change, the existence or non-existence that user contacts with device 600,600 orientation of device or acceleration/deceleration and device 600 Degree variation.Sensor module 614 may include proximity sensor, be configured to detect without any physical contact attached The presence of nearly object.Sensor module 614 can also include optical sensor, such as CMOS or ccd image sensor, for being imaged It is used in.In some embodiments, the sensor module 614 can also include acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 616 is configured to facilitate the communication of wired or wireless way between device 600 and other equipment.Device 600 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or combination thereof.In an exemplary implementation In example, communication component 616 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 616 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 600 can be by one or at least two application specific integrated circuits (ASIC), number Word signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic building bricks are realized, for executing the above method.
In the exemplary embodiment, it includes the non-transitorycomputer readable storage medium instructed, example to additionally provide a kind of Such as include the memory 604 of instruction, above-metioned instruction can be executed by the processor 620 of device 600 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by above-mentioned apparatus 600 When processor executes so that above-mentioned apparatus 600 is able to carry out a kind of touch event response method, including:
Obtain location dependent information when touch control object executes the first touch event for the touch panel;
Obtain the target mobile accuracy after being adjusted according to precision adjust instruction, wherein the target mobile accuracy is for referring to Show the touch control object relative to the touch panel Moving Unit apart from when, determine the touch-control focal position on the touch panel The target unit displacement distance that need to be moved relative to the touch panel;
According to the target mobile accuracy, determines the corresponding practical displacement distance of the location dependent information, obtain second Touch event;
Second touch event is responded, determines current touch-control focal position.
In one embodiment, the method further includes:
Obtain the corresponding original mobile accuracy of the touch-control focus;
It is described according to the target mobile accuracy, determine the corresponding practical displacement distance of the location dependent information, obtain To the second touch event, including:
According to the original mobile accuracy, the corresponding original unit's displacement distance of the touch-control focus is determined;According to described Original unit's displacement distance and the target unit displacement distance, determine the practical displacement distance, obtain second touch-control Event.
In one embodiment, the position phase when obtaining touch control object and executing the first touch event for the touch panel Before closing information, the method further includes:
By the interception pop-up covered on the touch panel, first touch event is intercepted.
In one embodiment, the interception pop-up is the adjustable pop-up of size and position;
And/or
It is described to intercept the pop-up that pop-up is default transparency;
In one embodiment, before responding second touch event, the method further includes:
Second touch event is sent to the operating system of the equipment, is touched described second by the operating system Control event is sent to the current application for operating in foreground;
Or
Second touch event is sent in the corresponding driving file of the touch panel, by the operation of the equipment System reads second touch event from the driving file, and is sent to the current application for operating in foreground.
In one embodiment, the location dependent information includes:The touch control object is in current detection cycle phase for institute State the current location of touch panel;And/or
The location dependent information includes:The touch control object movement relative to the touch panel within a preset period of time Distance.
In one embodiment, described according to the target when the location dependent information includes the current location Mobile accuracy determines the corresponding practical displacement distance of the location dependent information, obtains the second touch event, including:
Determine the touch control object in a upper detection cycle adjacent with the current detection period relative to the touch surface The historical position of plate;
Determine the alternate position spike between the current location and the historical position;
According to the target mobile accuracy and the alternate position spike, the practical displacement distance is determined.
Those skilled in the art will readily occur to the disclosure after considering specification and putting into practice technical solution disclosed herein Other embodiments.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications are used Way or adaptive change follow the general principles of this disclosure and include undocumented in the art known of the disclosure Common sense or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are under The claim in face is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (14)

1. a kind of touch event response method, for the equipment with touch panel, which is characterized in that including:
Obtain location dependent information when touch control object executes the first touch event for the touch panel;
Obtain the target mobile accuracy after being adjusted according to precision adjust instruction, wherein the target mobile accuracy is used to indicate institute State touch control object relative to the touch panel Moving Unit apart from when, determine that the touch-control focal position on the touch panel needs phase For the target unit displacement distance of touch panel movement;
According to the target mobile accuracy, determines the corresponding practical displacement distance of the location dependent information, obtain the second touch-control Event;
Second touch event is responded, determines current touch-control focal position.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
Obtain the corresponding original mobile accuracy of the touch-control focus;
It is described that the corresponding practical displacement distance of the location dependent information is determined according to the target mobile accuracy, obtain Two touch events, including:
According to the original mobile accuracy, the corresponding original unit's displacement distance of the touch-control focus is determined;According to described original Unit displacement distance and the target unit displacement distance, determine the practical displacement distance, obtain second touch event.
3. according to the method described in claim 1, it is characterized in that, executing first for the touch panel obtaining touch control object Before location dependent information when touch event, the method further includes:
By the interception pop-up covered on the touch panel, first touch event is intercepted.
4. according to the method described in claim 3, it is characterized in that,
The interception pop-up is the adjustable pop-up of size and position;
And/or
It is described to intercept the pop-up that pop-up is default transparency.
5. according to the method described in claim 1, it is characterized in that, before responding second touch event, the method Further include:
Second touch event is sent to the operating system of the equipment, by the operating system by the second touch-control thing Part is sent to the current application for operating in foreground;
Or
Second touch event is sent in the corresponding driving file of the touch panel, by the operating system of the equipment Second touch event is read from the driving file, and is sent to the current application for operating in foreground.
6. the method according to any one of claims 1 to 5, it is characterized in that,
The location dependent information includes:The touch control object is in current detection cycle phase for the present bit of the touch panel It sets;And/or
The location dependent information includes:The touch control object within a preset period of time relative to the movement of the touch panel away from From.
7. according to the method described in claim 6, it is characterized in that,
It is described according to the target mobile accuracy when the location dependent information includes the current location, determine institute's rheme The corresponding practical displacement distance of relevant information is set, the second touch event is obtained, including:
Determine the touch control object in a upper detection cycle adjacent with the current detection period relative to the touch panel Historical position;
Determine the alternate position spike between the current location and the historical position;
According to the target mobile accuracy and the alternate position spike, the practical displacement distance is determined.
8. a kind of touch event responding device, for the equipment with touch panel, which is characterized in that including:
First acquisition module, for obtaining position correlation letter of the touch control object for the touch panel the first touch event of execution when Breath;
Second acquisition module, for obtaining the target mobile accuracy after being adjusted according to precision adjust instruction, wherein the target is moved Dynamic precision be used to indicate the touch control object relative to the touch panel Moving Unit apart from when, determine on the touch panel The target unit displacement distance that touch-control focal position need to be moved relative to the touch panel;
Determining module, for according to the target mobile accuracy, determining the corresponding practical displacement distance of the location dependent information, Obtain the second touch event;
Respond module determines current touch-control focal position for responding second touch event.
9. device according to claim 8, which is characterized in that described device further includes:
Third acquisition module, for obtaining the corresponding original mobile accuracy of the touch-control focus;
The determining module includes:
First determination sub-module, for according to the original mobile accuracy, determining that the corresponding original unit of the touch-control focus moves Dynamic distance;According to original unit's displacement distance and the target unit displacement distance, determines the practical displacement distance, obtain To second touch event.
10. device according to claim 8, which is characterized in that described device further includes:
Blocking module, for the location dependent information when obtaining touch control object and executing the first touch event for the touch panel Before, by the interception pop-up covered on the touch panel, first touch event is intercepted.
11. device according to claim 10, which is characterized in that
The interception pop-up is the adjustable pop-up of size and position;
And/or
It is described to intercept the pop-up that pop-up is default transparency.
12. device according to claim 8, which is characterized in that described device further includes:
First sending module, for before responding second touch event, second touch event being sent to described Second touch event is sent to the current application for operating in foreground by the operating system by the operating system of equipment;
Or
Second sending module, for second touch event to be sent in the corresponding driving file of the touch panel, by The operating system of the equipment reads second touch event from the driving file, and is sent to and operates in working as foreground Preceding application.
13. the device according to any one of claim 8 to 12, which is characterized in that
The location dependent information includes:The touch control object is in current detection cycle phase for the present bit of the touch panel It sets;And/or
The location dependent information includes:The touch control object within a preset period of time relative to the movement of the touch panel away from From.
14. device according to claim 13, which is characterized in that
The determining module includes:
Second determination sub-module, for when the location dependent information includes the current location, determining that the touch control object exists Historical position of the upper detection cycle adjacent with the current detection period relative to the touch panel;
Third determination sub-module, for determining the alternate position spike between the current location and the historical position;
4th determination sub-module, for according to the target mobile accuracy and the alternate position spike, determining the practical displacement distance.
CN201810482557.1A 2018-05-18 2018-05-18 Touch event response method and device Active CN108762554B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810482557.1A CN108762554B (en) 2018-05-18 2018-05-18 Touch event response method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810482557.1A CN108762554B (en) 2018-05-18 2018-05-18 Touch event response method and device

Publications (2)

Publication Number Publication Date
CN108762554A true CN108762554A (en) 2018-11-06
CN108762554B CN108762554B (en) 2021-09-17

Family

ID=64008447

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810482557.1A Active CN108762554B (en) 2018-05-18 2018-05-18 Touch event response method and device

Country Status (1)

Country Link
CN (1) CN108762554B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647281A (en) * 2019-09-20 2020-01-03 北京小米移动软件有限公司 False touch prevention method and device and storage medium
WO2022193988A1 (en) * 2021-03-18 2022-09-22 Oppo广东移动通信有限公司 Touch event reporting method and apparatus, terminal, and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214060A (en) * 2010-04-12 2011-10-12 宏碁股份有限公司 Touch electronic device and window control method thereof
US20130021367A1 (en) * 2011-07-19 2013-01-24 Samsung Electronics Co., Ltd. Methods of controlling window display on an electronic device using combinations of event generators
CN102945341A (en) * 2012-10-23 2013-02-27 北京奇虎科技有限公司 Method and device for intercepting popup
CN103164158A (en) * 2013-01-10 2013-06-19 深圳市欧若马可科技有限公司 Method, system and device of creating and teaching painting on touch screen
CN103353804A (en) * 2013-07-03 2013-10-16 深圳雷柏科技股份有限公司 Cursor control method and device based on touch tablet
KR20140048484A (en) * 2012-10-15 2014-04-24 엘지전자 주식회사 Mobile terminal
US20160299633A1 (en) * 2013-07-03 2016-10-13 Pixart Imaging Inc. Touch positioning method for touch panel
CN106293238A (en) * 2016-08-15 2017-01-04 北京小米移动软件有限公司 Touch accuracy control method, device and electronic equipment
CN107797841A (en) * 2017-11-21 2018-03-13 广东欧珀移动通信有限公司 Window control method, apparatus, terminal device and storage medium
CN107908348A (en) * 2017-11-27 2018-04-13 维沃移动通信有限公司 The method and mobile terminal of display

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214060A (en) * 2010-04-12 2011-10-12 宏碁股份有限公司 Touch electronic device and window control method thereof
US20130021367A1 (en) * 2011-07-19 2013-01-24 Samsung Electronics Co., Ltd. Methods of controlling window display on an electronic device using combinations of event generators
KR20140048484A (en) * 2012-10-15 2014-04-24 엘지전자 주식회사 Mobile terminal
CN102945341A (en) * 2012-10-23 2013-02-27 北京奇虎科技有限公司 Method and device for intercepting popup
CN103164158A (en) * 2013-01-10 2013-06-19 深圳市欧若马可科技有限公司 Method, system and device of creating and teaching painting on touch screen
CN103353804A (en) * 2013-07-03 2013-10-16 深圳雷柏科技股份有限公司 Cursor control method and device based on touch tablet
US20160299633A1 (en) * 2013-07-03 2016-10-13 Pixart Imaging Inc. Touch positioning method for touch panel
CN106293238A (en) * 2016-08-15 2017-01-04 北京小米移动软件有限公司 Touch accuracy control method, device and electronic equipment
CN107797841A (en) * 2017-11-21 2018-03-13 广东欧珀移动通信有限公司 Window control method, apparatus, terminal device and storage medium
CN107908348A (en) * 2017-11-27 2018-04-13 维沃移动通信有限公司 The method and mobile terminal of display

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
BO LI ET AL.: "A Touch Prediction and Window Sensing Strategy for Low-Power and Low-Cost Capacitive Multitouch Screen Systems", 《JOURNAL OF DISPLAY TECHNOLOGY》 *
郭建伟: "活学活用UAC安全机制", 《电脑知识与技术(经验技巧)》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647281A (en) * 2019-09-20 2020-01-03 北京小米移动软件有限公司 False touch prevention method and device and storage medium
WO2022193988A1 (en) * 2021-03-18 2022-09-22 Oppo广东移动通信有限公司 Touch event reporting method and apparatus, terminal, and storage medium

Also Published As

Publication number Publication date
CN108762554B (en) 2021-09-17

Similar Documents

Publication Publication Date Title
CN105306824B (en) Acquisition parameters adjusting method and device
CN105511686B (en) Call processing method, device and terminal electronic device
CN105657173B (en) Volume adjusting method, device and mobile terminal
CN106547663B (en) Key management method and device
RU2677360C1 (en) Method and device for recognition of gestures
CN107102772B (en) Touch control method and device
EP3136206B1 (en) Method and apparatus for setting threshold
CN105430715B (en) Control the method and device of WIFI scanning
CN105224171B (en) Icon display method, device and terminal
CN107402711B (en) Volume adjusting method and device and computer readable storage medium
CN109117874A (en) Operation behavior prediction technique and device
EP3232301A1 (en) Mobile terminal and virtual key processing method
CN111683177B (en) Function parameter adjusting method, function parameter adjusting device and storage medium
CN107656694B (en) Display control method and device of user interface
CN107368280A (en) Method for controlling volume, device and the interactive voice equipment of interactive voice
CN112905035A (en) Touch screen control method and device and computer storage medium
CN108762554A (en) touch event response method and device
CN110059548A (en) Object detection method and device
CN106775240B (en) Triggering method, device and the terminal of application program
CN112346571A (en) Equipment control method and device and storage medium
CN113253969B (en) Volume adjustment method and device and computer readable storage medium
CN108877742A (en) Luminance regulating method and device
CN105516466B (en) Call the method and device at interface
CN108446074A (en) Position of touch reminding method and device
EP3961363A1 (en) Number input method, apparatus, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant