CN108427534B - Method and device for controlling screen to return to desktop - Google Patents

Method and device for controlling screen to return to desktop Download PDF

Info

Publication number
CN108427534B
CN108427534B CN201810246001.2A CN201810246001A CN108427534B CN 108427534 B CN108427534 B CN 108427534B CN 201810246001 A CN201810246001 A CN 201810246001A CN 108427534 B CN108427534 B CN 108427534B
Authority
CN
China
Prior art keywords
information
floating touch
floating
screen
preset
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.)
Active
Application number
CN201810246001.2A
Other languages
Chinese (zh)
Other versions
CN108427534A (en
Inventor
林行
杜頔康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Hard Shell Technology Co ltd
Original Assignee
Beijing Hard Shell Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Hard Shell Technology Co ltd filed Critical Beijing Hard Shell Technology Co ltd
Priority to CN201810246001.2A priority Critical patent/CN108427534B/en
Publication of CN108427534A publication Critical patent/CN108427534A/en
Application granted granted Critical
Publication of CN108427534B publication Critical patent/CN108427534B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The application relates to a method and a device for controlling a screen to return to a desktop, wherein the method for controlling the screen to return to the desktop is applied to a first device with a touch panel and comprises the following steps: acquiring floating touch information corresponding to the floating touch operation sensed by the touch panel; judging whether the floating touch information meets preset gesture information or not; and if the floating touch information meets the preset gesture information, generating a return instruction for controlling the screen to return to the desktop. According to the method and the device, whether the suspension touch information corresponding to the suspension touch operation executed by the user on the touch panel meets the preset gesture information or not is detected, whether the suspension touch operation executed by the user returns a desktop gesture for a preset screen or not is judged, so that the control of returning the desktop to the screen can be realized based on the suspension touch operation, the limitation of returning the desktop to the contact screen is avoided, and the use by the user is facilitated.

Description

Method and device for controlling screen to return to desktop
Technical Field
The application belongs to the technical field of communication, and particularly relates to a method and a device for controlling a screen to return to a desktop.
Background
At present, with the popularization of touch screens, more and more intelligent electronic devices such as mobile phones, computers, televisions and the like adopt touch screens. Touch screens provide a user interface in these intelligent electronic devices through which a user can interact with the device. The touch screen detects and responds to contacts on the touch screen. People often control the screen to return to the desktop through touch information input, including entering a character-based password, a specially shaped dot-dash line, or fingerprint information.
However, the touch screen return to the desktop mode adopted in the related art requires the user's finger to directly contact the touch screen, but the user's finger may not conveniently contact the touch screen directly in some scenes, such as scenes in which the user needs to wear gloves. Therefore, the touch screen returning to the desktop mode adopted in the related art has certain limitations.
Disclosure of Invention
To overcome, at least in part, the problems in the related art, the present application provides a method and apparatus for controlling a screen to return to a desktop.
According to a first aspect of embodiments of the present application, there is provided a method for controlling a screen to return to a desktop, which is applied to a first device having a touch panel, and includes: acquiring floating touch information corresponding to the floating touch operation sensed by the touch panel; judging whether the floating touch information meets preset gesture information or not; and if the floating touch information meets the preset gesture information, generating a return instruction for controlling the screen to return to the desktop.
Further, the preset gesture information is converted from first state information to second state information within a preset time period; the first state information is information corresponding to the finger opening state, and the second state information is information corresponding to the finger pinching state.
Further, the determining whether the floating touch information satisfies the predetermined gesture information includes:
judging whether the floating touch information is the first state information;
when the floating touch information is the first state information, continuously acquiring the floating touch information, and judging whether the floating touch information changes to the second state information within the preset time period;
and when the floating touch information is changed within the preset time period and the changed floating touch information is the second state information, judging that the floating touch information meets the preset gesture information.
Further, the floating touch information includes: the number of the floating touch points, the relative distance between the floating touch points and the area of the floating touch points;
if the number of the floating touch points is multiple and the relative distance between the floating touch points is greater than a preset distance threshold, determining that the floating touch information is first state information;
the determining whether the floating touch information changes within the preset time period and becomes the second state information includes:
and if the number of the floating touch points is changed from a plurality of the floating touch points to one in the preset time period and the area of the floating touch points is larger than a preset area threshold value, determining that the floating touch information is changed in the preset time period and changed into the second state information.
Further, the floating touch information includes: the number of the floating touch points and the relative distance between the floating touch points;
the determining whether the floating touch information is the first state information includes:
if the number of the floating touch points is multiple and the relative distance between the floating touch points is greater than a preset first distance threshold, determining that the floating touch information is first state information;
the determining whether the floating touch information changes within the preset time period and becomes the second state information includes:
and if the number of the floating touch points is not changed in the preset time period, the relative distance between the floating touch points is reduced, and the reduced relative distance is smaller than a preset second distance threshold, determining that the floating touch information is changed and changed into the second state information in the preset time period.
Further, after generating the return instruction, the method further comprises:
if the screen is the screen of the first equipment, directly executing the return instruction;
alternatively, the first and second electrodes may be,
and if the screen is the screen of a second device connected with the first device, sending the return instruction to the second device, so that the second device controls the screen to return to the desktop of the second device after receiving the return instruction.
According to a second aspect of the embodiments of the present application, there is provided an apparatus for controlling a screen to return to a desktop, applied to a first device having a touch panel, including: the acquisition module is used for acquiring floating touch information corresponding to the floating touch operation sensed by the touch panel; the judging module is used for judging whether the floating touch information meets the preset gesture information; and the return instruction generating module is used for generating a return instruction for controlling the screen to return to the desktop when the floating touch information meets the preset gesture information.
Further, the preset gesture information is converted from first state information to second state information within a preset time period; the first state information is information corresponding to the finger opening state, and the second state information is information corresponding to the finger pinching state.
Further, to implement the determining whether the hover touch information satisfies the predetermined gesture information, the determining module is configured to:
judging whether the floating touch information is the first state information;
if the floating touch information is the first state information, judging whether the floating touch information is changed and changed into the second state information within a preset time period;
and if the floating touch information is changed in the preset time period and the changed floating touch information is the second state information, judging that the floating touch information meets the preset gesture information.
Further, the screen includes: the screen display device includes a screen of a first device having a touch panel, or a screen of a second device connected to the first device.
When the screen is a screen of the first device having a touch panel, the first device may further include: and the desktop returning response module is used for executing the returning instruction so as to return the screen of the first equipment to the desktop of the first equipment.
When the target screen is a screen of a second device connected to the first device, the first device may further include: and the communication module is used for sending a return instruction to the second equipment so that the second equipment controls the screen of the second equipment to return to the desktop of the second equipment according to the return instruction.
Further, if the screen is a screen of a second device connected to the first device, the apparatus further includes: a connection module, configured to establish a connection with the second device, so as to send the return instruction through the connection, where the connection includes: a wireless connection or a wired connection.
According to a third aspect of embodiments of the present application, there is provided a control apparatus including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: acquiring floating touch information; judging whether the floating touch information meets preset gesture information or not; and if the floating touch information meets the preset gesture information, generating a return instruction for controlling the screen to return to the desktop.
Further, the preset gesture information is converted from first state information to second state information within a preset time period; the first state information is information corresponding to the finger opening state, and the second state information is information corresponding to the finger pinching state.
Further, the determining whether the floating touch information satisfies the predetermined gesture information includes:
judging whether the floating touch information is the first state information;
when the floating touch information is detected to be the first state information, continuously acquiring the floating touch information, and judging whether the floating touch information changes to the second state information within the preset time period;
and when the floating touch information is changed within the preset time period and the changed floating touch information is the second state information, judging that the floating touch information meets the preset gesture information.
Further, the floating touch information includes: the number of the floating touch points, the relative distance between the floating touch points and the area of the floating touch points;
if the number of the floating touch points is multiple and the relative distance between the floating touch points is greater than a preset distance threshold, determining that the floating touch information is first state information;
the determining whether the floating touch information changes within the preset time period and becomes the second state information includes:
and if the number of the floating touch points is changed from a plurality of the floating touch points to one in the preset time period and the area of the floating touch points is larger than a preset area threshold value, determining that the floating touch information is changed in the preset time period and changed into the second state information.
Further, the floating touch information includes: the number of the floating touch points and the relative distance between the floating touch points;
the determining whether the floating touch information is the first state information includes:
if the number of the floating touch points is multiple and the relative distance between the floating touch points is greater than a preset first distance threshold, determining that the floating touch information is first state information;
the determining whether the floating touch information changes within the preset time period and becomes the second state information includes:
and if the number of the floating touch points is not changed in the preset time period, the relative distance between the floating touch points is reduced, and the reduced relative distance is smaller than a preset second distance threshold, determining that the floating touch information is changed and changed into the second state information in the preset time period.
Further, the screen includes: the screen display device includes a screen of a first device having a touch panel, or a screen of a second device connected to the first device.
When the screen is a screen of the first device having a touch panel, the first device may further include: and the desktop returning response module is used for executing the returning instruction so as to return the screen of the first equipment to the desktop of the first equipment.
When the target screen is a screen of a second device connected to the first device, the first device may further include: and the communication module is used for sending a return instruction to the second equipment so that the second equipment controls the screen of the second equipment to return to the desktop of the second equipment according to the return instruction.
Further, if the screen is a screen of a second device connected to the first device, the apparatus further includes: a connection module, configured to establish a connection with the second device, so as to send the return instruction through the connection, where the connection includes: a wireless connection or a wired connection.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
whether the suspension touch information corresponding to the suspension touch operation executed by the user on the touch panel meets the preset gesture information is detected, so that whether the suspension touch operation executed by the user is a preset screen return desktop gesture is judged, the control of returning the screen to the desktop based on the suspension touch operation can be realized, the limitation of returning the contact type screen to the desktop is avoided, and the use by the user is facilitated.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
FIG. 1 is a diagram illustrating a method of controlling screen return to a desktop in accordance with an exemplary embodiment.
Fig. 2 is a flowchart illustrating a method for controlling a screen to return to a desktop according to an exemplary embodiment, where whether hover touch information satisfies predetermined gesture information is determined.
FIG. 3 is an illustration of another method of controlling a screen to return to a desktop, in accordance with an exemplary embodiment.
FIG. 4 illustrates an apparatus for controlling screen return to a desktop, according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
FIG. 1 is a diagram illustrating a method of controlling screen return to a desktop in accordance with an exemplary embodiment. This embodiment is explained by taking an example of execution on the control apparatus side. The method for controlling the screen to return to the desktop is applied to first equipment with a touch panel, and comprises the following steps:
and S11, acquiring floating touch information corresponding to the floating touch operation sensed by the touch panel.
And S12, judging whether the floating touch information meets the preset gesture information.
And S13, if the floating touch information meets the preset gesture information, generating a return instruction for controlling the screen to return to the desktop.
In step S11, a touch panel is disposed on the first device, and a user performs a floating touch operation on the touch panel, so that the touch panel senses the floating touch operation, thereby generating floating touch information describing the floating touch operation.
Specifically, the touch panel may adopt a capacitive touch screen or a capacitive touch pad, and the capacitive touch screen or the capacitive touch pad may be wired in such a manner that the capacitive touch screen or the capacitive touch pad can sense a signal of direct touch and can also sense a capacitive signal within a certain height (e.g., 1-2 cm) above the surface of the capacitive touch screen. The first equipment determines coordinate information of the floating touch point on the touch panel according to the sensed capacitance signal; furthermore, the number of the floating touch points, the area of each floating touch point, the relative distance between different floating touch points and other information can be determined according to the coordinate information; according to actual needs, the floating touch information may include one or more of the above information, which collectively describe the floating touch operation of the user on the touch panel.
In step S12, the predetermined gesture information is floating touch information corresponding to a preset gesture (or floating touch operation) for returning the screen to the desktop.
In the step S13, since the floating touch information corresponding to different gestures (i.e., different floating touch operations) is necessarily different, it is determined whether the currently detected floating touch information is the floating touch information corresponding to the gesture of the preset screen returning to the desktop (i.e., the predetermined gesture information) by analyzing and judging the currently detected floating touch information; if the floating touch information meets the preset gesture information, which indicates that the floating touch operation performed by the user is a preset gesture of returning the screen to the desktop, it may be determined that a return instruction should be generated to control the screen to return to the desktop.
In the embodiment, whether the floating touch information of the user on the touch panel meets the preset gesture information is detected, and when the preset gesture information is met, the return instruction for controlling the screen to return to the desktop is generated, so that the screen can return to the desktop by adopting the floating touch operation, the limitation of returning the contact type screen to the desktop is avoided, and the use by the user is more convenient.
In one possible embodiment of the invention, a dynamic gesture of changing a finger from an open state to a pinch state can be used as a gesture of returning the screen to the desktop; then, the predetermined gesture information may be information converted from a first state information to a second state information within a preset time period, where the first state information is information corresponding to an open state of the finger, and the second state information is information corresponding to a pinch state of the finger.
Based on the predetermined gesture information, step S12 actually determines that: whether the floating touch information is converted from first state information to second state information within a preset time period or not is determined. Specifically, in some embodiments, as shown in fig. 2, step S12 may include:
s121, judging whether the floating touch information is first state information;
s122, if the floating touch information is the first state information, continuously acquiring the floating touch information, and judging whether the floating touch information changes in a preset time period and becomes second state information;
and S123, if the floating touch information is changed within the preset time period and the changed floating touch information is the second state information, judging that the floating touch information meets the preset gesture information.
In this embodiment, when it is detected that the floating touch information is converted from the first state information corresponding to the finger open state to the second state information corresponding to the finger pinch state within the preset time period, it is indicated that the floating touch operation performed by the user is that the finger is changed from the open state to the pinch state, and the gesture is the same as the preset gesture for returning the screen to the desktop, so that a return instruction is generated to control the screen to return to the desktop. Of course, in other embodiments, other gestures may also be used as the gesture for returning the screen to the desktop, and the floating touch information corresponding to the gesture may be used as the predetermined gesture information to determine whether to generate a return instruction, i.e., whether to control the screen to return to the desktop.
In describing how to implement the above steps S121 to S123 (i.e., how to determine whether the floating touch information is the first state information and is changed into the second state information) in the embodiment of the present invention, it is necessary to briefly describe the floating touch technology first.
Based on the floating touch technology, there are various types of floating touch information (including the aforementioned coordinate information, the number of floating touch points, the area of each floating touch point, the relative distance between different floating touch points, etc.) that can be detected. However, in view of the different detection accuracy of the floating touch by different devices, the obtained floating touch information is also different.
Taking four-finger touch as an example (in other embodiments, the control of returning the screen to the desktop can also be realized by three fingers, five fingers, and the like), when the four fingers of the user are opened and in a suspension state, 3 to 4 lowest points can be read, that is, 3 to 4 floating touch points can be detected at the time. When a user pinches the four fingers together, 3-4 floating touch points can still be detected for equipment with high detection precision; for a device with low detection precision, only one floating touch point is generally detected, that is, the floating touch points corresponding to the four fingers are gathered together in a pinch state, the device with low detection precision cannot accurately distinguish the floating touch points, and only the floating touch points can be integrally regarded as one floating touch point, but the area of the floating touch point is larger than that of the real floating touch point (the area of the capacitance change area caused by the four fingers is larger than that of the capacitance change area caused by one finger).
According to the above analysis, in a possible embodiment, for a device with low detection accuracy, the steps S121 to S123 may be implemented according to the number of floating touch points, the relative distance between the floating touch points, and the area of the floating touch points, which are as follows:
in step S121, if the number of the floating touch points in the floating touch information is multiple, further determining whether a relative distance between the floating touch points is greater than a preset distance threshold; if the relative distance between the floating touch points is greater than the preset distance threshold, it is determined that the floating touch information is the first state information, and the step S122 is continuously executed.
In step S122, it is continuously determined whether the number of the floating touch points in the floating touch information changes from one to multiple within a preset time period, if the number of the floating touch points in the floating touch information changes from one to multiple within the preset time period, it is further determined whether the area of the floating touch points is greater than a preset area threshold, and if the area of the floating touch points is greater than the preset area threshold, it is determined that the floating touch information changes within the preset time period and changes into the second state information, and it may be determined in step S123 that the floating touch information satisfies predetermined gesture information; otherwise, determining that the floating touch information is invalid information, returning to step S121, and re-determining whether the subsequently generated floating touch information meets the predetermined gesture information.
In this embodiment, the preset area threshold is an area of a floating touch point formed when a single finger touches; under the condition that the number of the floating touch points in the floating touch information is multiple, the relative distance between the floating touch points is further judged to be larger than a preset distance threshold value, so that the plurality of floating touch points are formed by opening a plurality of fingers, and the floating touch information can be determined to be first state information; changing the number of the floating touch points in the floating touch information from multiple to one in a preset time period, wherein the area of the floating touch points is larger than a preset area threshold value, so that the plurality of fingers are changed from an open state to a pinch state, the floating touch information can be determined to be changed in the preset time period and changed into the second state information, the floating touch information finally obtained meets preset gesture information, and a return instruction is generated to control the screen to return to the desktop; according to the method and the device, the screen can be returned to the desktop by adopting the suspension touch information, so that the limitation of returning the contact screen to the desktop is avoided, and the use by a user is more convenient.
In another possible embodiment, for a device with high detection accuracy, the steps S121 to S123 may be implemented according to the number of floating touch points and the relative distance between different floating touch points, which is specifically as follows:
in step S121, if the number of the floating touch points in the floating touch information is multiple, further determining whether a relative distance between the floating touch points is greater than a preset first distance threshold; if the relative distance between the floating touch position points is greater than a preset first distance threshold, determining that the floating touch information is first state information, and continuing to execute step S122.
In step S122, it is continuously determined whether the number of the floating touch points is unchanged within the preset time period, if the number of the floating touch points is unchanged within the preset time period, it is continuously determined whether the relative distance between the floating touch points in the floating touch information is decreased within the preset time period and the decreased relative distance is smaller than a preset second distance threshold, if the relative distance between the floating touch points is decreased within the preset time period and the decreased relative distance is smaller than the preset second distance threshold, it is determined that the floating touch information is changed and changed into the second state information within the preset time period, and it may be determined in step S123 that the floating touch information satisfies predetermined gesture information; otherwise, determining that the floating touch information is invalid information, returning to step S121, and re-determining whether the subsequently generated floating touch information meets the predetermined gesture information.
In this embodiment, the first distance threshold is greater than or equal to the second distance threshold, and may be specifically set according to the actual application requirement; for example, the first distance threshold may be set to 3cm, the second distance threshold may be set to 1cm, or both the first distance threshold and the second distance threshold may be set to 2 cm. Under the condition that the number of the floating touch points in the floating touch information is multiple, further judging that the relative distance between the floating touch points is greater than a preset first distance threshold value, and showing that the finger distance corresponding to each floating touch point is relatively long, the finger can be regarded as an open state, so that the floating touch information can be determined to be first state information; the number of the floating touch points is unchanged in the preset time period, the relative distance between the floating touch points is reduced, and the reduced relative distance is smaller than a preset second distance threshold value, which shows that the finger distance corresponding to each floating touch point is reduced, and the fingers can be regarded as a plurality of fingers changing from an open state to a pinch state, so that the floating touch information can be determined to change in the preset time period and become the second state information, the floating touch information finally obtained meets the preset gesture information, and a return instruction is generated to control the screen to return to the desktop; according to the method and the device, the screen can be returned to the desktop by adopting the suspension touch information, so that the limitation of returning the contact screen to the desktop is avoided, and the use by a user is more convenient.
In this embodiment of the present invention, after the return instruction is generated, the method for returning the control screen to the desktop further includes:
if the screen is the screen of the first equipment, directly executing the return instruction;
alternatively, the first and second electrodes may be,
and if the screen is the screen of a second device connected with the first device, sending the return instruction to the second device, so that the second device controls the screen to return to the desktop of the second device after receiving the return instruction.
In this embodiment, whether the floating touch information corresponding to the floating touch operation performed by the user on the touch panel meets the predetermined gesture information is detected to determine whether the floating touch operation performed by the user is a preset screen return desktop gesture, and when the floating touch operation performed by the user is the preset screen return desktop gesture, a return instruction for controlling the screen to return to the desktop is generated.
FIG. 3 is an illustration of another method of controlling a screen to return to a desktop, in accordance with an exemplary embodiment. As shown in fig. 3, this embodiment is directed to an application scenario in which the screen is a screen of the second device, and the screen of the second device is controlled by the first device to return to the desktop, and includes the following steps:
and S21, the first device establishes connection with the second device.
The connection may be a wired connection, such as a cable or an optical fiber connection, or a wireless connection, such as a wifi connection or a bluetooth connection, or a cellular mobile communication (e.g. 3G/4G) connection.
And S22, the user performs a floating touch operation on the touch panel of the first device.
The touch panel is disposed on the first device, and the touch panel is, for example, a capacitive touch screen or a capacitive touch pad.
And S23, the first equipment senses the floating touch operation through the touch panel and generates corresponding floating touch information.
The touch panel adopts a capacitive touch screen or a capacitive touch pad, and the capacitive touch screen or the capacitive touch pad can sense a signal directly touched by the capacitive touch screen or the capacitive touch pad in a wiring mode and can also sense a capacitive signal 1-2 cm above the surface of the capacitive touch screen or the capacitive touch pad. The first device converts the sensed capacitance signal into floating touch information, such as coordinate information of floating touch points, the number of the floating touch points, relative distances between the floating touch points, and areas of the floating touch points.
And S24, the first equipment judges whether the floating touch information meets the preset gesture information.
In this embodiment, the step S24 can be implemented by referring to the step S12, which is not described herein again.
And S25, if the floating touch information meets the preset gesture information, the first device generates a return instruction for controlling the screen of the second device to return to the desktop, and sends the return instruction to the second device so that the screen of the second device returns to the desktop of the second device.
And if the floating touch information meets the preset gesture information, the floating touch operation executed by the user is a preset gesture of returning the screen to the desktop, the first device generates a return instruction and sends the return instruction to the second device.
And S26, the second device controls the screen of the second device to return to the desktop of the second device according to the received return instruction.
It is understood that what is not described in detail in this embodiment may be referred to in other embodiments and will not be described in detail here.
In this embodiment, when detecting that the floating touch information corresponding to the floating touch operation performed by the user meets the predetermined gesture information, the first device generates a return instruction and sends the return instruction to the second device, and the second device receives the return instruction and then controls the screen to return to the desktop.
FIG. 4 illustrates an apparatus for controlling screen return to a desktop, according to an exemplary embodiment. As shown in fig. 4, the apparatus for controlling a screen to return to a desktop is applied to a first device having a touch panel, and includes: the device comprises an acquisition module 1, a judgment module 2 and a return instruction generation module 3.
The acquisition module 1 is used for acquiring floating touch information corresponding to a floating touch operation sensed by the touch panel; the judging module 2 is used for judging whether the floating touch information meets the preset gesture information; the return instruction generating module 3 is configured to generate a return instruction for controlling the screen to return to the desktop when the floating touch information meets the predetermined gesture information.
In some embodiments, the predetermined gesture information is converted from first state information to second state information within a preset time period; the first state information is information corresponding to the finger opening state, and the second state information is information corresponding to the finger pinching state.
Based on the predetermined gesture information, to determine whether the floating touch information satisfies the predetermined gesture information, the determining module 2 is specifically configured to:
judging whether the floating touch information is the first state information;
when the floating touch information is the first state information, continuously acquiring the floating touch information, and judging whether the floating touch information changes to the second state information within the preset time period;
and when the floating touch information is changed within the preset time period and the changed floating touch information is the second state information, judging that the floating touch information meets the preset gesture information.
In this embodiment, when it is detected that the floating touch information is converted from the first state information corresponding to the finger open state to the second state information corresponding to the finger pinch state within the preset time period, it is indicated that the floating touch operation performed by the user is that the finger is changed from the open state to the pinch state, and the gesture is the same as the preset gesture for returning the screen to the desktop, so that a return instruction is generated to control the screen to return to the desktop. Of course, in other embodiments, other gestures may also be used as the gesture for returning the screen to the desktop, and the floating touch information corresponding to the gesture may be used as the predetermined gesture information to determine whether to generate a return instruction, i.e., whether to control the screen to return to the desktop.
In some embodiments, the touch panel includes: capacitive touch screens or capacitive touch pads.
In some embodiments, the obtaining module 1 is specifically configured to: acquiring a capacitance value generated by a finger of a user on a touch panel; and determining the number of the floating touch points, the relative distance between the floating touch points, the area of the floating touch points and other floating touch information according to the capacitance value.
In one embodiment, for a device with low detection accuracy, the determining module 2 may be configured to:
if the number of the floating touch points in the floating touch information is multiple, further judging whether the relative distance between the floating touch points is larger than a preset distance threshold value; if the relative distance between the floating touch points is larger than a preset distance threshold, determining that the floating touch information is first state information;
after determining that the floating touch information is first state information, continuously judging whether the number of the floating touch points in the floating touch information is changed from multiple to one within a preset time period, if the number of the floating touch points in the floating touch information is changed from multiple to one within the preset time period, further judging whether the area of the floating touch points is larger than a preset area threshold, if the area of the floating touch points is larger than the preset area threshold, determining that the floating touch information is changed within the preset time period and changed into second state information, and further judging that the floating touch information meets preset gesture information; and if not, determining that the floating touch information is invalid information, and judging whether the subsequently generated floating touch information meets the preset gesture information again.
In another embodiment, for a device with high detection accuracy, the determining module 2 may be configured to:
if the number of the floating touch points in the floating touch information is multiple, further judging whether the relative distance between the floating touch points is larger than a preset first distance threshold value; if the relative distance between the floating touch position points is larger than a preset first distance threshold, determining that the floating touch information is first state information;
after determining that the floating touch information is first state information, continuously judging whether the number of the floating touch points is unchanged in the preset time period, if so, continuously judging whether the relative distance between the floating touch points in the floating touch information is reduced in the preset time period and whether the reduced relative distance is smaller than a preset second distance threshold, if the relative distance between the floating touch points is reduced in the preset time period and the reduced relative distance is smaller than the preset second distance threshold, determining that the floating touch information is changed and changed into second state information in the preset time period, and further determining that the floating touch information meets preset gesture information; and if not, determining that the floating touch information is invalid information, and judging whether the subsequently generated floating touch information meets the preset gesture information again.
In some embodiments, the screen comprises: the screen display device includes a screen of a first device having a touch panel, or a screen of a second device connected to the first device.
When the screen is a screen of the first device having a touch panel, the first device may further include: and the desktop returning response module is used for executing the returning instruction so as to return the screen of the first equipment to the desktop of the first equipment.
When the target screen is a screen of a second device connected to the first device, the first device may further include: and the communication module is used for sending a return instruction to the second equipment so that the second equipment controls the screen of the second equipment to return to the desktop of the second equipment according to the return instruction.
In some embodiments, the communication module may be a wired communication module, and the return instruction is sent to the second device in a wired manner; in some embodiments, the communication module may also be a wireless communication module, and wirelessly transmits the return instruction to the second device.
In this embodiment, whether the floating touch information corresponding to the floating touch operation performed by the user on the touch panel meets the predetermined gesture information is detected to determine whether the floating touch operation performed by the user is a preset gesture for returning the screen to the desktop, and when the floating touch operation performed by the user meets the preset gesture for returning the screen to the desktop, a return instruction for controlling the screen to return to the desktop is generated, so that the control for returning the screen to the desktop can be realized based on the floating touch operation, the limitation of returning the contact screen to the desktop is avoided, and the use by the user is facilitated.
The present application also provides a non-transitory computer readable storage medium, wherein instructions in the storage medium, when executed by a processor of a first device, cause the first device to perform the method for screen-returning to a desktop, the method for screen-returning to a desktop comprising: acquiring floating touch information corresponding to the floating touch operation sensed by the touch panel; judging whether the floating touch information meets preset gesture information or not; and if the floating touch information meets the preset gesture information, generating a return instruction for controlling the screen to return to the desktop.
Further, the preset gesture information is converted from first state information to second state information within a preset time period; the first state information is information corresponding to the finger opening state, and the second state information is information corresponding to the finger pinching state.
Further, the determining whether the floating touch information satisfies the predetermined gesture information includes:
judging whether the floating touch information is the first state information;
when the floating touch information is the first state information, continuously acquiring the floating touch information, and judging whether the floating touch information changes to the second state information within the preset time period;
and when the floating touch information is changed within the preset time period and the changed floating touch information is the second state information, judging that the floating touch information meets the preset gesture information.
Further, the floating touch information includes: the number of the floating touch points, the relative distance between the floating touch points and the area of the floating touch points;
if the number of the floating touch points is multiple and the relative distance between the floating touch points is greater than a preset distance threshold, determining that the floating touch information is first state information;
the determining whether the floating touch information changes within the preset time period and becomes the second state information includes:
and if the number of the floating touch points is changed from a plurality of the floating touch points to one in the preset time period and the area of the floating touch points is larger than a preset area threshold value, determining that the floating touch information is changed in the preset time period and changed into the second state information.
Further, the floating touch information includes: the number of the floating touch points and the relative distance between the floating touch points;
the determining whether the floating touch information is the first state information includes:
if the number of the floating touch points is multiple and the relative distance between the floating touch points is greater than a preset first distance threshold, determining that the floating touch information is first state information;
the determining whether the floating touch information changes within the preset time period and becomes the second state information includes:
and if the number of the floating touch points is still multiple in the preset time period, and the relative distance between the floating touch points is reduced and the reduced relative distance is smaller than a preset second distance threshold, determining that the floating touch information is changed and changed into the second state information in the preset time period.
Further, the touch panel includes: capacitive touch screens or capacitive touch pads.
Further, the acquiring floating touch information corresponding to the floating touch operation sensed by the touch panel includes:
acquiring a capacitance value generated on the touch panel;
and determining coordinate information of the floating touch points according to the capacitance values, and determining one or more of the number of the floating touch points, the relative distance between the floating touch points and the area of the floating touch points as the floating touch information according to the coordinate information of the floating touch points.
Further, the screen includes: the method for controlling the screen of the first device with the touch panel or the screen of the second device connected with the first device to return to the desktop comprises the following steps: if the screen is the screen of the first equipment with the touch panel, the return instruction is directly executed, and the screen of the first equipment is controlled to return to the desktop; or if the screen is the screen of a second device connected with the first device, sending a return instruction to the second device, so that the second device controls the screen of the second device to return to the desktop of the second device after receiving the return instruction.
Further, if the screen is a screen of a second device, the method further comprises: establishing a connection with a second device to send the return instruction through the connection, the connection comprising: a wireless connection or a wired connection.
In this embodiment, whether the floating touch information corresponding to the floating touch operation performed by the user on the touch panel meets the predetermined gesture information is detected to determine whether the floating touch operation performed by the user is a preset screen return desktop gesture, and when the preset screen return desktop gesture is met, a return instruction for controlling the screen to return to the desktop is generated, so that the screen return desktop can be controlled based on the floating touch operation, limitation of returning the contact screen to the desktop is avoided, and the use by the user is facilitated.
The present application also provides a control device with a touch panel, comprising a processor and a memory, the memory for storing processor-executable instructions, the processor configured to: acquiring floating touch information;
judging whether the floating touch information meets preset gesture information or not;
and if the floating touch information meets the preset gesture information, generating a return instruction for controlling the screen to return to the desktop.
Further, the preset gesture information is converted from first state information to second state information within a preset time period; the first state information is information corresponding to the finger opening state, and the second state information is information corresponding to the finger pinching state.
Further, the determining whether the floating touch information satisfies the predetermined gesture information includes:
judging whether the floating touch information is the first state information;
when the floating touch information is detected to be the first state information, continuously acquiring the floating touch information, and judging whether the floating touch information changes to the second state information within the preset time period;
and when the floating touch information is changed within the preset time period and the changed floating touch information is the second state information, judging that the floating touch information meets the preset gesture information.
Further, the floating touch information includes: the number of the floating touch points, the relative distance between the floating touch points and the area of the floating touch points;
if the number of the floating touch points is multiple and the relative distance between the floating touch points is greater than a preset distance threshold, determining that the floating touch information is first state information;
the determining whether the floating touch information changes within the preset time period and becomes the second state information includes:
and if the number of the floating touch points is changed from a plurality of the floating touch points to one in the preset time period and the area of the floating touch points is larger than a preset area threshold value, determining that the floating touch information is changed in the preset time period and changed into the second state information.
Further, the floating touch information includes: the number of the floating touch points and the relative distance between the floating touch points;
the determining whether the floating touch information is the first state information includes:
if the number of the floating touch points is multiple and the relative distance between the floating touch points is greater than a preset first distance threshold, determining that the floating touch information is first state information;
the determining whether the floating touch information changes within the preset time period and becomes the second state information includes:
and if the number of the floating touch points is not changed in the preset time period, the relative distance between the floating touch points is reduced, and the reduced relative distance is smaller than a preset second distance threshold, determining that the floating touch information is changed and changed into the second state information in the preset time period.
Further, the touch panel includes: capacitive touch screens or capacitive touch pads.
Further, the detecting floating touch information generated on the touch panel by the user includes:
acquiring a capacitance value generated on the touch panel by a finger of a user;
and determining floating touch control points according to the capacitance values, and determining floating touch control information according to the number of the floating touch control points, the relative distance between the floating touch control points and the area.
Further, the screen includes: the method for controlling the screen of the first device with the touch panel or the screen of the second device connected with the first device to return to the desktop comprises the following steps: if the screen is the screen of the first equipment with the touch panel, the return instruction is directly executed, and the screen of the first equipment is controlled to return to the desktop; or if the target screen is a screen of a second device connected with the first device, sending a return instruction to the second device, so that the second device controls the screen of the second device to return to the desktop of the second device after receiving the return instruction.
Further, if the screen is a screen of a second device, the method further comprises: establishing a connection with a second device to send the return instruction through the connection, the connection comprising: a wireless connection or a wired connection.
In this embodiment, whether the floating touch information corresponding to the floating touch operation performed by the user on the touch panel meets the predetermined gesture information is detected to determine whether the floating touch operation performed by the user is a preset gesture for returning the screen to the desktop, and when the floating touch operation performed by the user meets the preset gesture for returning the screen to the desktop, a return instruction for controlling the screen to return to the desktop is generated, so that the control for returning the screen to the desktop can be realized based on the floating touch operation, the limitation of returning the contact screen to the desktop is avoided, and the use by the user is facilitated.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.
It should be noted that, in the description of the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present application, the meaning of "a plurality" means at least two unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (5)

1. The method for controlling the screen to return to the desktop is applied to a first device with a touch panel, and comprises the following steps:
acquiring floating touch information corresponding to the floating touch operation sensed by the touch panel;
judging whether the floating touch information meets preset gesture information or not;
if the floating touch information meets the preset gesture information, generating a return instruction for controlling the screen to return to the desktop;
the preset gesture information is converted from first state information into second state information within a preset time period; the first state information is information corresponding to an open state of fingers, and the second state information is information corresponding to a pinch state of fingers;
the floating touch information includes: the number of the floating touch points, the relative distance between the floating touch points and the area of the floating touch points;
the determining whether the floating touch information meets predetermined gesture information includes:
judging whether the floating touch information is the first state information;
when the floating touch information is the first state information, continuously acquiring the floating touch information, and judging whether the floating touch information changes to the second state information within the preset time period;
when the floating touch information is changed within the preset time period and the changed floating touch information is the second state information, judging that the floating touch information meets preset gesture information;
the determining whether the floating touch information is the first state information includes:
if the number of the floating touch points is multiple and the relative distance between the floating touch points is greater than a preset distance threshold, determining that the floating touch information is first state information;
the determining whether the floating touch information changes within the preset time period and becomes the second state information includes:
and if the number of the floating touch points is changed from a plurality of the floating touch points to one in the preset time period and the area of the floating touch points is larger than a preset area threshold value, determining that the floating touch information is changed in the preset time period and changed into the second state information.
2. The method of claim 1, wherein the hover touch information comprises: the number of the floating touch points and the relative distance between the floating touch points;
the determining whether the floating touch information is the first state information includes:
if the number of the floating touch points is multiple and the relative distance between the floating touch points is greater than a preset first distance threshold, determining that the floating touch information is first state information;
and if the number of the floating touch points is not changed in the preset time period, the relative distance between the floating touch points is reduced, and the reduced relative distance is smaller than a preset second distance threshold, determining that the floating touch information is changed and changed into the second state information in the preset time period.
3. The method for controlling screen return to desktop according to any of claims 1-2, wherein after generating the return instruction, the method further comprises:
if the screen is the screen of the first equipment, directly executing the return instruction;
alternatively, the first and second electrodes may be,
and if the screen is the screen of a second device connected with the first device, sending the return instruction to the second device, so that the second device controls the screen to return to the desktop of the second device after receiving the return instruction.
4. An apparatus for controlling a screen to return to a desktop, applied to a first device having a touch panel, comprising:
the acquisition module is used for acquiring floating touch information corresponding to the floating touch operation sensed by the touch panel;
the judging module is used for judging whether the floating touch information meets the preset gesture information;
the return instruction generating module is used for generating a return instruction for controlling the screen to return to the desktop when the floating touch information meets the preset gesture information;
the preset gesture information is converted from first state information into second state information within a preset time period; the first state information is information corresponding to an open state of fingers, and the second state information is information corresponding to a pinch state of fingers;
the floating touch information includes: the number of the floating touch points, the relative distance between the floating touch points and the area of the floating touch points;
to enable determining whether the hover touch information satisfies predetermined gesture information, the determining module is configured to:
judging whether the floating touch information is the first state information;
if the floating touch information is the first state information, judging whether the floating touch information is changed and changed into the second state information within a preset time period;
if the floating touch information is changed within the preset time period and the changed floating touch information is the second state information, judging that the floating touch information meets preset gesture information;
the determining whether the floating touch information is the first state information includes:
if the number of the floating touch points is multiple and the relative distance between the floating touch points is greater than a preset distance threshold, determining that the floating touch information is first state information;
the determining whether the floating touch information changes within the preset time period and becomes the second state information includes:
and if the number of the floating touch points is changed from a plurality of the floating touch points to one in the preset time period and the area of the floating touch points is larger than a preset area threshold value, determining that the floating touch information is changed in the preset time period and changed into the second state information.
5. A control apparatus, characterized by comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring floating touch information;
judging whether the floating touch information meets preset gesture information or not;
if the floating touch information meets the preset gesture information, generating a return instruction for controlling the screen to return to the desktop;
the preset gesture information is converted from first state information into second state information within a preset time period; the first state information is information corresponding to an open state of fingers, and the second state information is information corresponding to a pinch state of fingers;
the floating touch information includes: the number of the floating touch points, the relative distance between the floating touch points and the area of the floating touch points;
the determining whether the floating touch information meets predetermined gesture information includes:
judging whether the floating touch information is the first state information;
when the floating touch information is the first state information, continuously acquiring the floating touch information, and judging whether the floating touch information changes to the second state information within the preset time period;
when the floating touch information is changed within the preset time period and the changed floating touch information is the second state information, judging that the floating touch information meets preset gesture information;
the determining whether the floating touch information is the first state information includes:
if the number of the floating touch points is multiple and the relative distance between the floating touch points is greater than a preset distance threshold, determining that the floating touch information is first state information;
the determining whether the floating touch information changes within the preset time period and becomes the second state information includes:
and if the number of the floating touch points is changed from a plurality of the floating touch points to one in the preset time period and the area of the floating touch points is larger than a preset area threshold value, determining that the floating touch information is changed in the preset time period and changed into the second state information.
CN201810246001.2A 2018-03-23 2018-03-23 Method and device for controlling screen to return to desktop Active CN108427534B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810246001.2A CN108427534B (en) 2018-03-23 2018-03-23 Method and device for controlling screen to return to desktop

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810246001.2A CN108427534B (en) 2018-03-23 2018-03-23 Method and device for controlling screen to return to desktop

Publications (2)

Publication Number Publication Date
CN108427534A CN108427534A (en) 2018-08-21
CN108427534B true CN108427534B (en) 2020-11-24

Family

ID=63159007

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810246001.2A Active CN108427534B (en) 2018-03-23 2018-03-23 Method and device for controlling screen to return to desktop

Country Status (1)

Country Link
CN (1) CN108427534B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110488619B (en) * 2019-07-29 2023-04-07 维达力实业(深圳)有限公司 Information interaction system of household appliance and control method and device of household appliance
CN111897479A (en) * 2020-08-11 2020-11-06 网易(杭州)网络有限公司 Interface switching display method, device, terminal and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104238927B (en) * 2013-06-09 2019-04-19 腾讯科技(北京)有限公司 The control method and device of intelligent terminal application program
US10528185B2 (en) * 2013-09-23 2020-01-07 Touchplus Information Corp. Floating touch method and touch device
WO2015062017A1 (en) * 2013-10-31 2015-05-07 华为技术有限公司 Method and apparatus for processing suspended or distance operation
CN104683598B (en) * 2015-03-25 2017-06-09 广东欧珀移动通信有限公司 Proximity transducer threshold value adjusting method, device and smart machine
CN105739857A (en) * 2016-01-25 2016-07-06 北京小米移动软件有限公司 Mobile terminal control method and apparatus
CN106569647A (en) * 2016-10-31 2017-04-19 努比亚技术有限公司 Mobile terminal and mobile terminal control method
CN106886365A (en) * 2017-02-23 2017-06-23 维沃移动通信有限公司 A kind of account method and mobile terminal

Also Published As

Publication number Publication date
CN108427534A (en) 2018-08-21

Similar Documents

Publication Publication Date Title
US10649552B2 (en) Input method and electronic device using pen input device
KR101436608B1 (en) Mobile terminal having touch screen and method for displaying cursor thereof
AU2010235941B2 (en) Interpreting touch contacts on a touch surface
US9201521B2 (en) Storing trace information
RU2420784C2 (en) Reducing accidental activation of sensor device
KR20170083545A (en) System and methods for controlling a cursor based on finger pressure and direction
US20100259499A1 (en) Method and device for recognizing a dual point user input on a touch based user input device
JP2013257904A (en) Touch sensor device
KR20130099717A (en) Apparatus and method for providing user interface based on touch screen
KR20090022924A (en) Portable terminal and method for performing order thereof
WO2014033138A1 (en) Input device with hand posture control
CN109478108B (en) Stylus communication channel
KR20120072932A (en) Method and apparatus for providing touch interface
CN108427534B (en) Method and device for controlling screen to return to desktop
CN110389704A (en) One-handed performance method, mobile terminal and the storage medium of mobile terminal
KR102198596B1 (en) Disambiguation of indirect input
KR20150077914A (en) Electronic device and method for sensing inputs
KR102210045B1 (en) Apparatus and method for contrlling an input of electronic device having a touch device
CN107980116B (en) Floating touch sensing method, floating touch sensing system and floating touch electronic equipment
EP3433713B1 (en) Selecting first digital input behavior based on presence of a second, concurrent, input
KR20150122021A (en) A method for adjusting moving direction of displaying object and a terminal thereof
KR100859882B1 (en) Method and device for recognizing a dual point user input on a touch based user input device
CN108459818A (en) The method and apparatus for controlling unlocking screen
KR101596730B1 (en) Method and apparatus for determining an input coordinate on a touch-panel
CN110874141A (en) Icon moving method and terminal equipment

Legal Events

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