CN115357175A - Terminal control method and device based on touch screen and computer equipment - Google Patents

Terminal control method and device based on touch screen and computer equipment Download PDF

Info

Publication number
CN115357175A
CN115357175A CN202210893844.8A CN202210893844A CN115357175A CN 115357175 A CN115357175 A CN 115357175A CN 202210893844 A CN202210893844 A CN 202210893844A CN 115357175 A CN115357175 A CN 115357175A
Authority
CN
China
Prior art keywords
sliding
event information
touch
terminal
user
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.)
Pending
Application number
CN202210893844.8A
Other languages
Chinese (zh)
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.)
Datuo Shandong Internet Of Things Technology Co ltd
Original Assignee
Datuo Shandong Internet Of Things 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 Datuo Shandong Internet Of Things Technology Co ltd filed Critical Datuo Shandong Internet Of Things Technology Co ltd
Priority to CN202210893844.8A priority Critical patent/CN115357175A/en
Publication of CN115357175A publication Critical patent/CN115357175A/en
Pending legal-status Critical Current

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
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning

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)

Abstract

The embodiment of the application belongs to the technical field of electronics, and relates to a terminal control method and device based on a touch screen, computer equipment and a storage medium, wherein the method comprises the following steps: detecting sliding operation of a user on an annular touch screen of the terminal to record the number of touch points and coordinates of the touch points corresponding to the sliding operation so as to obtain finger sliding data; calculating the finger sliding data according to a preset touch control algorithm to obtain first event information; displaying first event information through a terminal; detecting the pressing operation of a user on the annular touch screen to obtain second event information corresponding to the first event information; and controlling the terminal according to the second event information. The method and the device avoid possible abnormity of the traditional rotating structure, and control over the terminal is achieved through sliding or pressing operation of the annular touch screen.

Description

