WO2018010349A1 - Method of processing touch event, device, terminal, and computer storage medium - Google Patents
Method of processing touch event, device, terminal, and computer storage medium Download PDFInfo
- Publication number
- WO2018010349A1 WO2018010349A1 PCT/CN2016/105722 CN2016105722W WO2018010349A1 WO 2018010349 A1 WO2018010349 A1 WO 2018010349A1 CN 2016105722 W CN2016105722 W CN 2016105722W WO 2018010349 A1 WO2018010349 A1 WO 2018010349A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- terminal
- screen
- attachment
- module
- displacement
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
Definitions
- the present invention relates to the field of wireless communications, and in particular to a method and device for processing touch events, a terminal, and a computer storage medium.
- the stain when the mobile phone is playing video on the horizontal screen, if the stain is on the left and right sides of the screen, when the stain is removed with a finger, it is likely to trigger the volume increase or decrease, or trigger the brightness increase or decrease; if the stain is in the middle of the screen, use the finger to remove the stain, It is very likely to trigger playback fast forward, or trigger playback fast rewind, and then, for example, when the user reads the article on the mobile phone and watches the news, when the user wipes the stain with the finger, it also causes some false touch, which brings inconvenience to the user.
- the solution for performing screen decontamination is to first lock the screen and perform decontamination in a state where the screen is locked, thereby achieving the purpose of misoperation.
- the above method in the related art performs a screen lock operation before the user operates, and all areas after the lock must be unlocked and then used, the user experience is poor, and there is no function of intelligently judging the user action.
- the embodiment of the invention provides a method and a device for processing a touch event, a terminal, and a computer storage medium, so as to at least solve the problem that the user experience of the screen for removing the attached object in the related art is poor.
- a method for processing a touch event including: The positional area of the attachment on the terminal screen and/or the displacement tendency of the attachment on the terminal screen is determined; it is prohibited to report the touch event in the positional area and/or the displacement trend direction or the reverse direction.
- determining a positional area of the attachment on the screen of the terminal and/or a displacement tendency of the attachment on the screen of the terminal includes: determining a location area according to a vertical pressure value perpendicular to the screen of the terminal on the screen of the terminal; And/or determining the displacement tendency based on the change in the vertical pressure value at different times at different locations on the terminal screen or the friction generated by the movement of the attachment on the terminal screen.
- determining the positional area of the attached object on the screen of the terminal and/or the displacement tendency of the attached object on the terminal screen comprises: determining the positional area according to the amount of light detected by the light sensor; and/or according to the light sensor at different times The change in the amount of light detected determines the displacement trend.
- determining a positional area of the attachment on the screen of the terminal and/or a displacement tendency of the attachment on the screen of the terminal includes: determining the location area without receiving an instruction for indicating that the terminal is locked by the screen And / or displacement trends.
- the method before determining a positional area of the attached object on the terminal screen and/or a displacement tendency of the attached object on the terminal screen, the method further includes: determining whether an attachment exists on the screen of the terminal.
- determining whether there is an attachment on the screen of the terminal by determining at least one of the following: determining whether there is a pressure sensitive value smaller than the first predetermined threshold on the screen of the terminal; if yes, determining that there is an attachment on the screen of the terminal; Existent, determining that there is no attachment on the screen of the terminal; determining whether the amount of light on the screen of the terminal detected by the light sensor is less than a second predetermined threshold; and determining that the proximity sensor detects the specified signal if the value is less than the second predetermined threshold; In the case where the proximity sensor does not detect the specified signal, it is determined that there is an attachment on the screen of the terminal.
- the touch event includes at least one of: not processing the touch area in the direction area and/or the displacement trend direction or the reverse direction within the predetermined time period; reducing the response of the position area and/or the displacement trend direction or the reverse direction to the touch event Sensitivity.
- the method further includes: displaying the prompt for cleaning the attached object and/or the location area and/or Tip information for displacement trends.
- the method further includes: determining whether there is still an attachment on the screen of the terminal; In the case where there is no attachment on the screen, the reporting operation of the touch event in the positional direction and/or the displacement trend direction or the reverse direction is restored.
- a touch event processing apparatus including: a first determining module configured to determine a location area of an attachment on a screen of the terminal and/or a displacement of the attachment on the screen of the terminal.
- the processing module is configured to prohibit the reporting of the touch area in the location area and/or the displacement trend direction or the reverse direction.
- the first determining module is further configured to determine the location area according to the vertical pressure value of the attachment object acting on the terminal screen perpendicular to the terminal screen; and/or according to the different moments of the attachment at different positions on the terminal screen.
- the change in pressure value or the friction generated by the movement of the attachment on the terminal screen determines the displacement tendency.
- the first determining module is further configured to determine the location area according to the quantity of the light detected by the light sensor; and/or determine the displacement trend according to the change of the quantity of the light detected by the light sensor at different times.
- the first determining module is further configured to determine a location area and/or a displacement trend if an instruction for indicating that the terminal is locked by the screen is not received.
- the second determining module is configured to determine whether an attachment exists on the screen of the terminal.
- the second determining module determines whether there is an attachment on the screen of the terminal by determining at least one of the following: determining whether there is a pressure sensitive value less than the first predetermined threshold on the screen of the terminal; if yes, determining that the terminal has a If there is no object, determine that there is no attachment on the screen of the terminal; determine whether the amount of light on the screen of the terminal detected by the light sensor is less than a second predetermined threshold; if it is less than the second predetermined threshold, determine whether the proximity sensor detects A signal is specified; wherein, in the case where the proximity sensor does not detect the designated signal, it is determined that there is an attachment on the screen of the terminal.
- the processing module is further configured to not process the touch event in the position region and/or the displacement trend direction or the reverse direction for a predetermined period of time; and/or decrease the position region and/or the displacement trend direction or the reverse direction Sensitivity of touch events.
- the apparatus further includes: a display module, configured to display prompt information for prompting cleaning of attachments and/or location areas and/or displacement trends.
- the first determining module is further configured to continue to determine whether an attachment is still present on the screen of the terminal; and the processing module is further configured to: restore the location area and, if the determination result is that there is no attachment on the screen of the terminal; / or the reporting operation of the touch event in the direction of the trend or in the opposite direction.
- a touch event processing apparatus including: a pressure sensing module configured to acquire a vertical pressure value of an attached object acting on a screen of the terminal perpendicular to the screen of the terminal, and determining a vertical pressure value.
- the pressure change module is configured to detect a change of a vertical pressure value at different moments at different positions on the screen of the terminal;
- the area demarcation module is configured to determine the attachment at the terminal according to the vertical pressure value acquired by the pressure sensing module a position area on the screen;
- the displacement prompting module is configured to determine a displacement tendency of the attached object on the screen of the terminal according to the change of the vertical pressure value detected by the pressure change module;
- the processing module is configured to prohibit the position area determined by the reporting area delimiting module and / or the displacement prompt module determines the displacement trend direction or the touch event in the opposite direction.
- the device further includes: a terminal status determining module, configured to determine whether the terminal receives an instruction for indicating that the terminal is locked.
- a touch event processing apparatus including: a pressure sensing module configured to acquire a vertical pressure value of an attached object acting on a screen of the terminal perpendicular to the screen of the terminal, and determining a vertical pressure value.
- a friction monitoring module configured to detect a friction generated when the attachment moves on the terminal screen; and an area delimiting module configured to determine the attachment on the terminal screen according to the vertical pressure value acquired by the pressure sensing module a positional area; a displacement prompting module configured to determine a displacement tendency of the attachment on the terminal screen according to the frictional force monitored by the frictional force monitoring module; the processing module configured to prohibit the location area and/or displacement determined by the reporting area delineation module
- the touch module determines the displacement trend direction or the touch event in the reverse direction.
- the device further includes: a terminal status determining module, configured to determine whether the terminal receives an instruction for indicating that the terminal is locked.
- a touch event processing apparatus includes: a light sensing module configured to acquire a quantity of light on a screen of the terminal, and determine whether the number of light is less than a second predetermined threshold; a module configured to monitor a change in the amount of light when the attached object moves on the terminal screen; the area demarcating module is configured to determine a position area of the attached object on the terminal screen according to the amount of light monitored by the light sensing module; and the displacement prompting module is configured to The displacement trend of the attached object on the terminal screen is determined according to the change of the quantity of light monitored by the light quantity monitoring module; the processing module is configured to prohibit the position area determined by the reporting area delineation module and/or the displacement trend direction or the reverse direction determined by the displacement prompting module Touch event.
- the device further includes: a terminal status determining module, configured to determine whether the terminal receives an instruction for indicating that the terminal is locked.
- a terminal including: the processing device for the touch event.
- a computer storage medium is also provided.
- the calculation The machine storage medium is configured to store program code for performing the following steps: determining a positional area of the attachment on the terminal screen and/or a displacement tendency of the attachment on the terminal screen; prohibiting reporting the positional area and/or the displacement trend direction or the opposite side Up touch event.
- the positional area and/or the displacement tendency of the attachment on the screen of the terminal is determined, it is prohibited to report the touched event in the positional area and/or the displacement trend direction or the reverse direction, thereby causing the attachment to be removed. At the same time, it does not affect the user's application use. Therefore, the problem of poor user experience of the screen removing attachments in the related art can be solved, and the user experience is improved.
- FIG. 1 is a block diagram showing the hardware structure of a mobile terminal for processing a touch event according to an embodiment of the present invention
- FIG. 2 is a flowchart of a method for processing a touch event according to an embodiment of the present invention
- FIG. 3 is a schematic flow chart of a method according to a preferred embodiment of the present invention.
- FIG. 4 is a schematic flow chart of a method according to a preferred embodiment of the present invention.
- FIG. 5 is a structural block diagram 1 of a processing device for a touch event according to an embodiment of the invention.
- FIG. 6 is a structural block diagram 2 of a processing device for a touch event according to an embodiment of the invention.
- FIG. 7 is a structural block diagram 3 of a processing device for a touch event according to an embodiment of the present invention.
- FIG. 8 is a structural block diagram 4 of a processing apparatus for a touch event according to an embodiment of the present invention.
- FIG. 9 is a first schematic diagram of a processing device for a touch event according to a preferred embodiment of the present invention.
- FIG. 10 is a second schematic diagram of a processing device for a touch event according to a preferred embodiment of the present invention.
- FIG. 1 is a hardware structural block diagram of a mobile terminal for processing a touch event according to an embodiment of the present invention.
- the mobile terminal 10 may include one or more (only one shown) processor 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA).
- FIG. 1 is merely illustrative and does not limit the structure of the above electronic device.
- the mobile terminal 10 may also include more or fewer components than those shown in FIG. 1, or have a different configuration than that shown in FIG.
- the memory 104 can be used to store software programs and modules of the application software, such as program instructions/modules corresponding to the processing method of the touch event in the embodiment of the present invention, and the processor 102 runs the software program and the module stored in the memory 104, thereby The above methods are implemented by performing various functional applications and data processing.
- Memory 104 may include high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
- memory 104 may further include memory remotely located relative to processor 102, which may be connected to mobile terminal 10 over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
- Transmission device 106 is for receiving or transmitting data via a network.
- the above-described network specific example may include a wireless network provided by a communication provider of the mobile terminal 10.
- the transmission device 106 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet.
- the transmission device 106 can be a Radio Frequency (RF) module for communicating with the Internet wirelessly.
- NIC Network Interface Controller
- RF Radio Frequency
- FIG. 2 is a flowchart of a method for processing a touch event according to an embodiment of the present invention. As shown in FIG. 2, the process includes The following steps:
- Step S202 determining a positional tendency of the attachment object on the terminal screen and/or a displacement tendency of the attachment on the terminal screen;
- step S204 it is prohibited to report the touch event in the location area and/or the displacement trend direction or the reverse direction.
- the positional area and/or the displacement tendency of the attached object on the terminal screen is determined, it is prohibited to report the touch event in the positional area and/or the displacement trend direction or the reverse direction, thereby causing the attachment to be removed. At the same time, it does not affect the user's application use. Therefore, the problem of poor user experience of the screen removing attachments in the related art can be solved, and the user experience is improved.
- the manner of determining the location area and/or the displacement trend may be various, for example, may be determined by the action of the attachment on the screen of the terminal, or may be determined by the light received on the screen terminal, but not Limited to this.
- the above step S202 may be performed by: determining a location area according to a vertical pressure value perpendicular to the screen of the terminal on the terminal screen; and/or different positions according to the attachment on the screen of the terminal. The change in the vertical pressure value at different moments or the friction generated by the movement of the attachment on the terminal screen determines the displacement tendency.
- Determining the displacement trend according to the change of the vertical pressure value at different times at different positions on the terminal screen of the attachment may be expressed as: at the first moment, the attachment generates a vertical pressure value at the first position on the terminal screen, and the second position There is no vertical pressure value. At the second moment, the vertical pressure value is generated at the second position at the terminal screen, and the vertical pressure value is decreased or not at the first position, indicating the direction of the movement of the attachment. In order to move from the first position to the second position, the displacement tendency of the attachment on the screen of the terminal is determined, but is not limited thereto.
- Determining the displacement tendency according to the friction generated by the movement of the attachment on the screen of the terminal may be expressed as determining the displacement tendency according to the direction of the frictional force, for example, the direction of the detected frictional force is the direction in which the attachment moves on the terminal screen, That is, the displacement tendency can be determined, but is not limited thereto.
- the step S202 may be further performed by: determining a location area according to the number of rays detected by the light sensor; and/or determining a displacement trend according to a change in the number of rays detected by the light sensor at different times.
- the attached object may block part of the light from being irradiated onto the screen of the terminal, the light detected on the screen of the terminal is reduced, and it is determined that the area on the screen of the terminal is reduced in light.
- the location area can be determined according to the quantity of the light detected by the light sensor. Specifically, it can be determined according to whether the detected quantity of light is less than a threshold. When the number of light is less than the threshold, the area is determined to be the above position. Area, but not limited to this.
- Determining the displacement trend according to the change of the amount of light detected by the light sensor at different times may be expressed as: at the first moment, the number of rays detected at a certain position on the terminal screen is a normal number, and at the second moment, the position is at the second moment If the detected amount of light suddenly decreases or decreases slowly, it can be determined that the attached object moves to the position at the second moment, and the displacement trend may be from the position where the amount of light detected at the first moment is reduced to The second moment detects the direction of the position where the amount of light is reduced.
- the above step S202 may also be performed to determine a location area and/or a displacement trend without receiving an instruction for indicating that the terminal is locked. which is Before determining the location area and/or the location trend, it is also possible to determine whether the terminal is locked. If the terminal is locked, it is not meaningful to prohibit the reporting of the location area and/or the displacement trend direction or the reverse direction. Further, it is determined that the location area and/or the displacement trend is determined in the case where it is determined that the terminal is not locked.
- the method may further include: detecting whether the terminal is currently in the use state, and in the case of being in the use state, performing step S202.
- the use state may be a read state. Watch video status, etc., but not limited to this.
- the method may further include: determining whether an attachment exists on the screen of the terminal.
- whether there is an attachment on the screen of the terminal by determining at least one of the following: determining whether there is a pressure sensitive value less than a first predetermined threshold on the screen of the terminal; if present, determining that there is an attachment on the screen of the terminal; Existent, determining that there is no attachment on the screen of the terminal; determining whether the amount of light on the screen of the terminal detected by the light sensor is less than a second predetermined threshold; and determining that the proximity sensor detects the specified signal if the value is less than the second predetermined threshold; In the case where the proximity sensor does not detect the specified signal, it is determined that there is an attachment on the screen of the terminal.
- the foregoing specified signal may refer to a signal that the designated object is close to the terminal, and the specified signal is detected according to the proximity sensor to distinguish whether the cause of the decrease in the amount of light is the attachment or the finger operation or the terminal closes the human body to block the light. The accuracy of determining the presence of attachments on the terminal screen is increased.
- the foregoing step S204 may be expressed as at least one of the following, but is not limited thereto: the touch region in the position region and/or the displacement trend direction or the reverse direction is not processed in the predetermined time period; Sensitivity to response to touch events in the location area and/or displacement trend direction or in the opposite direction.
- the touch event that does not process the location area and/or the displacement trend direction or the reverse direction within a predetermined time period may be expressed as at least one of the following: the first type, the location area and/or the displacement trend direction or The touch event in the opposite direction until it is judged that the attached object has been cleared; secondly, the touch event in the positional direction and/or the displacement trend direction or the reverse direction is delayed for a period of time.
- the terminal automatically determines whether to report the touch area in the location area and/or the displacement trend direction or the reverse direction, that is, when the terminal detects the presence of the attached object, the terminal detects that the attached object is detected.
- the touch area in the position area and/or the displacement trend direction or the reverse direction is not processed.
- the second time may be set in a fixed time after detecting the presence of the attached object, and the position is not processed. Touch events in the direction of the region and/or displacement trend or in the opposite direction.
- the method may further include: displaying prompt information for prompting cleaning of attachments and/or position regions and/or displacement trends.
- the display is used for prompting cleaning.
- the method may further include: determining whether the attachment is still present on the screen of the terminal; and if the determination result is that the attachment is not present on the screen of the terminal, The reporting operation of the touch event in the above location area and/or the above-mentioned displacement trend direction or the reverse direction is resumed.
- the positional area of the attached object and the displacement tendency may be continuously determined, and the positional area and/or the displacement trend direction or the reverse direction may be continuously prohibited.
- the reporting operation of the touch event may be noted that the positional region and the displacement tendency of the attached object may be determined as a positional region and a displacement tendency of the remaining attached matter after the deposited object is cleaned; or the entire attached matter may be used. Not limited to this.
- the execution body of the foregoing steps may be a terminal or the like, but is not limited thereto.
- the deposit may be a stain or a water drop or the like, but is not limited thereto.
- the position and displacement trend of the screen stain on the screen are determined, and the touch event report of the position area is disabled, so that the user can wipe the current operation without affecting the current operation.
- Screen stains when the wipe is completed, restore the touch event report in the location area, and restore the normal touch of the screen.
- the position and displacement trend of the screen stain on the screen are determined, and the touch event reporting of the position area is disabled, so that the user wipes the screen without affecting the current operation.
- the stain when the wipe is completed, restores the touch event report of the location area, and restores the normal touch of the screen.
- the first embodiment based on the change of the screen pressure, the parallel pressure component is obtained, thereby determining the displacement tendency of the screen stain on the screen. It is to be noted that the above-described parallel pressure component corresponds to a change in the vertical pressure value in the above embodiment.
- the method includes:
- Step 1 Identify and determine whether the mobile phone is unlocked: if it is not unlocked, no processing is performed; if it is unlocked, the stain identifying operation is performed.
- the pressure sensing threshold value is small to distinguish from finger pressing
- Step 2 If it is recognized that there is a stain on the screen of the mobile phone, further identify and determine whether the mobile phone is currently in use, for example, reading status, or watching video status.
- the stain determination operation is further performed.
- the pressure sensitive area is determined according to the pressure sensing value in the vertical screen direction, thereby determining the stained area; and the displacement trend of the stain is determined according to the force component value of the parallel direction of the screen.
- Step 3 The semi-transparent floating window of the mobile phone screen prompts the user to clean the stain, wherein the floating window can be adjacent to any corner of the stained area, and the floating window can indicate the displacement trend of the stain to facilitate the user to wipe. Or, a preferred solution does not prompt the user to wipe.
- the touch event reporting rule of the area is redefined, and the touch chip temporarily does not process the area and the direction of the displacement trend and the reported event in the opposite direction.
- the touch chip delays processing the reporting event of the area, reducing the reaction sensitivity of the area
- Step 4 After performing the cleaning operation, perform the above “stain recognition operation” again:
- the “stain recognition operation” and “stain treatment operation” are executed cyclically.
- the second embodiment determining the displacement tendency of the stain according to the value of the friction component in the parallel direction of the screen, the method comprising:
- Step 1 Identify and judge whether the mobile phone is unlocked: if it is not unlocked, it will not be processed; When unlocked, the stain recognition operation is performed.
- the pressure sensing threshold value is small to distinguish from finger pressing
- Step 2 If it is recognized that there is a stain on the screen of the mobile phone, further identify and determine whether the mobile phone is currently in use, for example, reading status, or watching video status.
- the stain determination operation is further performed.
- the pressure sensitive area is determined according to the pressure sensing value of the vertical screen direction, thereby determining the stained area; and the displacement trend of the stain is determined according to the frictional force component value of the parallel direction of the screen.
- Step 3 The semi-transparent floating window of the mobile phone screen prompts the user to clean the stain, wherein the floating window can be adjacent to any corner of the stained area, and the floating window can indicate the displacement trend of the stain to facilitate the user to wipe. Or, a preferred solution does not prompt the user to wipe.
- the stain processing operation is performed before the user wipes.
- the touch event reporting rule of the area is redefined, and the touch chip temporarily does not process the reporting event in the range of the direction and the direction of the displacement trend.
- the touch chip delays processing the reporting event of the area, reducing the reaction spirit of the area Sensitivity
- Step 4 After performing the cleaning operation, perform the above “stain recognition operation” again:
- the “stain recognition operation” and “stain treatment operation” are executed cyclically.
- the preferred embodiment determines the displacement trend of the stain based on the light sensor, including:
- Step 1 Identify and determine whether the mobile phone is unlocked: if it is not unlocked, no processing is performed; if it is unlocked, the stain identifying operation is performed.
- Step 2 If it is recognized that there is a stain on the screen of the mobile phone, further identify and determine whether the mobile phone is currently in use, for example, reading status, or watching video status.
- the stain determination operation is further performed.
- the stain area is determined; according to the change of the number of screen lights, the displacement trend of the stain is determined.
- Step 3 The semi-transparent floating window of the mobile phone screen prompts the user to clean the stain, wherein the floating window can be adjacent to any corner of the stained area, and the floating window can indicate the displacement trend of the stain to facilitate the user to wipe. Or, a preferred solution does not prompt the user to wipe.
- the stain processing operation is performed before the user wipes.
- the touch event reporting rule of the area is redefined, and the touch chip temporarily does not process the reporting event in the direction of the area and the direction of the displacement trend and the reverse direction;
- the touch chip delays processing of the reported event in the area, reducing the sensitivity of the response of the area.
- Step 4 After performing the cleaning operation, perform the above “stain recognition operation” again:
- FIG. 3 is a schematic flowchart of the method according to the preferred embodiment of the present invention, as shown in FIG. The method includes:
- Step 1 Identify and determine whether the mobile phone is unlocked: if it is not unlocked, no processing is performed; if it is unlocked, proceed to step 2;
- Step 2 Identify whether there is a stain on the screen, and if so, continue to step 3;
- Step 3 Identify and determine whether the mobile phone is currently in use, for example, reading status, or watching video status, if not in use, no processing; otherwise, proceed to step 4;
- Step 4 Determine the stain area and displacement trend according to the pressure sense
- Step 5 Change the event handling mechanism of the stain area to prevent misoperation
- Step 6 After the cleaning is completed, continue to judge whether there is any stain on the screen. If it exists, continue to step 3; otherwise, it ends.
- the preferred embodiment provides a method for screen stain removal based on pressure sensing technology, wherein the force component of the parallel screen is obtained from the value of the friction component in the parallel direction of the screen, and FIG. 4 is based on the present invention.
- a schematic flowchart of the method provided by the embodiment which specifically includes:
- Step 1 Identify and determine whether the mobile phone is unlocked: if it is not unlocked, no processing is performed; if it is unlocked, proceed to step 2;
- Step 2 Identify if there is any stain on the screen, if it exists, continue with step 3; otherwise, end;
- Step 3 Identify and determine whether the mobile phone is currently in use, for example, reading status, or watching video status, if not in use, no processing; otherwise, proceed to step 4;
- Step 4 Determine the stain area according to the pressure sense, and determine the displacement trend according to the friction component value on the screen;
- Step 5 Change the event handling mechanism of the stain area to prevent misoperation
- Step 6 After the cleaning is completed, continue to judge whether there is any stain on the screen. If it exists, continue to step 3; otherwise, it ends.
- a preferred embodiment of the present invention provides a method for processing a touch event, wherein the amount of light acquired by the screen is calculated by the light quantity monitoring module, and specifically includes:
- Step 1 Identify and determine whether the mobile phone is unlocked: if it is not unlocked, no processing is performed; if it is unlocked, proceed to step 2;
- Step 2 Identify if there is any stain on the screen, if it exists, continue with step 3; otherwise, end;
- Step 3 Identify and determine whether the mobile phone is currently in use, for example, reading status, or watching video status, if not in use, no processing; otherwise, proceed to step 4;
- Step 4 Determine the stain area according to the quantity of light, and determine the displacement trend according to the value of the light change on the screen;
- Step 5 Change the event handling mechanism of the stain area to prevent misoperation
- Step 6 After the cleaning is completed, continue to judge whether there is any stain on the screen. If it exists, continue to step 3; otherwise, it ends.
- the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be through hardware, but in many cases the former is a better implementation.
- the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
- the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
- a processing device for a touch event is provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and details are not described herein.
- the term "module” may implement a combination of software and/or hardware of a predetermined function.
- the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
- FIG. 5 is a structural block diagram 1 of a processing device for a touch event according to an embodiment of the present invention. As shown in FIG. 5, the device includes:
- the first determining module 52 is configured to determine a positional area of the attached object on the terminal screen and/or a displacement tendency of the attached object on the terminal screen;
- the processing module 54 is connected to the first determining module 52, and is configured to prohibit the reporting of the touch event in the location area and/or the displacement trend direction or the reverse direction.
- the processing module 54 prohibits reporting the positional area and/or the displacement trend direction or the opposite direction. The event is controlled, so that the user's application is not affected while the attachment is removed. Therefore, the problem of poor user experience of the screen removing the attachment in the related art can be solved, and the user experience is improved.
- the first determining module 52 may be further configured to attach The object acts on the terminal screen to determine the location area perpendicular to the vertical pressure value of the terminal screen; and/or the change in the vertical pressure value at different times at different positions on the terminal screen or the friction generated by the attachment moving on the terminal screen Force determines the displacement trend.
- the first determining module 52 determines that the displacement trend is determined according to the change of the vertical pressure value at different times on the terminal screen at different positions on the terminal screen: at the first moment, the attachment is first on the terminal screen. a vertical pressure value is generated at the position, and no vertical pressure value is present at the second position. At the second time, a vertical pressure value is generated at the second position at the terminal screen, and the vertical pressure value is decreased at the first position or If not, the first determining module 52 determines that the direction of movement of the attached object is moved from the first position to the second position, that is, the tendency of the attachment to be displaced on the screen of the terminal is determined, but is not limited thereto.
- the first determining module 52 determines that the displacement trend is determined according to the friction generated by the movement of the attached object on the screen of the terminal.
- the displacement trend may be expressed according to the direction of the frictional force.
- the direction of the detected frictional force is the opposite direction of the attached object at the terminal.
- the direction of movement on the screen, that is, the displacement tendency can be determined, but is not limited thereto.
- the first determining module 52 may be further configured to determine a location area according to the amount of light detected by the light sensor; and/or determine a displacement trend according to a change in the number of light rays detected by the light sensor at different times.
- the attached object may block part of the light from being irradiated onto the screen of the terminal, the light detected on the screen of the terminal is reduced, and it is determined that the area on the screen of the terminal is reduced in light.
- the location area can be determined according to the quantity of the light detected by the light sensor. Specifically, it can be determined according to whether the detected quantity of light is less than a threshold. When the number of light is less than the threshold, the area is determined to be the above position. Area, but not limited to this.
- Determining the displacement trend according to the change of the amount of light detected by the light sensor at different times may be expressed as: at the first moment, the number of rays detected at a certain position on the terminal screen is a normal number, and at the second moment, the position is at the second moment If the amount of detected light suddenly decreases or decreases slowly, it can be determined that the attachment has moved to the second moment.
- the displacement trend may be a direction from a position at which the amount of light detected at the first time is reduced to a position at which the number of rays is detected at the second time.
- the first determining module 52 may be further configured to determine a location area and/or a displacement trend without receiving an instruction to indicate that the terminal is locked.
- the foregoing apparatus may further include: a detecting module, configured to be connected to the first determining module 52, configured to detect whether the terminal is currently in a use state, wherein, in a use state, the first determining module 52 determines Location area and/or displacement trend.
- a detecting module configured to be connected to the first determining module 52, configured to detect whether the terminal is currently in a use state, wherein, in a use state, the first determining module 52 determines Location area and/or displacement trend.
- the above use state may be a read state, a video state, or the like, but is not limited thereto.
- the apparatus may further include: a second determining module, coupled to the first determining module 52, configured to determine whether an attachment exists on the screen of the terminal.
- the foregoing second determining module may determine, by at least one of the following manners, whether there is an attachment on the screen of the terminal: determining whether there is a pressure sensitive value less than a first predetermined threshold on the screen of the terminal; if yes, determining that the terminal exists on the screen Attachment; if not, determining that there is no attachment on the screen of the terminal; determining whether the amount of light on the screen of the terminal detected by the light sensor is less than a second predetermined threshold; and determining that the proximity sensor is detecting if the value is less than the second predetermined threshold To the specified signal; wherein, in the case where the proximity sensor does not detect the designated signal, it is determined that there is an attachment on the screen of the terminal.
- the processing module 54 may be further configured to not process the touch region in the location region and/or the displacement trend direction or the reverse direction for a predetermined period of time; and/or reduce the location region and/or the displacement. Sensitivity to touch events in the trend direction or in the opposite direction.
- the apparatus may further include: a display module connected to the first determining module 52, and configured to display prompt information for prompting cleaning of attachments and/or location areas and/or displacement trends .
- the first determining module 52 is further configured to continue to determine whether an attachment is still present on the screen of the terminal; the processing module 54 is further configured to determine that the result is In the case where there is no attachment on the screen of the terminal, the reporting operation of the touch event in the positional direction and/or the displacement trend direction or the reverse direction is restored. That is, the first determining module 52 can be configured to determine whether the attached object is cleaned. In the case that the cleaning is completed, the processing module 54 can resume the reporting operation of the corresponding touch event, that is, the touch can be restored to a normal state. .
- each unit in the processing device of the touch event may be a central processing unit (CPU) or a microprocessor (Micro) located in the processing device of the touch event.
- CPU central processing unit
- Micro microprocessor
- Processor Unit MPU
- DSP Digital Signal Processor
- FPGA Field Programmable Gate Array
- FIG. 6 is a structural block diagram 2 of a touch event processing device according to an embodiment of the present invention.
- the device includes: The sensing module 62 is configured to acquire a vertical pressure value of the attached object on the terminal screen perpendicular to the terminal screen, and determine whether the vertical pressure value is less than a first predetermined threshold; the pressure change module 64 is connected to the pressure sensing module 62, configured as Detecting changes in vertical pressure values at different times on the screen of the terminal; the area delimiting module 66 is connected to the pressure sensing module 62, and configured to determine the attachment on the screen of the terminal according to the vertical pressure value acquired by the pressure sensing module 62.
- a position indicating unit 68 is connected to the pressure changing module 64 and configured to determine a displacement tendency of the attached object on the screen of the terminal according to the change of the vertical pressure value detected by the pressure changing module 64.
- the processing module 610 defines the area
- the module 66 is connected to the displacement prompting module 68, and is configured to prohibit the location area and/or the displacement determined by the reporting area delineation module. The touch event determined by the module in the direction of the displacement trend or in the opposite direction.
- the foregoing apparatus may further include: a terminal status determining module, connected to the area delimiting module 66 and the displacement prompting module 68, and configured to determine whether the terminal receives an instruction for indicating that the terminal is locked.
- a terminal status determining module connected to the area delimiting module 66 and the displacement prompting module 68, and configured to determine whether the terminal receives an instruction for indicating that the terminal is locked.
- each unit in the processing device of the touch event The central processing unit (CPU), the microprocessor (Micro Processor Unit, MPU), or the digital signal processor (DSP), or the field can be used in the processing device of the touch event.
- the central processing unit CPU
- the microprocessor Micro Processor Unit, MPU
- DSP digital signal processor
- FPGA Field Programmable Gate Array
- FIG. 7 is a structural block diagram 3 of a touch event processing device according to an embodiment of the present invention.
- the method includes: a pressure sensing module. 72, configured to acquire an approximating effect on a vertical pressure value perpendicular to the terminal screen on the terminal screen, and determine whether the vertical pressure value is less than a first predetermined threshold; the friction force monitoring module 74 is configured to detect when the attached object moves on the terminal screen The generated frictional force; the area demarcation module 76 is connected to the pressure sensing module 72, configured to determine the positional area of the attachment on the terminal screen according to the vertical pressure value acquired by the pressure sensing module 72; the displacement prompting module 78, and the friction The force monitoring module 74 is connected to be configured to determine the displacement tendency of the attached object on the terminal screen according to the frictional force monitored by the frictional force monitoring module 74.
- the processing module 710 is connected to the regional demarcation module 76 and the displacement prompting module 78, and is configured to be prohibited.
- the foregoing apparatus may further include: a terminal status determining module, connected to the area delimiting module 76 and the displacement prompting module 78, and configured to determine whether the terminal receives an instruction for indicating that the terminal is locked.
- a terminal status determining module connected to the area delimiting module 76 and the displacement prompting module 78, and configured to determine whether the terminal receives an instruction for indicating that the terminal is locked.
- each unit in the processing device of the touch event may be a central processing unit (CPU) or a microprocessor (Micro) located in the processing device of the touch event.
- CPU central processing unit
- Micro microprocessor
- Processor Unit MPU
- DSP Digital Signal Processor
- FPGA Field Programmable Gate Array
- FIG. 8 is according to the present invention.
- the block diagram of the processing device of the touch event of the embodiment is as shown in FIG. 8 , and includes: a light sensing module 82 configured to acquire the amount of light on the screen of the terminal, and determine whether the number of light is less than a second predetermined threshold;
- the quantity monitoring module 84 is connected to the light sensing module 82 and configured to monitor the change of the amount of light when the attached object moves on the terminal screen.
- the area demarcating module 86 is connected to the light sensing module 82 and configured to be based on the light sensing module 82.
- the number of the monitored light determines the location area of the attached object on the terminal screen; the displacement prompting module 88 is coupled to the light quantity monitoring module 84, and configured to determine the attached object on the terminal screen according to the change in the amount of light monitored by the light quantity monitoring module 84.
- the displacement module; the processing module 810 is connected to the area demarcation module 86 and the displacement prompting module 88, and is configured to prohibit the location area determined by the reporting area demarcation module 86 and/or the displacement trend direction or the reverse direction determined by the displacement prompting module 88. Control the incident.
- each unit in the processing device of the touch event may be a central processing unit (CPU) or a microprocessor (Micro) located in the processing device of the touch event.
- CPU central processing unit
- Micro microprocessor
- Processor Unit MPU
- DSP Digital Signal Processor
- FPGA Field Programmable Gate Array
- the apparatus may further include: a terminal status determining module, configured to connect with the area delimiting module 86 and the displacement prompting module 88 to determine whether the terminal receives an instruction for indicating that the terminal is locked.
- a terminal including: the processing device of the touch event shown in FIG. 5 or FIG. 6 or FIG. 7 or FIG.
- FIG. 9 is a first schematic diagram of a processing device for a touch event according to a preferred embodiment of the present invention. As shown in FIG. 9, the device includes:
- Pressure sensing module sensing the pressure transmitted by the screen and determining whether the pressure intensity reaches a specified threshold
- Pressure change monitoring module monitoring the continuous change of screen pressure to obtain the pressure component value of the parallel direction of the screen;
- the mobile phone state judging module judging whether the mobile phone is in use state
- the area demarcation module determining the pressure sensitive area according to the pressure sense value of the vertical screen direction, thereby determining the stain area;
- Displacement prompting module judging the displacement trend indicating the stain according to the result of the pressure change monitoring module, so as to facilitate the user to wipe;
- the processing module redefines the touch event reporting rule in the area. When touched, the chip temporarily does not process the reporting event of the area, or delays processing the reporting event of the area, thereby reducing the reaction sensitivity of the area.
- FIG. 10 is a second schematic diagram of a processing device for a touch event according to a preferred embodiment of the present invention. As shown in FIG. 10, the device includes:
- Pressure sensing module sensing the pressure transmitted by the screen and determining whether the pressure intensity reaches a specified threshold
- Friction monitoring module monitors the friction generated when the stain is displaced on the screen, and obtains the force component value of the parallel direction of the screen;
- the mobile phone state judging module judging whether the mobile phone is in use state
- the area demarcation module determining the pressure sensitive area according to the pressure sense value of the vertical screen direction, thereby determining the stain area;
- Displacement prompting module judging the displacement trend indicating the stain according to the result of the frictional force monitoring module, so as to facilitate the user to wipe;
- the processing module redefines the touch event reporting rule in the area. When touched, the chip temporarily does not process the reporting event of the area, or delays processing the reporting event of the area, thereby reducing the reaction sensitivity of the area.
- the embodiment further provides a preferred touch event processing device, the device comprising:
- Light sensing module perceives and calculates the amount of light on the screen, and determines whether the number of light reaches a specified threshold
- Light quantity monitoring module monitors the change of the amount of light when the stain is displaced on the screen, in order to obtain the displacement change and size area of the screen stain;
- the mobile phone state judging module judging whether the mobile phone is in use state
- the area demarcation module monitors the stain area detected by the module according to the quantity of light, thereby determining the stain area;
- Displacement prompting module judging the displacement trend indicating the stain according to the result of the light quantity monitoring module, so as to facilitate the user to wipe;
- the processing module redefines the touch event reporting rule in the area. When touched, the chip temporarily does not process the reporting event of the area, or delays processing the reporting event of the area, thereby reducing the reaction sensitivity of the area.
- each of the above modules may be implemented by software or hardware.
- the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination.
- the forms are located in different processors.
- Embodiments of the present invention also provide a computer storage medium.
- the above computer storage medium may be set to store program code for executing the steps of the method in Embodiment 1.
- the storage medium may include, but is not limited to, a USB flash drive, a read-only memory (ROM), a random access memory (RAM), and a mobile hard disk.
- ROM read-only memory
- RAM random access memory
- mobile hard disk A variety of media that can store program code, such as a disk or a disc.
- the processor executes the steps of the method in Embodiment 1 according to the stored program code in the storage medium.
- modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
- the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
- the invention is not limited to any specific combination of hardware and software.
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)
- Telephone Function (AREA)
Abstract
Description
本发明涉及无线通信领域,具体而言,涉及一种触控事件的处理方法及装置、终端、计算机存储介质。The present invention relates to the field of wireless communications, and in particular to a method and device for processing touch events, a terminal, and a computer storage medium.
在使用终端(手机)特别是使用终端全屏看视频时,如果屏幕上有污渍,此时,如果用户用手指去擦拭污渍,则很容易在去污渍的同时误触发其它视频调控功能。例如,手机横屏播放视频时,若污渍在屏幕的左右侧,用手指去污渍时,很可能触发音量增减、或者触发亮度增减;若污渍在屏幕的中间时,用手指去污渍时,很可能触发播放快进、或者触发播放快退,再例如在手机阅读文章、看新闻时,用手指擦拭污渍时,同样会引起一些误触控,给用户带来不便。When using the terminal (mobile phone), especially when using the terminal to watch the video in full screen, if there is stain on the screen, at this time, if the user wipes the stain with his finger, it is easy to falsely trigger other video control functions while removing the stain. For example, when the mobile phone is playing video on the horizontal screen, if the stain is on the left and right sides of the screen, when the stain is removed with a finger, it is likely to trigger the volume increase or decrease, or trigger the brightness increase or decrease; if the stain is in the middle of the screen, use the finger to remove the stain, It is very likely to trigger playback fast forward, or trigger playback fast rewind, and then, for example, when the user reads the article on the mobile phone and watches the news, when the user wipes the stain with the finger, it also causes some false touch, which brings inconvenience to the user.
相关技术中,进行屏幕去污的方案为先将屏幕进行锁定,在屏幕锁定的状态下进行去污,进而达到误操作的目的。但是相关技术中的上述方法用户操作前进行屏幕锁定的操作,并且锁定后所有区域必须解锁后再使用,用户体验差,没有智能判断用户动作的功能。In the related art, the solution for performing screen decontamination is to first lock the screen and perform decontamination in a state where the screen is locked, thereby achieving the purpose of misoperation. However, the above method in the related art performs a screen lock operation before the user operates, and all areas after the lock must be unlocked and then used, the user experience is poor, and there is no function of intelligently judging the user action.
针对相关技术中的上述技术问题,目前尚未提出有效的解决方案。In view of the above technical problems in the related art, an effective solution has not yet been proposed.
发明内容Summary of the invention
本发明实施例提供了一种触控事件的处理方法及装置、终端、计算机存储介质,以至少解决相关技术中屏幕除去附着物的方案用户体验度差的问题。The embodiment of the invention provides a method and a device for processing a touch event, a terminal, and a computer storage medium, so as to at least solve the problem that the user experience of the screen for removing the attached object in the related art is poor.
根据本发明的一个实施例,提供了一种触控事件的处理方法,包括: 确定附着物在终端屏幕上的位置区域和/或附着物在终端屏幕上的位移趋势;禁止上报位置区域和/或位移趋势方向或反方向上的触控事件。According to an embodiment of the present invention, a method for processing a touch event is provided, including: The positional area of the attachment on the terminal screen and/or the displacement tendency of the attachment on the terminal screen is determined; it is prohibited to report the touch event in the positional area and/or the displacement trend direction or the reverse direction.
本发明实施例中,确定附着物在终端屏幕上的位置区域和/或附着物在终端屏幕上的位移趋势包括:根据附着物作用于终端屏幕上垂直于终端屏幕的垂直压力值确定位置区域;和/或根据附着物在终端屏幕上不同位置处的不同时刻垂直压力值的变化或附着物在终端屏幕上移动产生的摩擦力确定位移趋势。In the embodiment of the present invention, determining a positional area of the attachment on the screen of the terminal and/or a displacement tendency of the attachment on the screen of the terminal includes: determining a location area according to a vertical pressure value perpendicular to the screen of the terminal on the screen of the terminal; And/or determining the displacement tendency based on the change in the vertical pressure value at different times at different locations on the terminal screen or the friction generated by the movement of the attachment on the terminal screen.
本发明实施例中,确定附着物在终端屏幕上的位置区域和/或附着物在终端屏幕上的位移趋势包括:根据光线传感器检测到的光线数量确定位置区域;和/或根据不同时刻光线传感器检测到的光线数量的变化确定位移趋势。In the embodiment of the present invention, determining the positional area of the attached object on the screen of the terminal and/or the displacement tendency of the attached object on the terminal screen comprises: determining the positional area according to the amount of light detected by the light sensor; and/or according to the light sensor at different times The change in the amount of light detected determines the displacement trend.
本发明实施例中,确定附着物在终端屏幕上的位置区域和/或附着物在终端屏幕上的位移趋势包括:在未接收到用于指示终端被锁屏的指令的情况下,确定位置区域和/或位移趋势。In the embodiment of the present invention, determining a positional area of the attachment on the screen of the terminal and/or a displacement tendency of the attachment on the screen of the terminal includes: determining the location area without receiving an instruction for indicating that the terminal is locked by the screen And / or displacement trends.
本发明实施例中,在确定附着物在终端屏幕上的位置区域和/或附着物在终端屏幕上的位移趋势之前,方法还包括:确定终端屏幕上是否存在附着物。In the embodiment of the present invention, before determining a positional area of the attached object on the terminal screen and/or a displacement tendency of the attached object on the terminal screen, the method further includes: determining whether an attachment exists on the screen of the terminal.
本发明实施例中,通过以下至少之一方式确定终端屏幕上是否存在附着物:判断终端屏幕上是否存在小于第一预定阈值的压感值;如果存在,确定终端屏幕上存在附着物;如果不存在,确定终端屏幕上不存在附着物;判断光线传感器检测到的终端屏幕上的光线数量是否小于第二预定阈值;在小于第二预定阈值的情况下,判断接近传感器是否检测到指定信号;其中,在接近传感器未检测到指定信号的情况下,确定终端屏幕上存在附着物。In the embodiment of the present invention, determining whether there is an attachment on the screen of the terminal by determining at least one of the following: determining whether there is a pressure sensitive value smaller than the first predetermined threshold on the screen of the terminal; if yes, determining that there is an attachment on the screen of the terminal; Existent, determining that there is no attachment on the screen of the terminal; determining whether the amount of light on the screen of the terminal detected by the light sensor is less than a second predetermined threshold; and determining that the proximity sensor detects the specified signal if the value is less than the second predetermined threshold; In the case where the proximity sensor does not detect the specified signal, it is determined that there is an attachment on the screen of the terminal.
本发明实施例中,禁止上报位置区域和/或位移趋势方向或反方向上的 触控事件包括以下至少之一:在预定时间段内不处理位置区域和/或位移趋势方向或反方向上的触控事件;降低位置区域和/或位移趋势方向或反方向上对触控事件的反应灵敏度。In the embodiment of the present invention, it is forbidden to report the location area and/or the displacement trend direction or the reverse direction. The touch event includes at least one of: not processing the touch area in the direction area and/or the displacement trend direction or the reverse direction within the predetermined time period; reducing the response of the position area and/or the displacement trend direction or the reverse direction to the touch event Sensitivity.
本发明实施例中,在确定附着物在终端屏幕上的位置区域和/或附着物在终端屏幕上的位移趋势之后,方法还包括:显示用于提示清理附着物和/或位置区域和/或位移趋势的提示信息。In the embodiment of the present invention, after determining the positional area of the attached object on the screen of the terminal and/or the displacement tendency of the attached object on the screen of the terminal, the method further includes: displaying the prompt for cleaning the attached object and/or the location area and/or Tip information for displacement trends.
本发明实施例中,在显示用于提示清理附着物和/或位置区域和/或位移趋势的提示信息之后,上述方法还包括:继续确定终端屏幕上是否还存在附着物;在确定结果为终端屏幕上不存在附着物的情况下,恢复位置区域和/或位移趋势方向或反方向上的触控事件的上报操作。In the embodiment of the present invention, after displaying the prompt information for prompting the cleaning of the attachment and/or the location area and/or the displacement trend, the method further includes: determining whether there is still an attachment on the screen of the terminal; In the case where there is no attachment on the screen, the reporting operation of the touch event in the positional direction and/or the displacement trend direction or the reverse direction is restored.
根据本发明的另一个实施例,提供了一种触控事件的处理装置,包括:第一确定模块,配置为确定附着物在终端屏幕上的位置区域和/或附着物在终端屏幕上的位移趋势;处理模块,配置为禁止上报位置区域和/或位移趋势方向或反方向上的触控事件。According to another embodiment of the present invention, a touch event processing apparatus is provided, including: a first determining module configured to determine a location area of an attachment on a screen of the terminal and/or a displacement of the attachment on the screen of the terminal The processing module is configured to prohibit the reporting of the touch area in the location area and/or the displacement trend direction or the reverse direction.
本发明实施例中,第一确定模块还配置为根据附着物作用于终端屏幕上垂直于终端屏幕的垂直压力值确定位置区域;和/或根据附着物在终端屏幕上不同位置处的不同时刻垂直压力值的变化或附着物在终端屏幕上移动产生的摩擦力确定位移趋势。In the embodiment of the present invention, the first determining module is further configured to determine the location area according to the vertical pressure value of the attachment object acting on the terminal screen perpendicular to the terminal screen; and/or according to the different moments of the attachment at different positions on the terminal screen. The change in pressure value or the friction generated by the movement of the attachment on the terminal screen determines the displacement tendency.
本发明实施例中,第一确定模块还配置为根据光线传感器检测到的光线数量确定位置区域;和/或根据不同时刻光线传感器检测到的光线数量的变化确定位移趋势。In the embodiment of the present invention, the first determining module is further configured to determine the location area according to the quantity of the light detected by the light sensor; and/or determine the displacement trend according to the change of the quantity of the light detected by the light sensor at different times.
本发明实施例中,第一确定模块还配置为在未接收到用于指示终端被锁屏的指令的情况下,确定位置区域和/或位移趋势。In the embodiment of the present invention, the first determining module is further configured to determine a location area and/or a displacement trend if an instruction for indicating that the terminal is locked by the screen is not received.
本发明实施例中,第二确定模块,配置为确定终端屏幕上是否存在附着物。 In the embodiment of the present invention, the second determining module is configured to determine whether an attachment exists on the screen of the terminal.
本发明实施例中,第二确定模块通过以下至少之一方式确定终端屏幕上是否存在附着物:判断终端屏幕上是否存在小于第一预定阈值的压感值;如果存在,确定终端屏幕上存在附着物;如果不存在,确定终端屏幕上不存在附着物;判断光线传感器检测到的终端屏幕上的光线数量是否小于第二预定阈值;在小于第二预定阈值的情况下,判断接近传感器是否检测到指定信号;其中,在接近传感器未检测到指定信号的情况下,确定终端屏幕上存在附着物。In the embodiment of the present invention, the second determining module determines whether there is an attachment on the screen of the terminal by determining at least one of the following: determining whether there is a pressure sensitive value less than the first predetermined threshold on the screen of the terminal; if yes, determining that the terminal has a If there is no object, determine that there is no attachment on the screen of the terminal; determine whether the amount of light on the screen of the terminal detected by the light sensor is less than a second predetermined threshold; if it is less than the second predetermined threshold, determine whether the proximity sensor detects A signal is specified; wherein, in the case where the proximity sensor does not detect the designated signal, it is determined that there is an attachment on the screen of the terminal.
本发明实施例中,处理模块还配置为在预定时间段内不处理位置区域和/或位移趋势方向或反方向上的触控事件;和/或降低位置区域和/或位移趋势方向或反方向上对触控事件的反应灵敏度。In the embodiment of the present invention, the processing module is further configured to not process the touch event in the position region and/or the displacement trend direction or the reverse direction for a predetermined period of time; and/or decrease the position region and/or the displacement trend direction or the reverse direction Sensitivity of touch events.
本发明实施例中,装置还包括:显示模块,还配置为显示用于提示清理附着物和/或位置区域和/或位移趋势的提示信息。In an embodiment of the invention, the apparatus further includes: a display module, configured to display prompt information for prompting cleaning of attachments and/or location areas and/or displacement trends.
本发明实施例中,第一确定模块,还配置为继续确定终端屏幕上是否还存在附着物;处理模块,还配置为在确定结果为终端屏幕上不存在附着物的情况下,恢复位置区域和/或位移趋势方向或反方向上的触控事件的上报操作。In the embodiment of the present invention, the first determining module is further configured to continue to determine whether an attachment is still present on the screen of the terminal; and the processing module is further configured to: restore the location area and, if the determination result is that there is no attachment on the screen of the terminal; / or the reporting operation of the touch event in the direction of the trend or in the opposite direction.
根据本发明的另一个实施例,提供了一种触控事件的处理装置,包括:压感模块,配置为获取附着物作用于终端屏幕上垂直于终端屏幕的垂直压力值,以及判断垂直压力值是否小于第一预定阈值;压力变化模块,配置为检测终端屏幕上不同位置处的不同时刻垂直压力值的变化;区域划定模块,配置为根据压感模块获取的垂直压力值确定附着物在终端屏幕上的位置区域;位移提示模块,配置为根据压力变化模块检测的垂直压力值的变化确定附着物在终端屏幕上的位移趋势;处理模块,配置为禁止上报区域划定模块确定的位置区域和/或位移提示模块确定的位移趋势方向或反方向上的触控事件。 According to another embodiment of the present invention, a touch event processing apparatus is provided, including: a pressure sensing module configured to acquire a vertical pressure value of an attached object acting on a screen of the terminal perpendicular to the screen of the terminal, and determining a vertical pressure value. Whether it is less than a first predetermined threshold; the pressure change module is configured to detect a change of a vertical pressure value at different moments at different positions on the screen of the terminal; the area demarcation module is configured to determine the attachment at the terminal according to the vertical pressure value acquired by the pressure sensing module a position area on the screen; the displacement prompting module is configured to determine a displacement tendency of the attached object on the screen of the terminal according to the change of the vertical pressure value detected by the pressure change module; and the processing module is configured to prohibit the position area determined by the reporting area delimiting module and / or the displacement prompt module determines the displacement trend direction or the touch event in the opposite direction.
本发明实施例中,装置还包括:终端状态判断模块,配置为判断终端是否接收到用于指示终端被锁屏的指令。In the embodiment of the present invention, the device further includes: a terminal status determining module, configured to determine whether the terminal receives an instruction for indicating that the terminal is locked.
根据本发明的另一个实施例,提供了一种触控事件的处理装置,包括:压感模块,配置为获取附着物作用于终端屏幕上垂直于终端屏幕的垂直压力值,以及判断垂直压力值是否小于第一预定阈值;摩擦力监测模块,配置为检测附着物在终端屏幕上移动时产生的摩擦力;区域划定模块,配置为根据压感模块获取的垂直压力值确定附着物在终端屏幕上的位置区域;位移提示模块,配置为根据摩擦力监测模块监测的摩擦力确定附着物在终端屏幕上的位移趋势;处理模块,配置为禁止上报区域划定模块确定的位置区域和/或位移提示模块确定的位移趋势方向或反方向上的触控事件。According to another embodiment of the present invention, a touch event processing apparatus is provided, including: a pressure sensing module configured to acquire a vertical pressure value of an attached object acting on a screen of the terminal perpendicular to the screen of the terminal, and determining a vertical pressure value. Whether it is less than a first predetermined threshold; a friction monitoring module configured to detect a friction generated when the attachment moves on the terminal screen; and an area delimiting module configured to determine the attachment on the terminal screen according to the vertical pressure value acquired by the pressure sensing module a positional area; a displacement prompting module configured to determine a displacement tendency of the attachment on the terminal screen according to the frictional force monitored by the frictional force monitoring module; the processing module configured to prohibit the location area and/or displacement determined by the reporting area delineation module The touch module determines the displacement trend direction or the touch event in the reverse direction.
本发明实施例中,装置还包括:终端状态判断模块,配置为判断终端是否接收到用于指示终端被锁屏的指令。In the embodiment of the present invention, the device further includes: a terminal status determining module, configured to determine whether the terminal receives an instruction for indicating that the terminal is locked.
根据本发明的另一个实施例,提供了一种触控事件的处理装置,包括:光感模块,配置为获取终端屏幕上的光线数量,以及判断光线数量是否小于第二预定阈值;光线数量监测模块,配置为监测附着物在终端屏幕上移动时的光线数量变化;区域划定模块,配置为根据光感模块监测的光线数量确定附着物在终端屏幕上的位置区域;位移提示模块,配置为根据光线数量监测模块监测的光线数量变化确定附着物在终端屏幕上的位移趋势;处理模块,配置为禁止上报区域划定模块确定的位置区域和/或位移提示模块确定的位移趋势方向或反方向上的触控事件。According to another embodiment of the present invention, a touch event processing apparatus includes: a light sensing module configured to acquire a quantity of light on a screen of the terminal, and determine whether the number of light is less than a second predetermined threshold; a module configured to monitor a change in the amount of light when the attached object moves on the terminal screen; the area demarcating module is configured to determine a position area of the attached object on the terminal screen according to the amount of light monitored by the light sensing module; and the displacement prompting module is configured to The displacement trend of the attached object on the terminal screen is determined according to the change of the quantity of light monitored by the light quantity monitoring module; the processing module is configured to prohibit the position area determined by the reporting area delineation module and/or the displacement trend direction or the reverse direction determined by the displacement prompting module Touch event.
本发明实施例中,装置还包括:终端状态判断模块,配置为判断终端是否接收到用于指示终端被锁屏的指令。In the embodiment of the present invention, the device further includes: a terminal status determining module, configured to determine whether the terminal receives an instruction for indicating that the terminal is locked.
根据本发明的另一个实施例,提供了一种终端,包括:上述触控事件的处理装置。According to another embodiment of the present invention, a terminal is provided, including: the processing device for the touch event.
根据本发明的又一个实施例,还提供了一种计算机存储介质。该计算 机存储介质设置为存储用于执行以下步骤的程序代码:确定附着物在终端屏幕上的位置区域和/或附着物在终端屏幕上的位移趋势;禁止上报位置区域和/或位移趋势方向或反方向上的触控事件。According to yet another embodiment of the present invention, a computer storage medium is also provided. The calculation The machine storage medium is configured to store program code for performing the following steps: determining a positional area of the attachment on the terminal screen and/or a displacement tendency of the attachment on the terminal screen; prohibiting reporting the positional area and/or the displacement trend direction or the opposite side Up touch event.
通过本发明,由于在确定了附着物在终端屏幕上的位置区域和/或位移趋势之后,禁止上报该位置区域和/或该位移趋势方向或反方向上的触控事件,进而使得在清除附着物的同时不会影响用户的应用使用,因此,可以解决相关技术中屏幕除去附着物的方案用户体验度差的问题,提高了用户的体验度。According to the present invention, since the positional area and/or the displacement tendency of the attachment on the screen of the terminal is determined, it is prohibited to report the touched event in the positional area and/or the displacement trend direction or the reverse direction, thereby causing the attachment to be removed. At the same time, it does not affect the user's application use. Therefore, the problem of poor user experience of the screen removing attachments in the related art can be solved, and the user experience is improved.
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是本发明实施例的一种触控事件的处理方法的移动终端的硬件结构框图;1 is a block diagram showing the hardware structure of a mobile terminal for processing a touch event according to an embodiment of the present invention;
图2是根据本发明实施例的触控事件的处理方法的流程图;2 is a flowchart of a method for processing a touch event according to an embodiment of the present invention;
图3是根据本发明优选实施例提供的方法的流程示意图;3 is a schematic flow chart of a method according to a preferred embodiment of the present invention;
图4是根据本发明优选实施例提供的方法的流程示意图;4 is a schematic flow chart of a method according to a preferred embodiment of the present invention;
图5是根据本发明实施例的触控事件的处理装置的结构框图一;FIG. 5 is a structural block diagram 1 of a processing device for a touch event according to an embodiment of the invention; FIG.
图6是根据本发明实施例的触控事件的处理装置的结构框图二;6 is a structural block diagram 2 of a processing device for a touch event according to an embodiment of the invention;
图7是根据本发明实施例的触控事件的处理装置的结构框图三;7 is a structural block diagram 3 of a processing device for a touch event according to an embodiment of the present invention;
图8是根据本发明实施例的触控事件的处理装置的结构框图四;FIG. 8 is a structural block diagram 4 of a processing apparatus for a touch event according to an embodiment of the present invention; FIG.
图9是根据本发明优选实施例提供的触控事件的处理装置的示意图一;FIG. 9 is a first schematic diagram of a processing device for a touch event according to a preferred embodiment of the present invention; FIG.
图10是根据本发明优选实施例提供的触控事件的处理装置的示意图二。 FIG. 10 is a second schematic diagram of a processing device for a touch event according to a preferred embodiment of the present invention.
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
实施例1Example 1
本申请实施例1所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图1是本发明实施例的一种触控事件的处理方法的移动终端的硬件结构框图。如图1所示,移动终端10可以包括一个或多个(图中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)、用于存储数据的存储器104、以及用于通信功能的传输装置106。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,移动终端10还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。The method embodiment provided by Embodiment 1 of the present application can be executed in a mobile terminal, a computer terminal or the like. Taking a mobile terminal as an example, FIG. 1 is a hardware structural block diagram of a mobile terminal for processing a touch event according to an embodiment of the present invention. As shown in FIG. 1, the mobile terminal 10 may include one or more (only one shown) processor 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA). A memory 104 for storing data, and a transmission device 106 for communication functions. It will be understood by those skilled in the art that the structure shown in FIG. 1 is merely illustrative and does not limit the structure of the above electronic device. For example, the mobile terminal 10 may also include more or fewer components than those shown in FIG. 1, or have a different configuration than that shown in FIG.
存储器104可用于存储应用软件的软件程序以及模块,如本发明实施例中的触控事件的处理方法对应的程序指令/模块,处理器102通过运行存储在存储器104内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动终端10。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。 The memory 104 can be used to store software programs and modules of the application software, such as program instructions/modules corresponding to the processing method of the touch event in the embodiment of the present invention, and the processor 102 runs the software program and the module stored in the memory 104, thereby The above methods are implemented by performing various functional applications and data processing. Memory 104 may include high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, memory 104 may further include memory remotely located relative to processor 102, which may be connected to mobile terminal 10 over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
传输装置106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括移动终端10的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,RF)模块,其用于通过无线方式与互联网进行通讯。Transmission device 106 is for receiving or transmitting data via a network. The above-described network specific example may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet. In one example, the transmission device 106 can be a Radio Frequency (RF) module for communicating with the Internet wirelessly.
在本实施例中提供了一种运行于上述移动终端的触控事件的处理方法,图2是根据本发明实施例的触控事件的处理方法的流程图,如图2所示,该流程包括如下步骤:In this embodiment, a processing method of a touch event running on the mobile terminal is provided. FIG. 2 is a flowchart of a method for processing a touch event according to an embodiment of the present invention. As shown in FIG. 2, the process includes The following steps:
步骤S202,确定附着物在终端屏幕上的位置区域和/或附着物在终端屏幕上的位移趋势;Step S202, determining a positional tendency of the attachment object on the terminal screen and/or a displacement tendency of the attachment on the terminal screen;
步骤S204,禁止上报位置区域和/或位移趋势方向或反方向上的触控事件。In step S204, it is prohibited to report the touch event in the location area and/or the displacement trend direction or the reverse direction.
通过上述装置,由于在确定了附着物在终端屏幕上的位置区域和/或位移趋势之后,禁止上报该位置区域和/或该位移趋势方向或反方向上的触控事件,进而使得在清除附着物的同时不会影响用户的应用使用,因此,可以解决相关技术中屏幕除去附着物的方案用户体验度差的问题,提高了用户的体验度。With the above device, since the positional area and/or the displacement tendency of the attached object on the terminal screen is determined, it is prohibited to report the touch event in the positional area and/or the displacement trend direction or the reverse direction, thereby causing the attachment to be removed. At the same time, it does not affect the user's application use. Therefore, the problem of poor user experience of the screen removing attachments in the related art can be solved, and the user experience is improved.
需要说明的是,确定上述位置区域和/或位移趋势的方式可以有多种,比如可以通过附着物对终端屏幕的作用力确定,也可以通过屏幕终端上接收到的光线来确定,但并不限于此。It should be noted that the manner of determining the location area and/or the displacement trend may be various, for example, may be determined by the action of the attachment on the screen of the terminal, or may be determined by the light received on the screen terminal, but not Limited to this.
因而,在本发明的一个实施例中,上述步骤S202可以表现为:根据附着物作用于终端屏幕上垂直于终端屏幕的垂直压力值确定位置区域;和/或根据附着物在终端屏幕上不同位置处的不同时刻垂直压力值的变化或附着物在终端屏幕上移动产生的摩擦力确定位移趋势。 Therefore, in an embodiment of the present invention, the above step S202 may be performed by: determining a location area according to a vertical pressure value perpendicular to the screen of the terminal on the terminal screen; and/or different positions according to the attachment on the screen of the terminal. The change in the vertical pressure value at different moments or the friction generated by the movement of the attachment on the terminal screen determines the displacement tendency.
根据附着物在终端屏幕上不同位置处的不同时刻垂直压力值的变化确定位移趋势可以表现为:在第一时刻,附着物在终端屏幕上的第一个位置处产生垂直压力值,第二位置处并没有垂直压力值,在第二时刻时,在终端屏幕处的第二位置出产生了垂直压力值,而在第一位置处垂直压力值减少或者没有了,则说明附着物的移动的方向为由第一位置移动到了第二位置,即确定了附着物在终端屏幕上的位移趋势,但并不限于此。根据附着物在终端屏幕上移动产生的摩擦力确定位移趋势可以表现为根据摩擦力的方向来确定位移趋势,比如检测到的摩擦力的方向的反方向为附着物在终端屏幕上移动的方向,即能够确定位移趋势,但并不限于此。Determining the displacement trend according to the change of the vertical pressure value at different times at different positions on the terminal screen of the attachment may be expressed as: at the first moment, the attachment generates a vertical pressure value at the first position on the terminal screen, and the second position There is no vertical pressure value. At the second moment, the vertical pressure value is generated at the second position at the terminal screen, and the vertical pressure value is decreased or not at the first position, indicating the direction of the movement of the attachment. In order to move from the first position to the second position, the displacement tendency of the attachment on the screen of the terminal is determined, but is not limited thereto. Determining the displacement tendency according to the friction generated by the movement of the attachment on the screen of the terminal may be expressed as determining the displacement tendency according to the direction of the frictional force, for example, the direction of the detected frictional force is the direction in which the attachment moves on the terminal screen, That is, the displacement tendency can be determined, but is not limited thereto.
在本发明的一个实施例中,上述步骤S202还可以表现为:根据光线传感器检测到的光线数量确定位置区域;和/或根据不同时刻光线传感器检测到的光线数量的变化确定位移趋势。In an embodiment of the present invention, the step S202 may be further performed by: determining a location area according to the number of rays detected by the light sensor; and/or determining a displacement trend according to a change in the number of rays detected by the light sensor at different times.
需要说明的是,由于附着物可能会遮挡部分光线照射到终端屏幕上,因而在终端屏幕上检测到的光线就会减少,检测到终端屏幕上哪个区域上的光线减少了就会确定该区域可能存在附着物,因而可以根据光线传感器检测到的光线数量确定位置区域,具体地,可以根据该检测到的光线数量是否小于一个阈值来确定,当光线数量小于该阈值的区域确定该区域为上述位置区域,但并不限于此。根据不同时刻光线传感器检测到的光线数量的变化确定位移趋势可以表现为:在第一时刻,终端屏幕上的某个位置检测到的光线数量为正常数量,而在第二时刻时,该位置处检测到的光线数量突然减少或者慢慢减少了,则可以确定,该附着物在第二时刻移动到了该位置处,则该位移趋势可以是从第一时刻处检测到的光线数量减少的位置到第二时刻检测到光线数量减少的位置的方向。It should be noted that since the attached object may block part of the light from being irradiated onto the screen of the terminal, the light detected on the screen of the terminal is reduced, and it is determined that the area on the screen of the terminal is reduced in light. There is an attachment, so that the location area can be determined according to the quantity of the light detected by the light sensor. Specifically, it can be determined according to whether the detected quantity of light is less than a threshold. When the number of light is less than the threshold, the area is determined to be the above position. Area, but not limited to this. Determining the displacement trend according to the change of the amount of light detected by the light sensor at different times may be expressed as: at the first moment, the number of rays detected at a certain position on the terminal screen is a normal number, and at the second moment, the position is at the second moment If the detected amount of light suddenly decreases or decreases slowly, it can be determined that the attached object moves to the position at the second moment, and the displacement trend may be from the position where the amount of light detected at the first moment is reduced to The second moment detects the direction of the position where the amount of light is reduced.
在本发明的另一个实施例中,上述步骤S202还可以表现为:在未接收到用于指示终端被锁屏的指令的情况下,确定位置区域和/或位移趋势。即 在确定位置区域和/或位置趋势之前,还可以确定终端是否被锁屏,如果终端被锁屏了,禁止上报位置区域和/或位移趋势方向或反方向上的触控事件并没有太大意义,进而在确定了终端并没有被锁屏的情况下才去确定位置区域和/或位移趋势。In another embodiment of the present invention, the above step S202 may also be performed to determine a location area and/or a displacement trend without receiving an instruction for indicating that the terminal is locked. which is Before determining the location area and/or the location trend, it is also possible to determine whether the terminal is locked. If the terminal is locked, it is not meaningful to prohibit the reporting of the location area and/or the displacement trend direction or the reverse direction. Further, it is determined that the location area and/or the displacement trend is determined in the case where it is determined that the terminal is not locked.
需要说明的是,在上述步骤S202之前,上述方法还可以包括:检测终端当前是否处于使用状态,在处于使用状态的情况下,执行步骤S202.需要说明的是,上述使用状态可以是阅读状态,观看视频状态等,但并不限于此。It should be noted that, before the step S202, the method may further include: detecting whether the terminal is currently in the use state, and in the case of being in the use state, performing step S202. It should be noted that the use state may be a read state. Watch video status, etc., but not limited to this.
在本发明的一个实施例中,在上述步骤S202之前,上述方法还可以包括:确定终端屏幕上是否存在附着物。In an embodiment of the present invention, before the step S202, the method may further include: determining whether an attachment exists on the screen of the terminal.
需要说明的是,可以通过以下至少之一方式确定终端屏幕上是否存在附着物:判断终端屏幕上是否存在小于第一预定阈值的压感值;如果存在,确定终端屏幕上存在附着物;如果不存在,确定终端屏幕上不存在附着物;判断光线传感器检测到的终端屏幕上的光线数量是否小于第二预定阈值;在小于第二预定阈值的情况下,判断接近传感器是否检测到指定信号;其中,在接近传感器未检测到指定信号的情况下,确定终端屏幕上存在附着物。It should be noted that whether there is an attachment on the screen of the terminal by determining at least one of the following: determining whether there is a pressure sensitive value less than a first predetermined threshold on the screen of the terminal; if present, determining that there is an attachment on the screen of the terminal; Existent, determining that there is no attachment on the screen of the terminal; determining whether the amount of light on the screen of the terminal detected by the light sensor is less than a second predetermined threshold; and determining that the proximity sensor detects the specified signal if the value is less than the second predetermined threshold; In the case where the proximity sensor does not detect the specified signal, it is determined that there is an attachment on the screen of the terminal.
需要说明的是,上述指定信号可以指指定物接近该终端的信号,根据接近传感器来检测指定信号,以区分造成光线数量减少的原因是附着物还是手指操作还是由于终端靠近人体遮挡了光线,使得增加了终端屏幕上存在附着物的确定精度。It should be noted that the foregoing specified signal may refer to a signal that the designated object is close to the terminal, and the specified signal is detected according to the proximity sensor to distinguish whether the cause of the decrease in the amount of light is the attachment or the finger operation or the terminal closes the human body to block the light. The accuracy of determining the presence of attachments on the terminal screen is increased.
在本发明的一个实施例中,上述步骤S204可以表现为以下至少之一,但并不限于此:在预定时间段内不处理位置区域和/或位移趋势方向或反方向上的触控事件;降低位置区域和/或位移趋势方向或反方向上对触控事件的反应灵敏度。 In an embodiment of the present invention, the foregoing step S204 may be expressed as at least one of the following, but is not limited thereto: the touch region in the position region and/or the displacement trend direction or the reverse direction is not processed in the predetermined time period; Sensitivity to response to touch events in the location area and/or displacement trend direction or in the opposite direction.
需要说明的是,在预定时间段内不处理位置区域和/或位移趋势方向或反方向上的触控事件可以表现为以下至少之一:第一种,不处理位置区域和/或位移趋势方向或反方向上的触控事件直到判断得到上述附着物已被清除为止;第二种,延迟一段时间处理位置区域和/或位移趋势方向或反方向上的触控事件。对于上述第一种表现方式,是终端自动判断的方式来确定是否上报位置区域和/或位移趋势方向或反方向上的触控事件,即在终端检测到存在附着物到终端检测到该附着物被清理完成的这段时间内不处理位置区域和/或位移趋势方向或反方向上的触控事件,对于上述第二种,可以事先设置在检测到存在附着物后的一段固定时间内,不处理位置区域和/或位移趋势方向或反方向上的触控事件。It should be noted that the touch event that does not process the location area and/or the displacement trend direction or the reverse direction within a predetermined time period may be expressed as at least one of the following: the first type, the location area and/or the displacement trend direction or The touch event in the opposite direction until it is judged that the attached object has been cleared; secondly, the touch event in the positional direction and/or the displacement trend direction or the reverse direction is delayed for a period of time. For the first performance mode, the terminal automatically determines whether to report the touch area in the location area and/or the displacement trend direction or the reverse direction, that is, when the terminal detects the presence of the attached object, the terminal detects that the attached object is detected. During the period of cleaning, the touch area in the position area and/or the displacement trend direction or the reverse direction is not processed. For the second type, the second time may be set in a fixed time after detecting the presence of the attached object, and the position is not processed. Touch events in the direction of the region and/or displacement trend or in the opposite direction.
在本发明的一个实施例中,在上述步骤S202之后,上述方法还可以包括:显示用于提示清理附着物和/或位置区域和/或位移趋势的提示信息。In an embodiment of the present invention, after the step S202, the method may further include: displaying prompt information for prompting cleaning of attachments and/or position regions and/or displacement trends.
需要说明的是,还需要判断上述附着物是否清理完毕,在清理完毕的情况下,可以恢复对应的触控事件的上报操作,因而在本发明的一个实施例中,在显示用于提示清理附着物和/或位置区域和/或位移趋势的提示信息之后,上述方法还可以包括:继续确定终端屏幕上是否还存在上述附着物;在确定结果为终端屏幕上不存在上述附着物的情况下,恢复上述位置区域和/或上述位移趋势方向或反方向上的触控事件的上报操作。It should be noted that it is also necessary to determine whether the attached object is cleaned up. In the case that the cleaning is completed, the reporting operation of the corresponding touch event can be resumed. Therefore, in one embodiment of the present invention, the display is used for prompting cleaning. After the prompt information of the object and/or the location area and/or the trend of the displacement, the method may further include: determining whether the attachment is still present on the screen of the terminal; and if the determination result is that the attachment is not present on the screen of the terminal, The reporting operation of the touch event in the above location area and/or the above-mentioned displacement trend direction or the reverse direction is resumed.
需要说明的是,在上述确定结果为终端屏幕上还存在上述附着物的情况下,可以继续确定该附着物的位置区域以及位移趋势,继续禁止该位置区域和/或位移趋势方向或反方向上的触控事件的上报操作。需要说明的是,上述继续确定该附着物的位置区域以及位移趋势,可以为上述附着物被清理了部分后,剩余的附着物的位置区域以及位移趋势;也可以是上述附着物的全体,但并不限于此。It should be noted that, in the case that the above determination result is that the attached object still exists on the screen of the terminal, the positional area of the attached object and the displacement tendency may be continuously determined, and the positional area and/or the displacement trend direction or the reverse direction may be continuously prohibited. The reporting operation of the touch event. It should be noted that the positional region and the displacement tendency of the attached object may be determined as a positional region and a displacement tendency of the remaining attached matter after the deposited object is cleaned; or the entire attached matter may be used. Not limited to this.
本发明实施例中,上述步骤的执行主体可以为终端等,但不限于此。 In the embodiment of the present invention, the execution body of the foregoing steps may be a terminal or the like, but is not limited thereto.
需要说明的是,上述附着物可以是污渍,也可以是水滴等,但并不限于此。It should be noted that the deposit may be a stain or a water drop or the like, but is not limited thereto.
为了更好地理解本发明,以下结合优选的实施例对本发明做进一步解释。For a better understanding of the invention, the invention is further explained in conjunction with the preferred embodiments.
本发明优选实施例提供的一种触控事件的处理方法包括:A method for processing a touch event provided by a preferred embodiment of the present invention includes:
根据屏幕污渍相对于屏幕的垂直压力分量和平行力分量,确定屏幕污渍在屏幕的位置区域和位移趋势,禁用该位置区域的触控事件上报,以便于用户在不影响当前操作的前提下,擦拭屏幕污渍,当完成擦拭后,恢复该位置区域的触控事件上报,恢复屏幕的正常触控。根据屏幕污渍相对于直接投射到屏幕的光线对比,确定屏幕污渍在屏幕上的位置区域和位移趋势,禁用该位置区域的触控事件上报,以便于用户在不影响当前操作的前提下,擦拭屏幕污渍,当完成擦拭后,恢复该位置区域的触控事件上报,恢复屏幕的正常触控。According to the vertical pressure component and the parallel force component of the screen stain relative to the screen, the position and displacement trend of the screen stain on the screen are determined, and the touch event report of the position area is disabled, so that the user can wipe the current operation without affecting the current operation. Screen stains, when the wipe is completed, restore the touch event report in the location area, and restore the normal touch of the screen. According to the contrast of the screen stain relative to the light directly projected onto the screen, the position and displacement trend of the screen stain on the screen are determined, and the touch event reporting of the position area is disabled, so that the user wipes the screen without affecting the current operation. The stain, when the wipe is completed, restores the touch event report of the location area, and restores the normal touch of the screen.
本发明优选实施例根据平行屏幕方向的力分量的获取方式,分为如下两个实施例:The preferred embodiment of the present invention is divided into the following two embodiments according to the manner in which the force component of the parallel screen direction is obtained:
第一个实施例:基于屏幕压感的变化,获取平行压力分量,进而确定屏幕污渍在屏幕的位移趋势。需要说明的是,上述平行压力分量相当于上述实施例中的垂直压力值的变化。该方法包括:The first embodiment: based on the change of the screen pressure, the parallel pressure component is obtained, thereby determining the displacement tendency of the screen stain on the screen. It is to be noted that the above-described parallel pressure component corresponds to a change in the vertical pressure value in the above embodiment. The method includes:
步骤1、识别并判断,手机是否已解锁:若未解锁,则不作处理;若已解锁,则执行污渍识别操作。Step 1. Identify and determine whether the mobile phone is unlocked: if it is not unlocked, no processing is performed; if it is unlocked, the stain identifying operation is performed.
污渍识别操作:Stain recognition operation:
a、识别手机屏幕上是否存在一定压感阈值以内的压感(该压感阈值取值较小,以区分于手指按压);a, identifying whether there is a pressure sense within a certain pressure sensing threshold on the screen of the mobile phone (the pressure sensing threshold value is small to distinguish from finger pressing);
b、若存在小于压感与之以内的压感,则确定屏幕上存在污渍;若不存在小于压感与之以内的压感,则确定屏幕上无污渍; b. if there is a pressure feeling less than the pressure sense, it is determined that there is a stain on the screen; if there is no pressure feeling less than the pressure sense, it is determined that there is no stain on the screen;
步骤2、若识别到手机屏幕上有污渍,则进一步识别并判断,手机当前是否处于使用状态,例如,阅读状态、或者观看视频的状态。Step 2: If it is recognized that there is a stain on the screen of the mobile phone, further identify and determine whether the mobile phone is currently in use, for example, reading status, or watching video status.
若识别到手机当前未处于使用状态,则不作处理;If it is recognized that the mobile phone is not currently in use, no processing is performed;
若识别到手机当前处于使用状态,则进一步执行污渍确定操作。If it is recognized that the mobile phone is currently in use, the stain determination operation is further performed.
污渍确定操作:Stain determination operation:
a、提取污渍的压感参数,包括压感区域,以及垂直屏幕方向的压感值;a, extracting the pressure sensitive parameters of the stain, including the pressure sensitive area, and the pressure sensitivity value in the vertical screen direction;
b、提取污渍作用于屏幕平行方向的力分量值:如果污渍在屏幕上产生位移,那么所经过屏幕处的压力值和屏幕洁净处的压力值肯定是不同的,根据压力值的连续变化,可以获得屏幕平行方向的力分量值。b. Extracting the force component value of the stain applied to the parallel direction of the screen: if the stain is displaced on the screen, the pressure value at the screen and the pressure value at the clean screen are definitely different, according to the continuous change of the pressure value, Obtain the force component values in the parallel direction of the screen.
其中,根据垂直屏幕方向的压感值确定压感区域,进而确定污渍区域;根据屏幕平行方向的力分量值,进而确定污渍的位移趋势。Wherein, the pressure sensitive area is determined according to the pressure sensing value in the vertical screen direction, thereby determining the stained area; and the displacement trend of the stain is determined according to the force component value of the parallel direction of the screen.
步骤3、通过手机屏幕的半透明悬浮窗,提示用户可以清理污渍,其中,该悬浮窗可以临近于污渍区域的任一角,同时,该悬浮窗可以指示该污渍的位移趋势,以便于用户擦拭,或者,优选方案,不提示用户擦拭。Step 3: The semi-transparent floating window of the mobile phone screen prompts the user to clean the stain, wherein the floating window can be adjacent to any corner of the stained area, and the floating window can indicate the displacement trend of the stain to facilitate the user to wipe. Or, a preferred solution does not prompt the user to wipe.
在用户擦拭之前,执行污渍处理操作:Perform stain treatment before the user wipes:
a、根据确定的污渍区域,和位移趋势,重新定义该区域的触控事件上报规则,触摸芯片暂时不处理该区域和位移趋势方向以及反方向的上报事件a. According to the determined stain area and the displacement trend, the touch event reporting rule of the area is redefined, and the touch chip temporarily does not process the area and the direction of the displacement trend and the reported event in the opposite direction.
b、或者,触摸芯片延迟处理该区域的上报事件,降低该区域的反应灵敏度b, or, the touch chip delays processing the reporting event of the area, reducing the reaction sensitivity of the area
步骤4、当执行清理操作后,再次执行上述“污渍识别操作”:Step 4. After performing the cleaning operation, perform the above “stain recognition operation” again:
若仍识别到,则循环执行“污渍识别操作”和“污渍处理操作”If it is still recognized, the “stain recognition operation” and “stain treatment operation” are executed cyclically.
若未识别到,则恢复“污渍处理操作”中的触控至正常状态。If not recognized, the touch in the "stain treatment operation" is restored to the normal state.
第二个实施例:根据屏幕平行方向的摩擦力分量值,进而确定污渍的位移趋势,该方法包括:The second embodiment: determining the displacement tendency of the stain according to the value of the friction component in the parallel direction of the screen, the method comprising:
步骤1、识别并判断,手机是否已解锁:若未解锁,则不作处理;若已 解锁,则执行污渍识别操作。Step 1. Identify and judge whether the mobile phone is unlocked: if it is not unlocked, it will not be processed; When unlocked, the stain recognition operation is performed.
污渍识别操作:Stain recognition operation:
a、识别手机屏幕上是否存在一定压感阈值以内的压感(该压感阈值取值较小,以区分于手指按压);a, identifying whether there is a pressure sense within a certain pressure sensing threshold on the screen of the mobile phone (the pressure sensing threshold value is small to distinguish from finger pressing);
b、若存在小于压感与之以内的压感,则确定屏幕上存在污渍;若不存在小于压感与之以内的压感,则确定屏幕上无污渍;b. if there is a pressure feeling less than the pressure sense, it is determined that there is a stain on the screen; if there is no pressure feeling less than the pressure sense, it is determined that there is no stain on the screen;
步骤2、若识别到手机屏幕上有污渍,则进一步识别并判断,手机当前是否处于使用状态,例如,阅读状态、或者观看视频的状态。Step 2: If it is recognized that there is a stain on the screen of the mobile phone, further identify and determine whether the mobile phone is currently in use, for example, reading status, or watching video status.
若识别到手机当前未处于使用状态,则不作处理;If it is recognized that the mobile phone is not currently in use, no processing is performed;
若识别到手机当前处于使用状态,则进一步执行污渍确定操作。If it is recognized that the mobile phone is currently in use, the stain determination operation is further performed.
污渍确定操作:Stain determination operation:
a、提取污渍的压感参数,包括压感区域,以及垂直屏幕方向的压感值;a, extracting the pressure sensitive parameters of the stain, including the pressure sensitive area, and the pressure sensitivity value in the vertical screen direction;
b、提取污渍作用于屏幕平行方向的力分量值:如果污渍在屏幕上产生位移,那么将在屏幕上产生摩擦力,将该力作为屏幕平行方向的力分量值。b. Extracting the force component value of the stain acting on the parallel direction of the screen: If the stain is displaced on the screen, a frictional force will be generated on the screen, which is the force component value of the parallel direction of the screen.
其中,根据垂直屏幕方向的压感值确定压感区域,进而确定污渍区域;根据屏幕平行方向的摩擦力分量值,进而确定污渍的位移趋势。Wherein, the pressure sensitive area is determined according to the pressure sensing value of the vertical screen direction, thereby determining the stained area; and the displacement trend of the stain is determined according to the frictional force component value of the parallel direction of the screen.
步骤3、通过手机屏幕的半透明悬浮窗,提示用户可以清理污渍,其中,该悬浮窗可以临近于污渍区域的任一角,同时,该悬浮窗可以指示该污渍的位移趋势,以便于用户擦拭,或者,优选方案,不提示用户擦拭。Step 3: The semi-transparent floating window of the mobile phone screen prompts the user to clean the stain, wherein the floating window can be adjacent to any corner of the stained area, and the floating window can indicate the displacement trend of the stain to facilitate the user to wipe. Or, a preferred solution does not prompt the user to wipe.
在用户擦拭之前,执行污渍处理操作。The stain processing operation is performed before the user wipes.
污渍处理操作:Stain treatment operation:
a、根据确定的污渍区域,和位移趋势,重新定义该区域的触控事件上报规则,触摸芯片暂时不处理该区域的和位移趋势方向和反方向范围内的上报事件a. According to the determined stain area and the displacement trend, the touch event reporting rule of the area is redefined, and the touch chip temporarily does not process the reporting event in the range of the direction and the direction of the displacement trend.
b、或者,触摸芯片延迟处理该区域的上报事件,降低该区域的反应灵 敏度b, or, the touch chip delays processing the reporting event of the area, reducing the reaction spirit of the area Sensitivity
步骤4、当执行清理操作后,再次执行上述“污渍识别操作”:Step 4. After performing the cleaning operation, perform the above “stain recognition operation” again:
若仍识别到,则循环执行“污渍识别操作”和“污渍处理操作”If it is still recognized, the “stain recognition operation” and “stain treatment operation” are executed cyclically.
若未识别到,则恢复“污渍处理操作”中的触控至正常状态。If not recognized, the touch in the "stain treatment operation" is restored to the normal state.
本优选实施例根据光线传感器,进而确定污渍的位移趋势,包括:The preferred embodiment determines the displacement trend of the stain based on the light sensor, including:
步骤1、识别并判断,手机是否已解锁:若未解锁,则不作处理;若已解锁,则执行污渍识别操作。Step 1. Identify and determine whether the mobile phone is unlocked: if it is not unlocked, no processing is performed; if it is unlocked, the stain identifying operation is performed.
污渍识别操作:Stain recognition operation:
a、通过光线传感器,可以计算出落在屏幕上的光线数量,从而确定光线没有落到屏幕上是因为屏幕上有污迹,还是因为用户要打电话,所以手机靠近耳朵的位置,落到屏幕上的光线才会减少。a. Through the light sensor, you can calculate the amount of light falling on the screen to determine whether the light does not fall on the screen because there is smudge on the screen, or because the user wants to make a call, so the phone is close to the ear and falls to the screen. The light on the screen will decrease.
b、若屏幕上的光线数量在正常阈值内,则确定屏幕上无污渍;b. If the amount of light on the screen is within a normal threshold, it is determined that there is no stain on the screen;
步骤2、若识别到手机屏幕上有污渍,则进一步识别并判断,手机当前是否处于使用状态,例如,阅读状态、或者观看视频的状态。Step 2: If it is recognized that there is a stain on the screen of the mobile phone, further identify and determine whether the mobile phone is currently in use, for example, reading status, or watching video status.
若识别到手机当前未处于使用状态,则不作处理;If it is recognized that the mobile phone is not currently in use, no processing is performed;
若识别到手机当前处于使用状态,则进一步执行污渍确定操作。If it is recognized that the mobile phone is currently in use, the stain determination operation is further performed.
污渍确定操作:Stain determination operation:
a、提取污渍的区域的光线数量值.并且计算出污渍的面积以及位移趋势a, the amount of light in the area where the stain is extracted, and calculate the area of the stain and the tendency of displacement
其中,根据光线传感器的光线数量计算,进而确定污渍区域;根据屏幕光线数量的变化,进而确定污渍的位移趋势。Wherein, according to the light quantity of the light sensor, the stain area is determined; according to the change of the number of screen lights, the displacement trend of the stain is determined.
步骤3、通过手机屏幕的半透明悬浮窗,提示用户可以清理污渍,其中,该悬浮窗可以临近于污渍区域的任一角,同时,该悬浮窗可以指示该污渍的位移趋势,以便于用户擦拭,或者,优选方案,不提示用户擦拭。Step 3: The semi-transparent floating window of the mobile phone screen prompts the user to clean the stain, wherein the floating window can be adjacent to any corner of the stained area, and the floating window can indicate the displacement trend of the stain to facilitate the user to wipe. Or, a preferred solution does not prompt the user to wipe.
在用户擦拭之前,执行污渍处理操作。 The stain processing operation is performed before the user wipes.
污渍处理操作:Stain treatment operation:
a、根据确定的污渍区域,和位移趋势,重新定义该区域的触控事件上报规则,触摸芯片暂时不处理该区域的和位移趋势方向和反方向范围内的上报事件;a. According to the determined stain area and the displacement trend, the touch event reporting rule of the area is redefined, and the touch chip temporarily does not process the reporting event in the direction of the area and the direction of the displacement trend and the reverse direction;
b、或者,触摸芯片延迟处理该区域的上报事件,降低该区域的反应灵敏度。b. Alternatively, the touch chip delays processing of the reported event in the area, reducing the sensitivity of the response of the area.
步骤4、当执行清理操作后,再次执行上述“污渍识别操作”:Step 4. After performing the cleaning operation, perform the above “stain recognition operation” again:
若仍识别到,则循环执行“污渍识别操作”和“污渍处理操作”;If it is still recognized, the "stain recognition operation" and "stain treatment operation" are executed cyclically;
若未识别到,则恢复“污渍处理操作”中的触控至正常状态。If not recognized, the touch in the "stain treatment operation" is restored to the normal state.
优选实施例1Preferred embodiment 1
本优选实施例提供了一种触控事件的处理方法,其平行屏幕的力分量由压感持续变化得到,图3是根据本发明优选实施例提供的方法的流程示意图,如图3所示,该方法包括:The preferred embodiment provides a method for processing a touch event, wherein the force component of the parallel screen is continuously changed by the pressure sense. FIG. 3 is a schematic flowchart of the method according to the preferred embodiment of the present invention, as shown in FIG. The method includes:
步骤1:识别并判断,手机是否已解锁:若未解锁,则不作处理;若已解锁,则继续步骤2;Step 1: Identify and determine whether the mobile phone is unlocked: if it is not unlocked, no processing is performed; if it is unlocked, proceed to step 2;
步骤2:识别屏幕是否存在污渍,如果存在,继续步骤3;Step 2: Identify whether there is a stain on the screen, and if so, continue to step 3;
步骤3:识别并判断,手机当前是否处于使用状态,例如,阅读状态、或者观看视频的状态,若不处于使用状态,则不作处理;否则继续步骤4;Step 3: Identify and determine whether the mobile phone is currently in use, for example, reading status, or watching video status, if not in use, no processing; otherwise, proceed to step 4;
步骤4:根据压感确定污渍区域及位移趋势;Step 4: Determine the stain area and displacement trend according to the pressure sense;
步骤5:对污渍区域的事件处理机制进行更改,以防止误操作;Step 5: Change the event handling mechanism of the stain area to prevent misoperation;
步骤6:清理完毕后,继续判断屏幕是否存在污渍,如果存在,则继续步骤3;否则结束。Step 6: After the cleaning is completed, continue to judge whether there is any stain on the screen. If it exists, continue to step 3; otherwise, it ends.
优选实施例2Preferred embodiment 2
本优选实施例提供了一种基于压感技术的屏幕去污渍的方法,其平行屏幕的力分量由屏幕平行方向的摩擦力分量值得到,图4是根据本发明优 选实施例提供的方法的流程示意图,具体包括:The preferred embodiment provides a method for screen stain removal based on pressure sensing technology, wherein the force component of the parallel screen is obtained from the value of the friction component in the parallel direction of the screen, and FIG. 4 is based on the present invention. A schematic flowchart of the method provided by the embodiment, which specifically includes:
步骤1:识别并判断,手机是否已解锁:若未解锁,则不作处理;若已解锁,则继续步骤2;Step 1: Identify and determine whether the mobile phone is unlocked: if it is not unlocked, no processing is performed; if it is unlocked, proceed to step 2;
步骤2:识别屏幕是否存在污渍,如果存在,继续步骤3;否则结束;Step 2: Identify if there is any stain on the screen, if it exists, continue with step 3; otherwise, end;
步骤3:识别并判断,手机当前是否处于使用状态,例如,阅读状态、或者观看视频的状态,若不处于使用状态,则不作处理;否则继续步骤4;Step 3: Identify and determine whether the mobile phone is currently in use, for example, reading status, or watching video status, if not in use, no processing; otherwise, proceed to step 4;
步骤4:根据压感确定污渍区域,根据屏幕上的摩擦力分量值确定位移趋势;Step 4: Determine the stain area according to the pressure sense, and determine the displacement trend according to the friction component value on the screen;
步骤5:对污渍区域的事件处理机制进行更改,以防止误操作;Step 5: Change the event handling mechanism of the stain area to prevent misoperation;
步骤6:清理完毕后,继续判断屏幕是否存在污渍,如果存在,则继续步骤3;否则结束。Step 6: After the cleaning is completed, continue to judge whether there is any stain on the screen. If it exists, continue to step 3; otherwise, it ends.
优选实施例3Preferred embodiment 3
本发明优选实施例提供了一种触控事件的处理方法,其屏幕获取的光线数量由光线数量监测模块计算得到,具体包括:A preferred embodiment of the present invention provides a method for processing a touch event, wherein the amount of light acquired by the screen is calculated by the light quantity monitoring module, and specifically includes:
步骤1:识别并判断,手机是否已解锁:若未解锁,则不作处理;若已解锁,则继续步骤2;Step 1: Identify and determine whether the mobile phone is unlocked: if it is not unlocked, no processing is performed; if it is unlocked, proceed to step 2;
步骤2:识别屏幕是否存在污渍,如果存在,继续步骤3;否则结束;Step 2: Identify if there is any stain on the screen, if it exists, continue with step 3; otherwise, end;
步骤3:识别并判断,手机当前是否处于使用状态,例如,阅读状态、或者观看视频的状态,若不处于使用状态,则不作处理;否则继续步骤4;Step 3: Identify and determine whether the mobile phone is currently in use, for example, reading status, or watching video status, if not in use, no processing; otherwise, proceed to step 4;
步骤4:根据光线数量监测确定污渍区域,根据屏幕上的光线变化数量值确定位移趋势;Step 4: Determine the stain area according to the quantity of light, and determine the displacement trend according to the value of the light change on the screen;
步骤5:对污渍区域的事件处理机制进行更改,以防止误操作;Step 5: Change the event handling mechanism of the stain area to prevent misoperation;
步骤6:清理完毕后,继续判断屏幕是否存在污渍,如果存在,则继续步骤3;否则结束。Step 6: After the cleaning is completed, continue to judge whether there is any stain on the screen. If it exists, continue to step 3; otherwise, it ends.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根 据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand the roots. The method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be through hardware, but in many cases the former is a better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
实施例2Example 2
在本实施例中还提供了一种触控事件的处理装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In the embodiment, a processing device for a touch event is provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and details are not described herein. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图5是根据本发明实施例的触控事件的处理装置的结构框图一,如图5所示,该装置包括:FIG. 5 is a structural block diagram 1 of a processing device for a touch event according to an embodiment of the present invention. As shown in FIG. 5, the device includes:
第一确定模块52,配置为确定附着物在终端屏幕上的位置区域和/或附着物在终端屏幕上的位移趋势;The first determining module 52 is configured to determine a positional area of the attached object on the terminal screen and/or a displacement tendency of the attached object on the terminal screen;
处理模块54,与上述第一确定模块52连接,配置为禁止上报位置区域和/或位移趋势方向或反方向上的触控事件。The processing module 54 is connected to the first determining module 52, and is configured to prohibit the reporting of the touch event in the location area and/or the displacement trend direction or the reverse direction.
通过上述装置,由于在第一确定模块52确定了附着物在终端屏幕上的位置区域和/或位移趋势之后,上述处理模块54禁止上报该位置区域和/或该位移趋势方向或反方向上的触控事件,进而使得在清除附着物的同时不会影响用户的应用使用,因此,可以解决相关技术中屏幕除去附着物的方案用户体验度差的问题,提高了用户的体验度。With the above device, since the first determining module 52 determines the location area and/or the displacement tendency of the attached object on the terminal screen, the processing module 54 prohibits reporting the positional area and/or the displacement trend direction or the opposite direction. The event is controlled, so that the user's application is not affected while the attachment is removed. Therefore, the problem of poor user experience of the screen removing the attachment in the related art can be solved, and the user experience is improved.
在本发明的一个实施例中,上述第一确定模块52还可以配置为根据附 着物作用于终端屏幕上垂直于终端屏幕的垂直压力值确定位置区域;和/或根据附着物在终端屏幕上不同位置处的不同时刻垂直压力值的变化或附着物在终端屏幕上移动产生的摩擦力确定位移趋势。In an embodiment of the present invention, the first determining module 52 may be further configured to attach The object acts on the terminal screen to determine the location area perpendicular to the vertical pressure value of the terminal screen; and/or the change in the vertical pressure value at different times at different positions on the terminal screen or the friction generated by the attachment moving on the terminal screen Force determines the displacement trend.
需要说明的是,上述第一确定模块52根据附着物在终端屏幕上不同位置处的不同时刻垂直压力值的变化确定位移趋势可以表现为:在第一时刻,附着物在终端屏幕上的第一个位置处产生垂直压力值,第二位置处并没有垂直压力值,在第二时刻时,在终端屏幕处的第二位置出产生了垂直压力值,而在第一位置处垂直压力值减少或者没有了,则第一确定模块52确定附着物的移动的方向为由第一位置移动到了第二位置,即确定了附着物在终端屏幕上的位移趋势,但并不限于此。上述第一确定模块52根据附着物在终端屏幕上移动产生的摩擦力确定位移趋势可以表现为根据摩擦力的方向来确定位移趋势,比如检测到的摩擦力的方向的反方向为附着物在终端屏幕上移动的方向,即能够确定位移趋势,但并不限于此。It should be noted that the first determining module 52 determines that the displacement trend is determined according to the change of the vertical pressure value at different times on the terminal screen at different positions on the terminal screen: at the first moment, the attachment is first on the terminal screen. a vertical pressure value is generated at the position, and no vertical pressure value is present at the second position. At the second time, a vertical pressure value is generated at the second position at the terminal screen, and the vertical pressure value is decreased at the first position or If not, the first determining module 52 determines that the direction of movement of the attached object is moved from the first position to the second position, that is, the tendency of the attachment to be displaced on the screen of the terminal is determined, but is not limited thereto. The first determining module 52 determines that the displacement trend is determined according to the friction generated by the movement of the attached object on the screen of the terminal. The displacement trend may be expressed according to the direction of the frictional force. For example, the direction of the detected frictional force is the opposite direction of the attached object at the terminal. The direction of movement on the screen, that is, the displacement tendency can be determined, but is not limited thereto.
在本发明的一个实施例中,第一确定模块52还可以配置为根据光线传感器检测到的光线数量确定位置区域;和/或根据不同时刻光线传感器检测到的光线数量的变化确定位移趋势。In an embodiment of the present invention, the first determining module 52 may be further configured to determine a location area according to the amount of light detected by the light sensor; and/or determine a displacement trend according to a change in the number of light rays detected by the light sensor at different times.
需要说明的是,由于附着物可能会遮挡部分光线照射到终端屏幕上,因而在终端屏幕上检测到的光线就会减少,检测到终端屏幕上哪个区域上的光线减少了就会确定该区域可能存在附着物,因而可以根据光线传感器检测到的光线数量确定位置区域,具体地,可以根据该检测到的光线数量是否小于一个阈值来确定,当光线数量小于该阈值的区域确定该区域为上述位置区域,但并不限于此。根据不同时刻光线传感器检测到的光线数量的变化确定位移趋势可以表现为:在第一时刻,终端屏幕上的某个位置检测到的光线数量为正常数量,而在第二时刻时,该位置处检测到的光线数量突然减少或者慢慢减少了,则可以确定,该附着物在第二时刻移动到了 该位置处,则该位移趋势可以是从第一时刻处检测到的光线数量减少的位置到第二时刻检测到光线数量减少的位置的方向。It should be noted that since the attached object may block part of the light from being irradiated onto the screen of the terminal, the light detected on the screen of the terminal is reduced, and it is determined that the area on the screen of the terminal is reduced in light. There is an attachment, so that the location area can be determined according to the quantity of the light detected by the light sensor. Specifically, it can be determined according to whether the detected quantity of light is less than a threshold. When the number of light is less than the threshold, the area is determined to be the above position. Area, but not limited to this. Determining the displacement trend according to the change of the amount of light detected by the light sensor at different times may be expressed as: at the first moment, the number of rays detected at a certain position on the terminal screen is a normal number, and at the second moment, the position is at the second moment If the amount of detected light suddenly decreases or decreases slowly, it can be determined that the attachment has moved to the second moment. At the position, the displacement trend may be a direction from a position at which the amount of light detected at the first time is reduced to a position at which the number of rays is detected at the second time.
在本发明的一个实施例中,上述第一确定模块52还可以配置为在未接收到用于指示终端被锁屏的指令的情况下,确定位置区域和/或位移趋势。In an embodiment of the present invention, the first determining module 52 may be further configured to determine a location area and/or a displacement trend without receiving an instruction to indicate that the terminal is locked.
需要说明的是,上述装置还可以包括:检测模块,与上述第一确定模块52连接,配置为检测终端当前是否处于使用状态,其中,在处于使用状态的情况下,上述第一确定模块52确定位置区域和/或位移趋势。需要说明的是,上述使用状态可以是阅读状态,观看视频状态等,但并不限于此。It should be noted that the foregoing apparatus may further include: a detecting module, configured to be connected to the first determining module 52, configured to detect whether the terminal is currently in a use state, wherein, in a use state, the first determining module 52 determines Location area and/or displacement trend. It should be noted that the above use state may be a read state, a video state, or the like, but is not limited thereto.
在本发明的一个实施例中,上述装置还可以包括:第二确定模块,与上述第一确定模块52连接,配置为确定终端屏幕上是否存在附着物。In an embodiment of the present invention, the apparatus may further include: a second determining module, coupled to the first determining module 52, configured to determine whether an attachment exists on the screen of the terminal.
需要说明的是,上述第二确定模块可以通过以下至少之一方式确定终端屏幕上是否存在附着物:判断终端屏幕上是否存在小于第一预定阈值的压感值;如果存在,确定终端屏幕上存在附着物;如果不存在,确定终端屏幕上不存在附着物;判断光线传感器检测到的终端屏幕上的光线数量是否小于第二预定阈值;在小于第二预定阈值的情况下,判断接近传感器是否检测到指定信号;其中,在接近传感器未检测到指定信号的情况下,确定终端屏幕上存在附着物。It should be noted that, the foregoing second determining module may determine, by at least one of the following manners, whether there is an attachment on the screen of the terminal: determining whether there is a pressure sensitive value less than a first predetermined threshold on the screen of the terminal; if yes, determining that the terminal exists on the screen Attachment; if not, determining that there is no attachment on the screen of the terminal; determining whether the amount of light on the screen of the terminal detected by the light sensor is less than a second predetermined threshold; and determining that the proximity sensor is detecting if the value is less than the second predetermined threshold To the specified signal; wherein, in the case where the proximity sensor does not detect the designated signal, it is determined that there is an attachment on the screen of the terminal.
在本发明的一个实施例中,上述处理模块54还可以配置为在预定时间段内不处理位置区域和/或位移趋势方向或反方向上的触控事件;和/或降低位置区域和/或位移趋势方向或反方向上对触控事件的反应灵敏度。In an embodiment of the present invention, the processing module 54 may be further configured to not process the touch region in the location region and/or the displacement trend direction or the reverse direction for a predetermined period of time; and/or reduce the location region and/or the displacement. Sensitivity to touch events in the trend direction or in the opposite direction.
在本发明的一个实施例中,上述装置还可以包括:显示模块,与上述第一确定模块52连接,还配置为显示用于提示清理附着物和/或位置区域和/或位移趋势的提示信息。In an embodiment of the present invention, the apparatus may further include: a display module connected to the first determining module 52, and configured to display prompt information for prompting cleaning of attachments and/or location areas and/or displacement trends .
在本发明的一个实施例中,上述第一确定模块52,还配置为继续确定终端屏幕上是否还存在附着物;上述处理模块54,还配置为在确定结果为 终端屏幕上不存在附着物的情况下,恢复位置区域和/或位移趋势方向或反方向上的触控事件的上报操作。即上述第一确定模块52可以配置为确定上述附着物是否被清理完毕,在清理完毕的情况下,上述处理模块54可以恢复对应的触控事件的上报操作,即可以将触控恢复至正常状态。In an embodiment of the present invention, the first determining module 52 is further configured to continue to determine whether an attachment is still present on the screen of the terminal; the processing module 54 is further configured to determine that the result is In the case where there is no attachment on the screen of the terminal, the reporting operation of the touch event in the positional direction and/or the displacement trend direction or the reverse direction is restored. That is, the first determining module 52 can be configured to determine whether the attached object is cleaned. In the case that the cleaning is completed, the processing module 54 can resume the reporting operation of the corresponding touch event, that is, the touch can be restored to a normal state. .
在实际应用中,所述触控事件的处理装置中的各个单元所实现的功能,均可由位于触控事件的处理装置中的中央处理器(Central Processing Unit,CPU)、或微处理器(Micro Processor Unit,MPU)、或数字信号处理器(Digital Signal Processor,DSP)、或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。In a practical application, the functions implemented by each unit in the processing device of the touch event may be a central processing unit (CPU) or a microprocessor (Micro) located in the processing device of the touch event. Processor Unit (MPU), or Digital Signal Processor (DSP), or Field Programmable Gate Array (FPGA).
在本发明实施例中,还提供了一种触控事件的处理装置,图6是根据本发明实施例的触控事件的处理装置的结构框图二,如图6所示,该装置包括:压感模块62,配置为获取附着物作用于终端屏幕上垂直于终端屏幕的垂直压力值,以及判断垂直压力值是否小于第一预定阈值;压力变化模块64,与上述压感模块62连接,配置为检测终端屏幕上不同位置处的不同时刻垂直压力值的变化;区域划定模块66,与上述压感模块62连接,配置为根据压感模块62获取的垂直压力值确定附着物在终端屏幕上的位置区域;位移提示模块68,与上述压力变化模块64连接,配置为根据压力变化模块64检测的垂直压力值的变化确定附着物在终端屏幕上的位移趋势;处理模块610,与上述区域划定模块66和上述位移提示模块68连接,配置为禁止上报区域划定模块确定的位置区域和/或位移提示模块确定的位移趋势方向或反方向上的触控事件。In the embodiment of the present invention, a touch event processing device is also provided. FIG. 6 is a structural block diagram 2 of a touch event processing device according to an embodiment of the present invention. As shown in FIG. 6, the device includes: The sensing module 62 is configured to acquire a vertical pressure value of the attached object on the terminal screen perpendicular to the terminal screen, and determine whether the vertical pressure value is less than a first predetermined threshold; the pressure change module 64 is connected to the pressure sensing module 62, configured as Detecting changes in vertical pressure values at different times on the screen of the terminal; the area delimiting module 66 is connected to the pressure sensing module 62, and configured to determine the attachment on the screen of the terminal according to the vertical pressure value acquired by the pressure sensing module 62. a position indicating unit 68 is connected to the pressure changing module 64 and configured to determine a displacement tendency of the attached object on the screen of the terminal according to the change of the vertical pressure value detected by the pressure changing module 64. The processing module 610 defines the area The module 66 is connected to the displacement prompting module 68, and is configured to prohibit the location area and/or the displacement determined by the reporting area delineation module. The touch event determined by the module in the direction of the displacement trend or in the opposite direction.
需要说明的是,上述装置还可以包括:终端状态判断模块,与上述区域划定模块66和上述位移提示模块68连接,配置为判断终端是否接收到用于指示终端被锁屏的指令。It should be noted that the foregoing apparatus may further include: a terminal status determining module, connected to the area delimiting module 66 and the displacement prompting module 68, and configured to determine whether the terminal receives an instruction for indicating that the terminal is locked.
在实际应用中,所述触控事件的处理装置中的各个单元所实现的功能, 均可由位于触控事件的处理装置中的中央处理器(Central Processing Unit,CPU)、或微处理器(Micro Processor Unit,MPU)、或数字信号处理器(Digital Signal Processor,DSP)、或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。In practical applications, the functions implemented by each unit in the processing device of the touch event, The central processing unit (CPU), the microprocessor (Micro Processor Unit, MPU), or the digital signal processor (DSP), or the field can be used in the processing device of the touch event. Implementation of a Field Programmable Gate Array (FPGA).
在本发明实施例中,还提供了一种触控事件的处理装置,图7是根据本发明实施例的触控事件的处理装置的结构框图三,如图7所示,包括:压感模块72,配置为获取附着物作用于终端屏幕上垂直于终端屏幕的垂直压力值,以及判断垂直压力值是否小于第一预定阈值;摩擦力监测模块74,配置为检测附着物在终端屏幕上移动时产生的摩擦力;区域划定模块76,与上述压感模块72连接,配置为根据压感模块72获取的垂直压力值确定附着物在终端屏幕上的位置区域;位移提示模块78,与上述摩擦力监测模块74连接,配置为根据摩擦力监测模块74监测的摩擦力确定附着物在终端屏幕上的位移趋势;处理模块710,与上述区域划定模块76和位移提示模块78连接,配置为禁止上报区域划定模块确定的位置区域和/或位移提示模块确定的位移趋势方向或反方向上的触控事件。In the embodiment of the present invention, a touch event processing device is provided. FIG. 7 is a structural block diagram 3 of a touch event processing device according to an embodiment of the present invention. As shown in FIG. 7, the method includes: a pressure sensing module. 72, configured to acquire an approximating effect on a vertical pressure value perpendicular to the terminal screen on the terminal screen, and determine whether the vertical pressure value is less than a first predetermined threshold; the friction force monitoring module 74 is configured to detect when the attached object moves on the terminal screen The generated frictional force; the area demarcation module 76 is connected to the pressure sensing module 72, configured to determine the positional area of the attachment on the terminal screen according to the vertical pressure value acquired by the pressure sensing module 72; the displacement prompting module 78, and the friction The force monitoring module 74 is connected to be configured to determine the displacement tendency of the attached object on the terminal screen according to the frictional force monitored by the frictional force monitoring module 74. The processing module 710 is connected to the regional demarcation module 76 and the displacement prompting module 78, and is configured to be prohibited. The location area determined by the reporting area demarcation module and/or the touch trend direction determined by the displacement prompting module or the touch event in the reverse direction
需要说明的是,上述装置还可以包括:终端状态判断模块,与上述区域划定模块76和上述位移提示模块78连接,配置为判断终端是否接收到用于指示终端被锁屏的指令。It should be noted that the foregoing apparatus may further include: a terminal status determining module, connected to the area delimiting module 76 and the displacement prompting module 78, and configured to determine whether the terminal receives an instruction for indicating that the terminal is locked.
在实际应用中,所述触控事件的处理装置中的各个单元所实现的功能,均可由位于触控事件的处理装置中的中央处理器(Central Processing Unit,CPU)、或微处理器(Micro Processor Unit,MPU)、或数字信号处理器(Digital Signal Processor,DSP)、或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。In a practical application, the functions implemented by each unit in the processing device of the touch event may be a central processing unit (CPU) or a microprocessor (Micro) located in the processing device of the touch event. Processor Unit (MPU), or Digital Signal Processor (DSP), or Field Programmable Gate Array (FPGA).
在本实施例中,还提供了一种触控事件的处理装置,图8是根据本发 明实施例的触控事件的处理装置的结构框图四,如图8所示,包括:光感模块82,配置为获取终端屏幕上的光线数量,以及判断光线数量是否小于第二预定阈值;光线数量监测模块84,与上述光感模块82连接,配置为监测附着物在终端屏幕上移动时的光线数量变化;区域划定模块86,与上述光感模块82连接,配置为根据光感模块82监测的光线数量确定附着物在终端屏幕上的位置区域;位移提示模块88,与上述光线数量监测模块84连接,配置为根据光线数量监测模块84监测的光线数量变化确定附着物在终端屏幕上的位移趋势;处理模块810,与区域划定模块86和位移提示模块88连接,配置为禁止上报区域划定模块86确定的位置区域和/或位移提示模块88确定的位移趋势方向或反方向上的触控事件。In this embodiment, a processing device for a touch event is also provided, and FIG. 8 is according to the present invention. The block diagram of the processing device of the touch event of the embodiment is as shown in FIG. 8 , and includes: a light sensing module 82 configured to acquire the amount of light on the screen of the terminal, and determine whether the number of light is less than a second predetermined threshold; The quantity monitoring module 84 is connected to the light sensing module 82 and configured to monitor the change of the amount of light when the attached object moves on the terminal screen. The area demarcating module 86 is connected to the light sensing module 82 and configured to be based on the light sensing module 82. The number of the monitored light determines the location area of the attached object on the terminal screen; the displacement prompting module 88 is coupled to the light quantity monitoring module 84, and configured to determine the attached object on the terminal screen according to the change in the amount of light monitored by the light quantity monitoring module 84. The displacement module; the processing module 810 is connected to the area demarcation module 86 and the displacement prompting module 88, and is configured to prohibit the location area determined by the reporting area demarcation module 86 and/or the displacement trend direction or the reverse direction determined by the displacement prompting module 88. Control the incident.
在实际应用中,所述触控事件的处理装置中的各个单元所实现的功能,均可由位于触控事件的处理装置中的中央处理器(Central Processing Unit,CPU)、或微处理器(Micro Processor Unit,MPU)、或数字信号处理器(Digital Signal Processor,DSP)、或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。In a practical application, the functions implemented by each unit in the processing device of the touch event may be a central processing unit (CPU) or a microprocessor (Micro) located in the processing device of the touch event. Processor Unit (MPU), or Digital Signal Processor (DSP), or Field Programmable Gate Array (FPGA).
在本发明的一个实施例中,上述装置还可以包括:终端状态判断模块,与区域划定模块86和位移提示模块88连接配置为判断终端是否接收到用于指示终端被锁屏的指令。In an embodiment of the present invention, the apparatus may further include: a terminal status determining module, configured to connect with the area delimiting module 86 and the displacement prompting module 88 to determine whether the terminal receives an instruction for indicating that the terminal is locked.
在本发明实施例中,还提供了一种终端,包括:图5或图6或者图7或者图8所示的触控事件的处理装置。In the embodiment of the present invention, a terminal is further provided, including: the processing device of the touch event shown in FIG. 5 or FIG. 6 or FIG. 7 or FIG.
为了更好地理解本发明,以下结合优选实施例对本发明做进一步解释。In order to better understand the present invention, the present invention will be further explained in conjunction with the preferred embodiments.
图9是根据本发明优选实施例提供的触控事件的处理装置的示意图一,如图9所示,该装置包括:FIG. 9 is a first schematic diagram of a processing device for a touch event according to a preferred embodiment of the present invention. As shown in FIG. 9, the device includes:
压感模块:感知屏幕传递的压力,并判断压力强度是否达到指定的阈值; Pressure sensing module: sensing the pressure transmitted by the screen and determining whether the pressure intensity reaches a specified threshold;
压力变化监测模块:监测屏幕压力连续变化情况,用以获得屏幕平行方向的压力分量值;Pressure change monitoring module: monitoring the continuous change of screen pressure to obtain the pressure component value of the parallel direction of the screen;
手机状态判断模块:判断手机是否处于使用状态;The mobile phone state judging module: judging whether the mobile phone is in use state;
区域划定模块:根据垂直屏幕方向的压感值确定压感区域,进而确定污渍区域;The area demarcation module: determining the pressure sensitive area according to the pressure sense value of the vertical screen direction, thereby determining the stain area;
位移提示模块:根据压力变化监测模块的结果,判断指示该污渍的位移趋势,以便于用户擦拭;Displacement prompting module: judging the displacement trend indicating the stain according to the result of the pressure change monitoring module, so as to facilitate the user to wipe;
处理模块:重新定义该区域的触控事件上报规则,触摸时,芯片暂时不处理该区域的上报事件,或者,延迟处理该区域的上报事件,降低该区域的反应灵敏度。The processing module: redefines the touch event reporting rule in the area. When touched, the chip temporarily does not process the reporting event of the area, or delays processing the reporting event of the area, thereby reducing the reaction sensitivity of the area.
图10是根据本发明优选实施例提供的触控事件的处理装置的示意图二,如图10所示,该装置包括:FIG. 10 is a second schematic diagram of a processing device for a touch event according to a preferred embodiment of the present invention. As shown in FIG. 10, the device includes:
压感模块:感知屏幕传递的压力,并判断压力强度是否达到指定的阈值;Pressure sensing module: sensing the pressure transmitted by the screen and determining whether the pressure intensity reaches a specified threshold;
摩擦力监测模块:监测污渍在屏幕上位移时产生的摩擦力,用以获得屏幕平行方向的力分量值;Friction monitoring module: monitors the friction generated when the stain is displaced on the screen, and obtains the force component value of the parallel direction of the screen;
手机状态判断模块:判断手机是否处于使用状态;The mobile phone state judging module: judging whether the mobile phone is in use state;
区域划定模块:根据垂直屏幕方向的压感值确定压感区域,进而确定污渍区域;The area demarcation module: determining the pressure sensitive area according to the pressure sense value of the vertical screen direction, thereby determining the stain area;
位移提示模块:根据摩擦力变化监测模块的结果,判断指示该污渍的位移趋势,以便于用户擦拭;Displacement prompting module: judging the displacement trend indicating the stain according to the result of the frictional force monitoring module, so as to facilitate the user to wipe;
处理模块:重新定义该区域的触控事件上报规则,触摸时,芯片暂时不处理该区域的上报事件,或者,延迟处理该区域的上报事件,降低该区域的反应灵敏度。The processing module: redefines the touch event reporting rule in the area. When touched, the chip temporarily does not process the reporting event of the area, or delays processing the reporting event of the area, thereby reducing the reaction sensitivity of the area.
本实施例还提供了一种优选的触控事件的处理装置,该装置包括: The embodiment further provides a preferred touch event processing device, the device comprising:
光感模块:感知并且计算出屏幕的光线数量,并判断光线数量是否达到指定的阈值;Light sensing module: perceives and calculates the amount of light on the screen, and determines whether the number of light reaches a specified threshold;
光线数量监测模块:监测污渍在屏幕上位移时的光线数量变化,用以获得屏幕污渍的位移变化和大小面积等;Light quantity monitoring module: monitors the change of the amount of light when the stain is displaced on the screen, in order to obtain the displacement change and size area of the screen stain;
手机状态判断模块:判断手机是否处于使用状态;The mobile phone state judging module: judging whether the mobile phone is in use state;
区域划定模块:根据光线数量监测模块检测到的污渍区域,进而确定污渍区域;The area demarcation module: monitors the stain area detected by the module according to the quantity of light, thereby determining the stain area;
位移提示模块:根据光线数量监测模块的结果,判断指示该污渍的位移趋势,以便于用户擦拭;Displacement prompting module: judging the displacement trend indicating the stain according to the result of the light quantity monitoring module, so as to facilitate the user to wipe;
处理模块:重新定义该区域的触控事件上报规则,触摸时,芯片暂时不处理该区域的上报事件,或者,延迟处理该区域的上报事件,降低该区域的反应灵敏度。The processing module: redefines the touch event reporting rule in the area. When touched, the chip temporarily does not process the reporting event of the area, or delays processing the reporting event of the area, thereby reducing the reaction sensitivity of the area.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination. The forms are located in different processors.
实施例3Example 3
本发明的实施例还提供了一种计算机存储介质。本发明实施例中,在本实施例中,上述计算机存储介质可以被设置为存储用于执行实施例1中的方法的步骤的程序代码。Embodiments of the present invention also provide a computer storage medium. In the embodiment of the present invention, in the embodiment, the above computer storage medium may be set to store program code for executing the steps of the method in Embodiment 1.
本发明实施例中,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。In this embodiment, the storage medium may include, but is not limited to, a USB flash drive, a read-only memory (ROM), a random access memory (RAM), and a mobile hard disk. A variety of media that can store program code, such as a disk or a disc.
本发明实施例中,处理器根据存储介质中已存储的程序代码执行实施例1中的方法的步骤。 In the embodiment of the present invention, the processor executes the steps of the method in Embodiment 1 according to the stored program code in the storage medium.
本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
本发明实施例的技术方案,由于在确定了附着物在终端屏幕上的位置区域和/或位移趋势之后,禁止上报该位置区域和/或该位移趋势方向或反方向上的触控事件,进而使得在清除附着物的同时不会影响用户的应用使用,因此,可以解决相关技术中屏幕除去附着物的方案用户体验度差的问题,提高了用户的体验度。 In the technical solution of the embodiment of the present invention, after determining the location area and/or the displacement trend of the attachment on the screen of the terminal, it is prohibited to report the touch event in the location area and/or the displacement trend direction or the reverse direction, thereby making The user's application use is not affected while the attachment is removed. Therefore, the problem of poor user experience of the screen removal attachment in the related art can be solved, and the user experience is improved.
Claims (26)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610546886.9 | 2016-07-12 | ||
| CN201610546886.9A CN107608545A (en) | 2016-07-12 | 2016-07-12 | Processing method and processing device, the terminal of touch event |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018010349A1 true WO2018010349A1 (en) | 2018-01-18 |
Family
ID=60952281
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/105722 Ceased WO2018010349A1 (en) | 2016-07-12 | 2016-11-14 | Method of processing touch event, device, terminal, and computer storage medium |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN107608545A (en) |
| WO (1) | WO2018010349A1 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113076029A (en) * | 2021-03-31 | 2021-07-06 | 安徽华米信息科技有限公司 | Wearable device and control method thereof |
| CN115344462A (en) * | 2022-08-18 | 2022-11-15 | 深圳市欧瑞博科技股份有限公司 | Mirror surface water mist detection method and device based on capacitive screen and storage medium |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111026300B (en) * | 2019-11-19 | 2021-04-02 | 维沃移动通信有限公司 | A screen display method and electronic device |
| CN116061844A (en) * | 2023-01-16 | 2023-05-05 | 长城汽车股份有限公司 | Vehicle screen cleaning method, device and equipment and vehicle |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010165174A (en) * | 2009-01-15 | 2010-07-29 | Fujifilm Corp | Display device |
| CN103105975A (en) * | 2013-02-26 | 2013-05-15 | 华为终端有限公司 | Touch identification method and device |
| CN103164088A (en) * | 2011-12-14 | 2013-06-19 | 中兴通讯股份有限公司 | Method and device of response of capacitive touch screen |
| CN103826010A (en) * | 2014-03-04 | 2014-05-28 | 青岛科讯通电子科技有限公司 | Method for using screen locking technology during video watching on android smartphone |
| CN105739760A (en) * | 2016-01-22 | 2016-07-06 | 北京小米移动软件有限公司 | Control method and device for anti-false touch mode |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2001079981A1 (en) * | 2000-04-14 | 2001-10-25 | Fujitsu Limited | Optical position sensor and recorded medium |
| CN102235981A (en) * | 2010-04-28 | 2011-11-09 | 宏碁股份有限公司 | Optical touch sensing system, optical touch screen system and dust detection method |
| CN103049159B (en) * | 2013-01-14 | 2015-07-01 | 成都西可科技有限公司 | Method for preventing water drop false triggering of capacitive touch screen |
| CN103324373B (en) * | 2013-06-14 | 2016-04-06 | 广东欧珀移动通信有限公司 | A kind of method preventing conducting liquid from causing touch-screen misoperation |
| CN103645822B (en) * | 2013-12-24 | 2016-05-04 | 上海华勤通讯技术有限公司 | The foreign matter detecting method of touch-screen and touch-screen |
-
2016
- 2016-07-12 CN CN201610546886.9A patent/CN107608545A/en active Pending
- 2016-11-14 WO PCT/CN2016/105722 patent/WO2018010349A1/en not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010165174A (en) * | 2009-01-15 | 2010-07-29 | Fujifilm Corp | Display device |
| CN103164088A (en) * | 2011-12-14 | 2013-06-19 | 中兴通讯股份有限公司 | Method and device of response of capacitive touch screen |
| CN103105975A (en) * | 2013-02-26 | 2013-05-15 | 华为终端有限公司 | Touch identification method and device |
| CN103826010A (en) * | 2014-03-04 | 2014-05-28 | 青岛科讯通电子科技有限公司 | Method for using screen locking technology during video watching on android smartphone |
| CN105739760A (en) * | 2016-01-22 | 2016-07-06 | 北京小米移动软件有限公司 | Control method and device for anti-false touch mode |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113076029A (en) * | 2021-03-31 | 2021-07-06 | 安徽华米信息科技有限公司 | Wearable device and control method thereof |
| CN113076029B (en) * | 2021-03-31 | 2023-01-24 | 安徽华米信息科技有限公司 | Wearable device and control method thereof |
| CN115344462A (en) * | 2022-08-18 | 2022-11-15 | 深圳市欧瑞博科技股份有限公司 | Mirror surface water mist detection method and device based on capacitive screen and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107608545A (en) | 2018-01-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9720502B2 (en) | Electronic device and method for controlling vibration of electronic device | |
| WO2018018415A1 (en) | Method for determining wearing state of wearable device and wearable device | |
| CN107544842B (en) | Application processing method and apparatus, computer equipment, storage medium | |
| CN106293803B (en) | Application program control method and device | |
| EP3239846B1 (en) | Method and device for cleaning memory, and electronic device | |
| WO2018010349A1 (en) | Method of processing touch event, device, terminal, and computer storage medium | |
| CN108681498B (en) | CPU occupancy rate monitoring method and device and mobile terminal | |
| WO2016045579A1 (en) | Application interaction control method and apparatus, and terminal | |
| CN104202483A (en) | Display screen switch controller of mobile terminal | |
| CN103702155A (en) | TV control method and device | |
| CN105635449A (en) | Alarm clock control method and mobile terminal | |
| JP2014514628A (en) | Display management method and apparatus | |
| CN106685752A (en) | Information processing method and terminal | |
| CN106485117A (en) | A kind of intelligent terminal method of controlling operation thereof based on recognition of face and system | |
| CN105528155A (en) | Alarm reminder control method, device and terminal equipment | |
| CN106210332A (en) | Control method and control device | |
| CN109062402A (en) | Underwater photographing method based on wearable device and wearable device | |
| CN109002216B (en) | Touch screen repairing method and device and electronic equipment | |
| JP6132925B2 (en) | Information processing apparatus, information processing method, program, and information storage medium | |
| CN107491349B (en) | Application processing method and apparatus, computer equipment, storage medium | |
| CN106507192A (en) | A TV shutdown control method and system based on human eye recognition | |
| CN105302278A (en) | Fingerprint sensor serial peripheral interface control method and device and mobile terminal | |
| WO2016065746A1 (en) | Terminal device wakeup method and apparatus and storage medium | |
| CN111045540A (en) | Screen touch response method, device, equipment and computer readable medium | |
| CN112351482B (en) | Method and device for automatically controlling terminal dormancy and computer readable storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16908673 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16908673 Country of ref document: EP Kind code of ref document: A1 |