Terminal control method and device based on touch screen and computer equipment
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a method and an apparatus for controlling a terminal based on a touch screen, a computer device, and a storage medium
Background
In daily life, it is common practice to control a controlled object by selecting options through a knob. The existing knobs work through rotating structures, and the rotating structures need certain physical space to realize rotating functions. Over time, the rotating structure may loose the internal structure and make a sound, or the knob may be subject to water inflow due to the use environment, so that the service life of the knob is further shortened, and the controlled object cannot be effectively controlled.
Disclosure of Invention
An embodiment of the application aims to provide a terminal control method and device based on a touch screen, a computer device and a storage medium, so as to solve the technical problem that an existing knob is not stable enough.
In order to solve the above technical problem, an embodiment of the present application provides a terminal control method based on a touch screen, which adopts the following technical solutions:
detecting sliding operation of a user on an annular touch screen of a terminal to record the number of touch points corresponding to the sliding operation and coordinates of the touch points so as to obtain finger sliding data;
calculating the finger sliding data according to a preset touch control algorithm to obtain first event information;
displaying the first event information through the terminal;
detecting the pressing operation of the user on the annular touch screen to obtain second event information corresponding to the first event information;
and controlling the terminal according to the second event information.
Further, before the step of detecting a sliding operation of a user on an annular touch screen of a terminal to record the number of touch points and coordinates of the touch points corresponding to the sliding operation and obtain finger sliding data, the method further includes:
acquiring a page identifier of a current page of a terminal;
selecting sliding prompt information corresponding to the page identification;
and displaying the sliding prompt information through the terminal to prompt a user to perform sliding operation according to the number of preset touch points in the sliding prompt information.
Further, the step of calculating the finger sliding data according to a preset touch control algorithm to obtain first event information includes:
checking whether the number of the preset touch points is consistent with the number of the touch points in the finger sliding data;
when the finger sliding data are consistent with the finger sliding data, calculating the finger sliding data according to a preset touch control algorithm to obtain first event information;
and when the sliding operation is inconsistent with the sliding operation, displaying the re-sliding information through the terminal to indicate the user to perform the sliding operation again.
Further, the step of detecting a sliding operation of a user on the annular touch screen of the terminal to record the number of touch points and the coordinates of the touch points corresponding to the sliding operation to obtain finger sliding data includes:
detecting touch points of a user on an annular touch screen of the terminal to obtain the number of the touch points;
recording the initial position of the touch point in the sliding operation to obtain the coordinate of the touch point;
and determining the number of the touch points and the coordinates of the touch points as finger sliding data.
Further, the step of calculating the finger sliding data according to a preset touch control algorithm to obtain first event information includes:
determining a sliding distance calculation mode and a sliding angle calculation mode according to the number of the touch points;
calculating the coordinates of the touch points according to the sliding distance calculation mode and the sliding angle calculation mode to obtain a sliding angle;
first event information is determined based on the slip angle.
Further, the step of detecting the pressing operation of the user on the annular touch screen to obtain second event information corresponding to the first event information includes:
detecting the pressing operation of the user on the annular touch screen to obtain finger pressing data, wherein the finger pressing data comprises pressing strength, pressing time and the number of pressing points;
and determining second event information corresponding to the first event information according to the finger pressing data.
Further, the method further comprises:
and displaying candidate event information corresponding to the sliding operation/pressing operation through the terminal.
In order to solve the above technical problem, an embodiment of the present application further provides a terminal control device based on a touch screen, which adopts the following technical solutions:
the sliding recording module is used for detecting the sliding operation of a user on an annular touch screen of the terminal so as to record the number of touch points and the coordinates of the touch points corresponding to the sliding operation and obtain finger sliding data;
the sliding calculation module is used for calculating the finger sliding data according to a preset touch control algorithm to obtain first event information;
the first display module is used for displaying the first event information through the terminal;
the pressing detection module is used for detecting the pressing operation of the user on the annular touch screen to obtain second event information corresponding to the first event information;
and the terminal control module is used for controlling the terminal according to the second event information.
In order to solve the above technical problem, an embodiment of the present application further provides a computer device, which adopts the following technical solutions:
detecting sliding operation of a user on an annular touch screen of a terminal to record the number of touch points corresponding to the sliding operation and coordinates of the touch points so as to obtain finger sliding data;
calculating the finger sliding data according to a preset touch control algorithm to obtain first event information;
displaying the first event information through the terminal;
detecting the pressing operation of the user on the annular touch screen to obtain second event information corresponding to the first event information;
and controlling the terminal according to the second event information.
In order to solve the foregoing technical problem, an embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solutions:
detecting sliding operation of a user on an annular touch screen of a terminal to record the number of touch points corresponding to the sliding operation and coordinates of the touch points so as to obtain finger sliding data;
calculating the finger sliding data according to a preset touch control algorithm to obtain first event information;
displaying the first event information through the terminal;
detecting the pressing operation of the user on the annular touch screen to obtain second event information corresponding to the first event information;
and controlling the terminal according to the second event information.
Compared with the prior art, the embodiment of the application mainly has the following beneficial effects: detecting the number of touch points and the coordinates of the touch points of the sliding operation of a user on an annular touch screen of the terminal to obtain finger sliding data; calculating the number of touch points and coordinates of the touch points through a touch control algorithm, so as to obtain and display first event information selected by a user through sliding operation; the user can select the first event information through pressing operation, the pressing operation of the user on the annular touch screen is detected, second event information corresponding to the first event information is obtained, and the terminal is controlled according to the second event information; according to the method and the device, the annular touch screen is used for replacing a rotating structure, the possible abnormity of the traditional rotating structure is avoided, and the control of the terminal is realized through the sliding or pressing operation of the user on the annular touch screen.
Drawings
In order to more clearly illustrate the solution of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below, and it is obvious that the drawings in the description below are some embodiments of the present application, and that other drawings may be obtained by those skilled in the art without inventive effort.
FIG. 1 is an exemplary system architecture diagram to which the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a touch screen based terminal control method according to the application;
FIG. 3 is a schematic diagram of one embodiment of a sliding operation on an annular touch screen according to the present application;
FIG. 4 is a schematic diagram of an embodiment of a touch screen based terminal control device according to the present application;
FIG. 5 is a block diagram of one embodiment of a computer device according to the present application.
Detailed Description
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "including" and "having," and any variations thereof, in the description and claims of this application and the description of the above figures are intended to cover non-exclusive inclusions. The terms "first," "second," and the like in the description and claims of this application or in the above-described drawings are used for distinguishing between different objects and not for describing a particular order.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein may be combined with other embodiments.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have various communication client applications installed thereon, such as a web browser application, a shopping application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to a smart phone, a tablet computer, an e-book reader, an MP3 player (Moving Picture experts Group Audio Layer III, motion Picture experts compression standard Audio Layer 3), an MP4 player (Moving Picture experts Group Audio Layer IV, motion Picture experts compression standard Audio Layer 4), a laptop portable computer, a desktop computer, and the like.
The server 105 may be a server providing various services, such as a background server providing support for pages displayed on the terminal devices 101, 102, 103.
It should be noted that the terminal control method based on the touch screen provided in the embodiments of the present application is generally executed by a terminal device, and accordingly, the terminal control apparatus based on the touch screen is generally disposed in the terminal device.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for an implementation.
With continued reference to fig. 2, a flowchart of one embodiment of a touch screen based terminal control method according to the present application is shown. The terminal control method based on the touch screen comprises the following steps:
step S201, detecting a sliding operation of a user on an annular touch screen of the terminal to record the number of touch points and coordinates of the touch points corresponding to the sliding operation, so as to obtain finger sliding data.
In this embodiment, an electronic device (for example, the terminal device shown in fig. 1) on which the touch screen-based terminal control method operates may communicate with the server through a wired connection manner or a wireless connection manner. It should be noted that the above-mentioned wireless connection means may include, but is not limited to, 3G/4G/5G connection, wiFi connection, bluetooth connection, wiMAX connection, zigbee connection, UWB (ultra wideband) connection, and other now known or later developed wireless connection means.
Specifically, the terminal equipment in this application is provided with the novel knob that does not need revolution mechanic to select, and novel knob can set to shape such as cylindrical, and its side surface has annular touch-sensitive screen, has pressure sensor under the annular touch-sensitive screen, can gather user's finger sliding operation or press the relevant data of operation on annular touch-sensitive screen.
The user can contact the annular touch screen through a finger, and the finger slides on the annular touch screen in a rotating mode to achieve option selection. The annular touch screen detects the sliding operation of a user on the annular touch screen, and records the number of touch points and the coordinates of the touch points to obtain finger sliding data. When a user finger contacts the annular touch screen, touch points are arranged, and the number of the touch points can be the number of the fingers contacting the annular touch screen; in the sliding operation, the position of the touch point on the surface of the annular touch screen changes, and the touch point coordinate represents the position of the touch point.
Fig. 3 is a schematic diagram illustrating a sliding operation on the annular touch screen in an embodiment, specifically, referring to fig. 3, the novel knob is cylindrical, the measuring surface of the novel knob has an annular touch screen, and a user can obtain touch points by touching the annular touch screen with a finger, where the number of the touch points may be 2, 3, 4, and the like, and for example, four touch points a, B, C, and D may be included. And detecting the number of touch points of the user on the annular touch screen and the initial positions of the touch points to obtain the coordinates of the touch points. The touch point location may be at the origin of the center of the novel knob. In one embodiment, the coordinate of the vertical axis of the touch point, i.e. the y coordinate, is recorded to obtain the touch point coordinate. For example, there are two touch points a, B, where the initial Y-coordinate of touch point a is A0Y, the final Y-coordinate of touch point a is A1Y, the initial Y-coordinate of touch point B is B0Y, and the final Y-coordinate of touch point B is B1Y.
Step S202, calculating the finger sliding data according to a preset touch control algorithm to obtain first event information.
Specifically, the user selects candidate event information through a rotation operation, and the candidate event information may be an event or an option provided to the user for selection. For example, when the terminal is provided with a heating function, the candidate event information may be a heating range provided for selection by the user.
The user can contact the annular touch screen through fingers with different numbers, and rotation habits (such as rotation speed and rotation angle) are different when the numbers of the fingers are different, so that a touch control algorithm is preset, coordinates of touch points are calculated according to the number of the touch points in the finger sliding data, a rotation angle is obtained, an option selected by the sliding operation of the user is determined, and first event information is obtained. For example, if there are three touch points, the coordinates of the touch points are calculated to obtain a rotation angle, and the first event information corresponding to the rotation angle when there are three touch points is obtained as "scented tea".
In one embodiment, the finger swipe data is recorded in real-time and updated in real-time, such that calculations are performed in real-time based on the finger swipe data to determine current first event information in real-time.
And step S203, displaying the first event information through the terminal.
Specifically, the terminal may present first event information corresponding to the user sliding operation. The terminal may be provided with a display screen or a player, and the first event information may be displayed through the display screen or the player.
And step S204, detecting the pressing operation of the user on the annular touch screen to obtain second event information corresponding to the first event information.
Specifically, the user can switch between different candidate event information through a sliding operation, and after switching to certain first event information, the user can further select and control the first event information through a pressing operation.
The annular touch screen can be pressed by a user through fingers, and the pressure sensor detects the pressing operation of the user to obtain finger pressing data. The finger pressing data indicate different pressing states of the user, so that the first event information is further edited, selected, confirmed or exited, and second event information corresponding to the first event information is obtained.
And step S205, controlling the terminal according to the second event information.
Specifically, after the second event information is obtained, the terminal controls itself according to the second event information, and responds to the user operation.
In the embodiment, the number of touch points and the coordinates of the touch points of the sliding operation of a user on the annular touch screen of the terminal are detected to obtain finger sliding data; calculating the number of touch points and coordinates of the touch points through a touch control algorithm, so as to obtain and display first event information selected by a user through sliding operation; the user can select the first event information through pressing operation, the pressing operation of the user on the annular touch screen is detected, second event information corresponding to the first event information is obtained, and the terminal is controlled according to the second event information; according to the method and the device, the annular touch screen is used for replacing a rotating structure, the possible abnormity of the traditional rotating structure is avoided, and the control on the terminal is realized through the sliding or pressing operation of the user on the annular touch screen.
Further, before step S201, the method may further include: acquiring a page identifier of a current page of a terminal; selecting sliding prompt information corresponding to the page identification; and displaying the sliding prompt information through the terminal to prompt the user to perform sliding operation according to the number of preset touch points in the sliding prompt information.
Specifically, the terminal has a display screen, the display screen can implement page display, and different pages can implement control in different aspects, for example, page 1 can implement control of terminal image display, and page 2 can implement control of terminal sound playing. The number of candidate event information presented by the page may also be different due to different control functions associated with the page, for example, the above-mentioned page 1 controls the image display of the terminal from 4 aspects, and the above-mentioned page 2 controls the sound playing of the terminal from 6 aspects. When the number of fingers is different, the rotation angles of the fingers are also different, so that the number of touch points of a certain page can be predetermined for different pages, namely the number of fingers required to be used by the sliding operation of the user can be predetermined.
The method comprises the steps that a page identification of a page can be obtained, sliding prompt information corresponding to the page identification is selected, and the sliding prompt information comprises the number of preset touch points; the terminal can prompt a user through page display, voice prompt and other modes, and the annular touch screen is contacted according to the number of preset touch points to perform sliding operation. In one embodiment, the more candidate event information included in the page, that is, the more switching options, the more the number of preset touch points is.
In this embodiment, different sliding prompt messages are set for different pages to prompt a user to perform a sliding operation according to the number of preset touch points in the sliding prompt messages, so that the sliding operation is performed according to the number of switching options.
Further, the step S202 may include: checking whether the number of preset touch points is consistent with the number of touch points in the finger sliding data; when the first event information is consistent with the first event information, calculating the finger sliding data according to a preset touch control algorithm to obtain first event information; and when the sliding operation is inconsistent with the sliding operation, displaying the re-sliding information through the terminal to instruct the user to perform the sliding operation again.
Specifically, the sliding prompt information can be displayed through the terminal to prompt the user to perform the sliding operation according to the number of the preset touch points in the sliding prompt information. When a user contacts the annular touch screen through a finger and performs sliding operation, the number of touch points and the coordinates of the touch points of the sliding operation are recorded in real time, and finger sliding data are obtained.
Comparing whether the number of touch points in the finger sliding data is consistent with the number of preset touch points in the current page sliding prompt message in real time; if the first event information is consistent with the first event information, the user slides according to the sliding prompt information, and finger sliding data are calculated according to a preset touch control algorithm to obtain the first event information; if the sliding operation is inconsistent with the sliding operation, the sliding operation is performed according to the preset touch point number, and the sliding operation is invalid.
In this embodiment, when the number of the preset touch points is set, whether the number of the touch points in the finger sliding data is consistent with the number of the preset touch points is detected in real time, so as to determine whether the user performs effective sliding.
Further, in another embodiment of the present application, the step S201 may include: detecting touch points of a user on an annular touch screen of the terminal to obtain the number of the touch points; recording the initial position of the touch point in the sliding operation to obtain the coordinate of the touch point; and determining the number of touch points and the coordinates of the touch points as finger sliding data.
Specifically, the number of touch points may not be limited before the slide operation. The user can freely determine the number of touch points and slide on the surface of the annular touch screen. The method comprises the following steps that an annular touch screen automatically detects touch points generated by finger contact of a user to obtain the number of the touch points; and for each touch point, recording the coordinates of the touch point in real time to obtain the initial position of the touch point in the sliding operation and obtain the coordinates of the touch point. The number of touch points and the coordinates of the touch points form finger sliding data.
In this embodiment, the number of touch points may not be limited, and the number of touch points and the coordinates of the touch points of the user in the sliding operation may be automatically detected to obtain the finger sliding data.
Further, in another embodiment of the present application, the step S202 may include: determining a sliding distance calculation mode and a sliding angle calculation mode according to the number of the touch points; calculating the coordinates of the touch points according to a sliding distance calculation mode and a sliding angle calculation mode to obtain a sliding angle; first event information is determined based on the slip angle.
Specifically, when the number of fingers contacting the annular touch screen is different, there is a difference in the habitual rotation angle due to the limited size of the annular touch screen, and generally, the larger the number of fingers used, the smaller the rotation angle is generally. Therefore, the touch control algorithm in the present application is related to the number of touch points. The touch control algorithm relates to a sliding distance calculation mode and a sliding angle calculation mode, and determines a required sliding distance calculation mode and a required sliding angle calculation mode according to the number of touch points. Then calculating the coordinates of the touch points according to a sliding distance calculation mode to obtain an average sliding distance; and calculating the average sliding distance according to a sliding angle calculation mode to obtain a sliding angle. Under different touch point numbers, the standard sliding angle required for switching the options once is different, wherein the standard sliding angle is the angle required for rotating when the previous option is switched to the next option; and determining the option to which the sliding operation of the user is switched according to the calculated sliding angle, namely obtaining the first event information corresponding to the sliding operation.
Generally, according to the habit of holding a human body, a user needs at least two fingers to hold the circular touch screen, and uses at most four fingers, so that at most four touch points are generated, and the four touch points are sequentially a, B, C, and D, and then the coordinates of the touch points are as follows:
A0Y the initial Y coordinate of touch point a,
A1Y: the final Y coordinate of touch point A;
B0Y the initial Y coordinate of touch point B,
B1Y: the final Y coordinate of touch point B;
C0Y the initial Y coordinate of touch point C,
C1Y: the final Y coordinate of touch point C;
D0Y the initial Y coordinate of touch point D,
D1Y: the final Y coordinate of touch point D;
r: the radius of the novel knob is large;
α: the angle of rotation.
1) Two-point touch control algorithm:
two-point average sliding distance d = (A1Y-A0Y + B1Y-B0Y)/2
Sliding angle α = d × 360/2 π r = (A1Y-A0Y + B1Y-B0Y) × 360/4 π r
2) Three-point touch control algorithm:
three-point average sliding distance d = (A1Y-A0Y + B1Y-B0Y + C1Y-C0Y)/3
Sliding angle α = d × 360/2 π r = (A1Y-A0Y + B1Y-B0Y + C1Y-C0Y)
*360/6πr
3) The four-point touch control algorithm comprises the following steps:
four-point average sliding distance D = (A1Y-A0Y + B1Y-B0Y + C1Y-C0Y + D1Y-D0Y)/4
Sliding angle α = d × 360/2 π r =
(A1Y-A0Y+B1Y-B0Y+C1Y-C0Y+D1Y-D0Y))*360/8πr。
The speed of switching the options can be controlled through the number of the touch points; different standard sliding angles can be set according to the number of options, for example, when the number of touch points is two, a switching event is triggered every time 20 degrees is increased or reduced, and when the number of touch points is three, a switching event is triggered every time 15 degrees is increased or reduced; when the number of touch points is four, a switching event is triggered every 10 ° increment or decrement. In one embodiment, the standard sliding angle may be set to a degree interval, i.e. the angle required for a switching event is determined to be within a certain range, e.g. when the number of touch points is two, a rotation of 20-25 ° completes one switching event.
In this embodiment, a sliding distance calculation mode and a sliding angle calculation mode are determined according to the number of the touch points, and then coordinates of the touch points are calculated according to the sliding distance calculation mode and the sliding angle calculation mode to obtain first event information, so that switching of options is completed according to a sliding operation.
Further, the step S204 may include: detecting the pressing operation of a user on the annular touch screen to obtain finger pressing data, wherein the finger pressing data comprises pressing strength, pressing time and the number of pressing points; and determining second event information corresponding to the first event information according to the finger pressing data.
Specifically, the user may further edit, select, confirm, or exit the first event information by a pressing operation. The annular touch screen can be pressed through the finger to the user, and pressure sensor carries out data acquisition to pressing operation and obtains the finger and press data, and the finger is pressed data and is included according to pressure degree, press time and press point quantity.
The pressing force degree can be the force of the user pressing the annular touch screen; the press time may be a length of time that the user presses the annular touch screen; the number of pressed points may be the number of fingers used by the user when pressing the annular touch screen. According to the finger pressing data, the operation executed by the user on the first event information can be further determined to obtain second event information, for example, the first event information is the option of switching to the picture color by the user, then the determination event is triggered by the pressing operation, and then the terminal displays the options below the picture color so that the user can select and edit the options; or, the user triggers an exit event by pressing operation, and the terminal exits from the current page and enters into a page at the upper level (for example, the page at the upper level may include options of image display and sound playing); or the user switches to the heating time event through the sliding operation, the user can perform timing through the pressing operation, and the heating time is in direct proportion to the pressing time of the user, so that the heating time is edited and determined.
The degree of compression, the time of compression, and the number of compression points may all affect the determination of the second event information. In one embodiment, after determining the first event information, the terminal may further play a press prompt message through a display screen or a player, so as to indicate a press operation of the user.
In one embodiment, when the user performs terminal control through the annular touch screen, the sliding operation and the pressing operation can be performed for multiple times. The user can realize the whole control of the terminal through the annular touch screen.
In the embodiment, the finger pressing data are obtained by collecting the pressing intensity, the pressing time and the number of pressing points when the user presses the annular touch screen, so that the second event information is determined according to the pressing data, the terminal is controlled by pressing, and the control mode of the terminal is enriched.
Further, the touch screen-based terminal control method may further include: and displaying candidate event information corresponding to the sliding operation/pressing operation through the terminal.
Specifically, when the user performs a sliding operation or a pressing operation, the terminal may present the candidate event information in real time. For example, when a user performs a sliding operation, the event options corresponding to the sliding operation are displayed in real time; when the heating time is adjusted through the pressing operation, the heating time corresponding to the pressing operation is displayed in real time, so that the user can acquire the current event information in time, and the terminal can be controlled conveniently.
In this embodiment, candidate event information corresponding to the sliding operation/pressing operation is displayed through the terminal, so that a user can acquire current event information in time, and the terminal can be controlled conveniently.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware associated with computer readable instructions, which can be stored in a computer readable storage medium, and when executed, the processes of the embodiments of the methods described above can be included. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless otherwise indicated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
With further reference to fig. 4, as an implementation of the method shown in fig. 2, the present application provides an embodiment of a terminal control device based on a touch screen, where the embodiment of the device corresponds to the embodiment of the method shown in fig. 2, and the device may be specifically applied to various electronic devices.
As shown in fig. 4, the touch screen-based terminal control device 300 according to the present embodiment includes: a slide recording module 301, a slide calculating module 302, a first display module 303, a press detecting module 304 and a terminal control module 305, wherein:
the sliding recording module 301 is configured to detect a sliding operation of a user on an annular touch screen of the terminal, so as to record the number of touch points and coordinates of the touch points corresponding to the sliding operation, and obtain finger sliding data.
The sliding calculation module 302 is configured to calculate the finger sliding data according to a preset touch control algorithm to obtain first event information.
The first displaying module 303 is configured to display the first event information through the terminal.
And a press detection module 304, configured to detect a press operation of the user on the annular touch screen, and obtain second event information corresponding to the first event information.
And a terminal control module 305, configured to control the terminal according to the second event information.
In the embodiment, the number of touch points and the coordinates of the touch points of the sliding operation of a user on the annular touch screen of the terminal are detected to obtain finger sliding data; calculating the number of touch points and coordinates of the touch points through a touch control algorithm, so as to obtain and display first event information selected by a user through sliding operation; the user can select the first event information through pressing operation, the pressing operation of the user on the annular touch screen is detected, second event information corresponding to the first event information is obtained, and the terminal is controlled according to the second event information; according to the method and the device, the annular touch screen is used for replacing a rotating structure, the possible abnormity of the traditional rotating structure is avoided, and the control of the terminal is realized through the sliding or pressing operation of the user on the annular touch screen.
In some optional implementations of this embodiment, the touch screen-based terminal control device 300 may further include: the device comprises an identification acquisition module, an information selection module and an information display module, wherein:
and the identification acquisition module is used for acquiring the page identification of the current page of the terminal.
And the information selection module is used for selecting the sliding prompt information corresponding to the page identification.
And the information display module is used for displaying the sliding prompt information through the terminal so as to prompt a user to perform sliding operation according to the number of preset touch points in the sliding prompt information.
In this embodiment, different sliding prompt messages are set for different pages to prompt a user to perform a sliding operation according to the number of preset touch points in the sliding prompt messages, so that the sliding operation is performed according to the number of switching options.
In some optional implementations of this embodiment, the sliding calculation module 302 may include: quantity check submodule, data calculation submodule and redisplay submodule, wherein:
and the number checking submodule is used for checking whether the number of the preset touch points is consistent with the number of the touch points in the finger sliding data.
And the data calculation sub-module is used for calculating the finger sliding data according to a preset touch control algorithm to obtain first event information when the finger sliding data are consistent with the finger sliding data.
And the redisplay submodule is used for displaying the redisplay information through the terminal to indicate the user to perform the sliding operation again when the sliding operation is inconsistent with the sliding operation.
In this embodiment, when the number of the preset touch points is set, whether the number of the touch points in the finger sliding data is consistent with the number of the preset touch points is detected in real time, so as to determine whether the user performs effective sliding.
In other optional implementations of this embodiment, the sliding record module 301 may include: touch point detection submodule, position record submodule and slip determination submodule, wherein:
and the touch point detection submodule is used for detecting the touch points of the user on the annular touch screen of the terminal to obtain the number of the touch points.
And the position recording submodule is used for recording the initial position of the touch point in the sliding operation to obtain the coordinates of the touch point.
And the sliding determination submodule is used for determining the number of the touch points and the coordinates of the touch points as finger sliding data.
In this embodiment, the number of touch points may not be limited, and the number of touch points and the coordinates of the touch points of the user in the sliding operation may be automatically detected to obtain the finger sliding data.
In other alternative implementations of this embodiment, the sliding calculation module 302 may include: the device comprises a mode determination submodule, an angle determination submodule and a first determination submodule, wherein:
and the mode determining submodule is used for determining a sliding distance calculating mode and a sliding angle calculating mode according to the number of the touch points.
And the angle determining submodule is used for calculating the coordinates of the touch points according to the sliding distance calculating mode and the sliding angle calculating mode to obtain the sliding angle.
A first determining sub-module for determining first event information based on the sliding angle.
In this embodiment, a sliding distance calculation mode and a sliding angle calculation mode are determined according to the number of the touch points, and then coordinates of the touch points are calculated according to the sliding distance calculation mode and the sliding angle calculation mode to obtain first event information, so that switching of options is completed according to a sliding operation.
In some optional implementations of this embodiment, the press detection module 304 may include: a press detection sub-module and a second determination sub-module, wherein:
and the pressing detection submodule is used for detecting the pressing operation of the user on the annular touch screen to obtain finger pressing data, and the finger pressing data comprises pressing strength, pressing time and the number of pressing points.
And the second determining submodule is used for determining second event information corresponding to the first event information according to the finger pressing data.
In the embodiment, the finger pressing data are obtained by collecting the pressing intensity, the pressing time and the number of pressing points when the user presses the annular touch screen, so that the second event information is determined according to the pressing data, the terminal is controlled by pressing, and the control mode of the terminal is enriched.
In some optional implementations of this embodiment, the touch screen-based terminal control device 300 may further include: and the candidate display module is used for displaying the candidate event information corresponding to the sliding operation/pressing operation through the terminal.
In this embodiment, candidate event information corresponding to the sliding operation/pressing operation is displayed through the terminal, so that a user can acquire current event information in time, and the terminal can be controlled conveniently.
In order to solve the technical problem, an embodiment of the present application further provides a computer device. Referring to fig. 5, fig. 5 is a block diagram of a basic structure of a computer device according to the embodiment.
The computer device 4 comprises a memory 41, a processor 42, and a network interface 43, which are communicatively connected to each other via a system bus. It is noted that only computer device 4 having components 41-43 is shown, but it is understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead. As will be understood by those skilled in the art, the computer device is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The computer device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The computer equipment can carry out man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch panel or voice control equipment and the like.
The memory 41 includes at least one type of readable storage medium including flash memory, hard disks, multimedia cards, card-type memory (e.g., SD or DX memory, etc.), random Access Memory (RAM), static Random Access Memory (SRAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), programmable Read Only Memory (PROM), magnetic memory, magnetic disks, optical disks, etc. In some embodiments, the memory 41 may be an internal storage unit of the computer device 4, such as a hard disk or a memory of the computer device 4. In other embodiments, the memory 41 may also be an external storage device of the computer device 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the computer device 4. Of course, the memory 41 may also include both an internal storage unit of the computer device 4 and an external storage device thereof. In this embodiment, the memory 41 is generally used for storing an operating system and various application software installed in the computer device 4, such as computer readable instructions of a terminal control method based on a touch screen. Further, the memory 41 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 42 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 42 is typically used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is configured to execute computer readable instructions stored in the memory 41 or process data, for example, execute computer readable instructions of the touch screen-based terminal control method.
The network interface 43 may comprise a wireless network interface or a wired network interface, and the network interface 43 is generally used for establishing communication connection between the computer device 4 and other electronic devices.
The computer device provided in this embodiment may execute the touch screen-based terminal control method. The touch screen based terminal control method herein may be the touch screen based terminal control method of the above-described respective embodiments.
In the embodiment, the number of touch points and the coordinates of the touch points of the sliding operation of a user on the annular touch screen of the terminal are detected to obtain finger sliding data; calculating the number of touch points and coordinates of the touch points through a touch control algorithm, so as to obtain and display first event information selected by a user through sliding operation; the user can select the first event information through pressing operation, the pressing operation of the user on the annular touch screen is detected, second event information corresponding to the first event information is obtained, and the terminal is controlled according to the second event information; according to the method and the device, the annular touch screen is used for replacing a rotating structure, the possible abnormity of the traditional rotating structure is avoided, and the control on the terminal is realized through the sliding or pressing operation of the user on the annular touch screen.
The present application further provides another embodiment, which is to provide a computer-readable storage medium storing computer-readable instructions executable by at least one processor to cause the at least one processor to perform the steps of the touch screen-based terminal control method as described above.
In the embodiment, the number of touch points and the coordinates of the touch points of the sliding operation of a user on the annular touch screen of the terminal are detected to obtain finger sliding data; calculating the number of touch points and coordinates of the touch points through a touch control algorithm, so as to obtain and display first event information selected by a user through sliding operation; the user can select the first event information through pressing operation, the pressing operation of the user on the annular touch screen is detected, second event information corresponding to the first event information is obtained, and the terminal is controlled according to the second event information; according to the method and the device, the annular touch screen is used for replacing a rotating structure, the possible abnormity of the traditional rotating structure is avoided, and the control of the terminal is realized through the sliding or pressing operation of the user on the annular touch screen.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
It is to be understood that the above-described embodiments are merely illustrative of some, but not restrictive, of the broad invention, and that the appended drawings illustrate preferred embodiments of the invention and do not limit the scope of the invention. This application is capable of embodiments in many different forms and is provided for the purpose of enabling a thorough understanding of the disclosure of the application. Although the present application has been described in detail with reference to the foregoing embodiments, it will be apparent to one skilled in the art that the present application may be practiced without modification or with equivalents of some of the features described in the foregoing embodiments. All equivalent structures made by using the contents of the specification and the drawings of the present application are directly or indirectly applied to other related technical fields, and all the equivalent structures are within the protection scope of the present application.

Claims (10)

1. A terminal control method based on a touch screen is characterized by comprising the following steps:
detecting sliding operation of a user on an annular touch screen of a terminal to record the number of touch points and coordinates of the touch points corresponding to the sliding operation so as to obtain finger sliding data;
calculating the finger sliding data according to a preset touch control algorithm to obtain first event information;
displaying the first event information through the terminal;
detecting the pressing operation of the user on the annular touch screen to obtain second event information corresponding to the first event information;
and controlling the terminal according to the second event information.
2. The touch-screen-based terminal control method according to claim 1, wherein before the step of detecting a sliding operation of a user on the annular touch screen of the terminal, so as to record the number of touch points and coordinates of the touch points corresponding to the sliding operation, and obtain finger sliding data, the method further comprises:
acquiring a page identifier of a current page of a terminal;
selecting sliding prompt information corresponding to the page identification;
and displaying the sliding prompt information through the terminal to prompt a user to perform sliding operation according to the number of preset touch points in the sliding prompt information.
3. The touch-screen-based terminal control method according to claim 2, wherein the step of calculating the finger sliding data according to a preset touch control algorithm to obtain first event information comprises:
checking whether the number of the preset touch points is consistent with the number of the touch points in the finger sliding data;
when the finger sliding data are consistent, calculating the finger sliding data according to a preset touch control algorithm to obtain first event information;
and when the sliding operation is inconsistent with the sliding operation, displaying the re-sliding information through the terminal to indicate the user to perform the sliding operation again.
4. The touch-screen-based terminal control method according to claim 1, wherein the step of detecting a sliding operation of a user on the annular touch screen of the terminal to record the number of touch points and the coordinates of the touch points corresponding to the sliding operation, and obtaining finger sliding data comprises:
detecting touch points of a user on an annular touch screen of the terminal to obtain the number of the touch points;
recording the initial position of the touch point in the sliding operation to obtain the coordinate of the touch point;
and determining the number of the touch points and the coordinates of the touch points as finger sliding data.
5. The touch screen-based terminal control method according to claim 4, wherein the step of calculating the finger sliding data according to a preset touch control algorithm to obtain first event information comprises:
determining a sliding distance calculation mode and a sliding angle calculation mode according to the number of the touch points;
calculating the coordinates of the touch points according to the sliding distance calculation mode and the sliding angle calculation mode to obtain a sliding angle;
determining first event information based on the slip angle.
6. The touch-screen-based terminal control method according to claim 1, wherein the step of detecting a pressing operation of the user on the annular touch screen to obtain second event information corresponding to the first event information comprises:
detecting the pressing operation of the user on the annular touch screen to obtain finger pressing data, wherein the finger pressing data comprises pressing strength, pressing time and the number of pressing points;
and determining second event information corresponding to the first event information according to the finger pressing data.
7. The touch screen-based terminal control method according to any one of claims 1 to 6, wherein the method further comprises:
and displaying candidate event information corresponding to the sliding operation/pressing operation through the terminal.
8. A terminal control device based on a touch screen is characterized by comprising:
the sliding recording module is used for detecting the sliding operation of a user on an annular touch screen of the terminal so as to record the number of touch points and the coordinates of the touch points corresponding to the sliding operation and obtain finger sliding data;
the sliding calculation module is used for calculating the finger sliding data according to a preset touch control algorithm to obtain first event information;
the first display module is used for displaying the first event information through the terminal;
the pressing detection module is used for detecting the pressing operation of the user on the annular touch screen to obtain second event information corresponding to the first event information;
and the terminal control module is used for controlling the terminal according to the second event information.
9. A computer device comprising a memory having computer readable instructions stored therein and a processor which when executed implements the steps of the touch screen based terminal control method according to any one of claims 1 to 7.
10. A computer readable storage medium, characterized in that the computer readable storage medium has computer readable instructions stored thereon, which when executed by a processor, implement the steps of the touch screen based terminal control method according to any one of claims 1 to 7.
CN202210893844.8A 2022-07-27 2022-07-27 Terminal control method and device based on touch screen and computer equipment Pending CN115357175A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210893844.8A CN115357175A (en) 2022-07-27 2022-07-27 Terminal control method and device based on touch screen and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210893844.8A CN115357175A (en) 2022-07-27 2022-07-27 Terminal control method and device based on touch screen and computer equipment

Publications (1)

Publication Number Publication Date
CN115357175A true CN115357175A (en) 2022-11-18

Family

ID=84032014

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210893844.8A Pending CN115357175A (en) 2022-07-27 2022-07-27 Terminal control method and device based on touch screen and computer equipment

Country Status (1)

Country Link
CN (1) CN115357175A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201622954U (en) * 2010-01-28 2010-11-03 苏州瀚瑞微电子有限公司 Panel touch control button
CN104636014A (en) * 2014-12-30 2015-05-20 科世达(上海)管理有限公司 Touch type knob and interface control system
CN110750180A (en) * 2019-09-27 2020-02-04 昆山峰实电子外观应用科技有限公司 Touch electronic knob and wiring structure thereof
CN111164546A (en) * 2017-10-11 2020-05-15 三菱电机株式会社 Operation input device
CN111221427A (en) * 2018-11-23 2020-06-02 中华映管股份有限公司 Working method of knob device
JP2020087174A (en) * 2018-11-29 2020-06-04 株式会社ジャパンディスプレイ Sensor device
CN111344657A (en) * 2017-11-17 2020-06-26 深圳市柔宇科技有限公司 Cylindrical touch device, touch screen and touch method thereof
CN111433716A (en) * 2017-12-14 2020-07-17 三菱电机株式会社 Operation assistance device, touch panel device, and touch panel input system
CN112650419A (en) * 2021-02-24 2021-04-13 烟台正海科技股份有限公司 Anti-false-touch knob touch screen and function starting method thereof
CN113238605A (en) * 2021-04-30 2021-08-10 广东美的厨房电器制造有限公司 Knob assembly, electric appliance, knob control method, control device and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201622954U (en) * 2010-01-28 2010-11-03 苏州瀚瑞微电子有限公司 Panel touch control button
CN104636014A (en) * 2014-12-30 2015-05-20 科世达(上海)管理有限公司 Touch type knob and interface control system
CN111164546A (en) * 2017-10-11 2020-05-15 三菱电机株式会社 Operation input device
CN111344657A (en) * 2017-11-17 2020-06-26 深圳市柔宇科技有限公司 Cylindrical touch device, touch screen and touch method thereof
CN111433716A (en) * 2017-12-14 2020-07-17 三菱电机株式会社 Operation assistance device, touch panel device, and touch panel input system
CN111221427A (en) * 2018-11-23 2020-06-02 中华映管股份有限公司 Working method of knob device
JP2020087174A (en) * 2018-11-29 2020-06-04 株式会社ジャパンディスプレイ Sensor device
CN110750180A (en) * 2019-09-27 2020-02-04 昆山峰实电子外观应用科技有限公司 Touch electronic knob and wiring structure thereof
CN112650419A (en) * 2021-02-24 2021-04-13 烟台正海科技股份有限公司 Anti-false-touch knob touch screen and function starting method thereof
CN113238605A (en) * 2021-04-30 2021-08-10 广东美的厨房电器制造有限公司 Knob assembly, electric appliance, knob control method, control device and storage medium

Similar Documents

Publication Publication Date Title
CN106485124B (en) Operation control method of mobile terminal and mobile terminal
CN104335561B (en) The communication that bio-identification is initiated
KR102505478B1 (en) A flexible device and operating method thereof
CN106415472B (en) Gesture control method and device, terminal equipment and storage medium
KR101941963B1 (en) Method, storage media and system, in particular relating to a touch gesture offset
CN105183284A (en) Short message viewing method and user terminal
CN108463799B (en) Flexible display of electronic device and operation method thereof
US20140137039A1 (en) Systems and Methods for Object Selection on Presence Sensitive Devices
KR102388590B1 (en) Electronic device and method for inputting in electronic device
CN103902056B (en) Dummy keyboard input method, equipment and system
KR102294705B1 (en) Device for Controlling Object Based on User Input and Method thereof
WO2017032006A1 (en) Method and apparatus for displaying information
CN105227759A (en) A kind of call recording method and user terminal
TW201710870A (en) A system and method for operating application icons
CN109032898A (en) A kind of display methods of icon, device, equipment and storage medium
CN104395873A (en) Apparatus including a touch screen and screen change method thereof
CN108846271B (en) Device control method, device, storage medium and electronic device
WO2015131590A1 (en) Method for controlling blank screen gesture processing and terminal
CN107562356B (en) Fingerprint identification positioning method and device, storage medium and electronic equipment
CN105657124A (en) Caller identification method and mobile terminal
CN106250503B (en) Picture processing method and mobile terminal
KR102548687B1 (en) Wearable Device for Controlling Application Executed on Device and Method Thereof
CN105160219A (en) Terminal unlocking method and terminal
CN112578967B (en) Chart information reading method and mobile terminal
CN106845190B (en) Display control system and method

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