Control method and device, electronic equipment and storage medium
By dynamically adjusting the lock point range in the target display scenario of the electronic device, the problem of low operating sensitivity and accuracy of the electronic device is solved, and accurate reporting of touch coordinate information is achieved, improving the operating experience.
Patent Information
- Application Number
- CN202311058940.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-21
- Publication Date
- 2025-02-21
AI Technical Summary
Electronic devices have low sensitivity and accuracy problems when responding to operations, resulting in jittering of coordinate positions during sliding, clicking buttons becomes sliding operation, or unable to slide during sliding operation at a small distance, which cannot meet the user's requirements for precise sliding.
By monitoring the display scene of the current display interface of the electronic device, determine the initial lock point range corresponding to the target display scene, and adjust the initial lock point range to the target lock point range according to the target display scene and touch events to improve touch coordinate information accuracy of reporting.
It realizes accurate reporting of touch coordinate information under different touch events, improves the sensitivity and accuracy of electronic equipment operation, and solves the problems of operation jitter and inaccurate response caused by inappropriate lock point range settings.
Smart Images

Figure CN119493488A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of touch interaction technology, and in particular to a control method, device, electronic equipment and storage medium. Background Art
[0002] The electronic device responds to the operation of the operating body on the display screen based on a lock point range. The process is that if the moving distance of the operating body is less than or equal to the lock point range, the electronic device ignores the coordinate data generated during the movement of the operating body, and the electronic device still uses the previous coordinate data; if the moving distance of the operating body is greater than the lock point range, the electronic device uses the coordinate data generated during the movement of the operating body.
[0003] However, electronic devices that use lock point range response operations have problems with low sensitivity and accuracy. If the lock point range is too small, the coordinate position will easily jitter during the sliding process, and clicking the button will become a sliding operation (making the button control not produce a click response, such as the problem of invalid skills in the game); if the lock point range is too large, it will cause the sliding to stop when sliding at some small distances, and it cannot meet the user's requirements for precise sliding (such as the problem of invalid movement of game characters), which seriously affects the normal game experience. Summary of the invention
[0004] The purpose of the embodiments of the present invention is to provide a control method, device, electronic device and storage medium to solve the technical problem of low sensitivity and accuracy of electronic device operation.
[0005] In a first aspect, an embodiment of the present invention provides a control method, including:
[0006] Monitor the display scene of the current display interface of the electronic device;
[0007] In a case where the display scene is a target display scene, determining an initial lock point range corresponding to the target display scene;
[0008] According to the target display scene and the touch event in the target display scene, the initial lock point range is adjusted to the target lock point range.
[0009] In a second aspect, an embodiment of the present invention provides a control device, including:
[0010] A monitoring module, used to monitor the display scene of the current display interface of the electronic device;
[0011] A determination module, configured to determine, when the display scene is a target display scene, an initial lock point range corresponding to the target display scene;
[0012] The adjustment module is used to adjust the initial lock point range to the target lock point range according to the target display scene.
[0013] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the control methods described above when executing the computer program.
[0014] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any one of the control methods described above are implemented.
[0015] Embodiments of the present invention provide a control method, device, electronic device and storage medium. The method can accurately report touch coordinate information under different touch events by dynamically adjusting the lock point range corresponding to the current scene according to the touch event in the target display scene, thereby improving the sensitivity and accuracy of the electronic device operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a flow chart of a control method provided by an embodiment of the present invention;
[0017] Figure 2 is another flow chart of the control method provided by an embodiment of the present invention;
[0018] Figure 3 is a third flow chart of the control method provided by an embodiment of the present invention;
[0019] Figure 4 is a structural schematic diagram of a control device provided by an embodiment of the present invention;
[0020] Figure 5 is a structural schematic diagram of an electronic device provided by an embodiment of the present invention;
[0021] Figure 6 This is another structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0022] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0023] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0024] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0025] In the related art, electronic devices use lock point range response operations with low sensitivity and accuracy. If the lock point range is too small, the coordinate position will easily jitter during the sliding process, and clicking the button will become a sliding operation (making the button control not produce a click response, such as the problem of invalid skills in the game); if the lock point range is too large, it will cause the sliding to stop when sliding at some small distances, and it will not meet the user's requirements for precise sliding (such as the problem of invalid movement of game characters), which seriously affects the normal experience of the game.
[0026] In order to solve the technical problems existing in the related art, the embodiment of the present invention provides a control method, see Figure 1 , Figure 1 is a flow chart of a control method provided by an embodiment of the present invention, the method comprising steps 101 to 103;
[0027] Step 101: monitor the display scene of the current display interface of the electronic device.
[0028] In this embodiment, the display scene of the current display interface of the electronic device may include multiple scenes, such as editing painting scenes, game scenes, etc., and the display scene of the current display interface of the electronic device is determined by obtaining the application information running on the current display interface of the electronic device.
[0029] For example, when the application information obtained that the current display interface of the electronic device is running is drawing board application information such as the application name of the drawing board application, it is determined that the display scene running on the current display interface of the electronic device is the editing drawing scene; when the application information obtained that the current display interface of the electronic device is running is game information such as the application name of the game application, it is determined that the display scene running on the current display interface of the electronic device is the game scene.
[0030] It should be noted that the display scene provided in this embodiment is not limited to the display scene mentioned in the above embodiment, and can also be a display scene such as a video playback scene, which is not specifically limited here.
[0031] Step 102: When the display scene is a target display scene, determine an initial lock point range corresponding to the target display scene.
[0032] In this embodiment, this embodiment is mainly explained by taking the game scene as the target display scene as an example. In the existing game scenes, the touch game interface often appears, the game interface has no actual response or the game interface jitters. The main reason for this problem is the inappropriate setting of the lock point range under the game scene. In order to solve this problem, this embodiment needs to first determine the initial lock point range corresponding to the game scene. Specifically, the step of determining the initial lock point range corresponding to the target display scene when the display scene is the target display scene provided in this embodiment may include: when the display scene is the target display scene, searching for a lock point range that matches the target display scene from a preset lock point range set, and determining the lock point range as the initial lock point range.
[0033] The preset lock point range set provided in this embodiment is a lock point range set with a mapping relationship pre-set, and the mapping relationship in the lock point range set provided in this embodiment is a mapping relationship between the display scene of the electronic device and the lock point range. Therefore, after determining the target display scene, the initial lock point range corresponding to the target display scene can be found in the lock point range set provided in this embodiment according to the mapping relationship.
[0034] Step 103: According to the target display scene and the touch event in the target display scene, the initial lock point range is adjusted to the target lock point range.
[0035] In this embodiment, after determining that the display scene currently displayed by the electronic device is the target display scene, that is, the game scene, it is also necessary to dynamically adjust the initial lock point range according to the touch events in the game scene, such as click events, sliding events and other touch events, so as to adjust the initial lock point range to the target lock point range, thereby providing accurate touch coordinate reporting capability for the touch events in the game scene, so that the electronic device can respond to the reported touch coordinates in a timely manner to perform corresponding operations, effectively improving the sensitivity and accuracy of the electronic device during operation.
[0036] In some embodiments, see Figure 2 , Figure 2 is another flow chart of the control method provided by the embodiment of the present invention, such as Figure 2 As shown, the control method provided in this embodiment includes steps 201 to 205;
[0037] Step 201: monitor the display scene of the current display interface of the electronic device.
[0038] Step 202: when the display scene is a target display scene, searching for a lock point range matching the target display scene from a preset lock point range set, and determining the lock point range as an initial lock point range.
[0039] In this embodiment, the target display scene provided by this embodiment may be a game scene.
[0040] Step 203: acquiring a touch event of the user on the electronic device in the target display scene.
[0041] In this embodiment, the touch control operation on the display screen of the electronic device can be monitored to obtain the touch control event of the user on the electronic device. Specifically, the touch control event provided by this embodiment can be a click event and a slide event.
[0042] Step 204: Determine corresponding touch coordinate information according to the touch event.
[0043] In this embodiment, the touch event provided in this embodiment corresponds to the touch coordinate information, so after the touch event is determined, the corresponding touch coordinate information can be determined. For example, when the touch event is a click event, the corresponding touch coordinate information can be determined to be a single touch coordinate information; when the touch event is a slide event, the corresponding touch coordinate information can be determined to be a continuous plurality of touch coordinate information.
[0044] The touch coordinate information provided in this embodiment may be coordinate values on a display screen of the electronic device.
[0045] Step 205 : When the touch coordinate information is continuous touch coordinates, the initial lock point range is adjusted to the target lock point range.
[0046] In this embodiment, when the touch coordinate information is detected as continuous touch coordinates, it can be determined that the current touch event is a sliding event. At this time, in order to improve the accuracy of the response to the sliding event, the initial lock point range in the current game scene can be adjusted to the target lock point range. Specifically, the target lock point range provided in this embodiment can be smaller than the initial lock point range, thereby improving the accuracy of the response to the sliding event, so that the electronic device can respond to the reported touch coordinates in a timely manner to perform the corresponding operation.
[0047] In some embodiments, the touch coordinate information provided by this embodiment can also be a single touch coordinate. If the touch coordinate information is detected as a single touch coordinate, it can be determined that the current touch event is a click event. Since the click event does not involve the movement and switching of the scene, this embodiment may not adjust the initial lock point range corresponding to the current game scene.
[0048] As an optional embodiment, this embodiment can also dynamically adjust the initial lock point range corresponding to the current game scene according to the change of the coordinate value of the touch coordinate information. Specifically, the step of adjusting the initial lock point range to the target lock point range when the touch coordinate information is continuous touch coordinates provided in this embodiment can include: when the touch coordinate information is continuous touch coordinates, obtaining the coordinate value change information of the touch coordinate information; determining the target lock point range according to the coordinate value change information; and adjusting the initial lock point range to the target lock point range.
[0049] Among them, the coordinate value change information provided by this embodiment is the distance range of the coordinate value of the touch coordinate on the display screen of the electronic device. Specifically, the coordinate value change information is determined by calculating the distance between the coordinate value of the starting coordinate and the coordinate value of the coordinate farthest from the starting coordinate.
[0050] Among them, the touch coordinate information provided by this embodiment can represent the game operation of the user in the game scene. Therefore, different game operations can correspond to linear long-distance touch coordinate information, or circular short-distance touch coordinate information. Touch coordinate information of different shapes corresponds to different touch ranges, and thus corresponds to different adjustment schemes, that is, different target lock point ranges. Therefore, this embodiment can determine the specific touch range of the touch coordinate information by calculating the coordinate value change information of the touch coordinate information, so as to dynamically adjust the initial lock point range in the current game scene for different touch ranges, so as to improve the sensitivity and accuracy of the electronic device operation.
[0051] In this embodiment, different target lock point ranges can be determined through different coordinate value change information. Specifically, the step of determining the target lock point range according to the coordinate value change information provided in this embodiment may include: when the coordinate change information exceeds a preset threshold, determining the first lock point range as the target lock point range, and the first lock point range is greater than or equal to the initial lock point range; when the coordinate change information does not exceed the preset threshold, determining the second lock point range as the target lock point range, and the second lock point range is smaller than the initial lock point range.
[0052] Among them, the preset threshold provided in this embodiment can be the threshold of the initial lock point range corresponding to the current game scene. Therefore, when the coordinate change information exceeds the threshold of the initial lock point range corresponding to the current game scene, the initial lock point range in the current game scene will not affect the reporting of the current touch event (touch coordinate information), so the first lock point range provided in this embodiment can be equal to the initial lock point range. In order to prevent the initial lock point range from being set too small, making the touch event reporting too sensitive, resulting in screen jitter when the user operates, the first lock point range provided in this embodiment can also be larger than the initial lock point range.
[0053] When the coordinate change information does not exceed the threshold of the initial lock point range corresponding to the current game scene, the current touch event can be determined to be a micro-operation of the user, such as a fine aiming operation in a shooting game. However, since the coordinate change information does not exceed the threshold of the initial lock point range, the touch event (touch coordinate information) in the current game scene will not be reported to the electronic device, resulting in a situation where the game interface does not actually respond. Therefore, the second lock point range provided in this embodiment can be smaller than the initial lock point range, specifically, it can be smaller than the touch range corresponding to the coordinate change information, so that the current touch event can be stably reported, improving the sensitivity and accuracy of the electronic device when operating.
[0054] For example, the initial lock point range corresponding to the current game scene is 10, and the coordinate value of the starting coordinate of the touch event provided in this embodiment is 5, then the range in which the touch event will be locked and not reported is -5 to 15. Therefore, when there is no touch coordinate value less than -5 or greater than 15 in the touch coordinate information corresponding to the touch event, the touch event will be locked and not reported, but the coordinate value 5 will continue to be reported, resulting in the user's operation (touch event) in the current game scene not being responded to by the electronic device, that is, the game interface has no actual response. At this time, in order to stably report the current touch event and improve the sensitivity and accuracy of the electronic device during operation, the present embodiment needs to determine the coordinate change information of the current touch event. For example, when the coordinate change information is 5, it can be determined that the coordinate value range of the touch coordinates of this touch event is 0 to 10. The range of 0 to 10 is in the range of -5 to 15 that will not be reported by the lock point. Therefore, the present embodiment can reduce the initial lock point range 10 to reduce it to the range of 0 to 10, such as 3 to 7, that is, the second lock point range (target lock point range) is 2. In this way, the current touch event can be stably reported, and the sensitivity and accuracy of the electronic device during operation can be improved.
[0055] In some embodiments, see Figure 3 , Figure 3 is a third flow chart of the control method provided by the embodiment of the present invention, such as Figure 3 As shown, the control method provided in this embodiment includes steps 301 to 307;
[0056] Step 301: monitor the display scene of the current display interface of the electronic device.
[0057] Step 302: when the display scene is a target display scene, searching for a lock point range matching the target display scene from a preset lock point range set, and determining the lock point range as an initial lock point range.
[0058] In this embodiment, the target display scene provided by this embodiment may be a game scene.
[0059] Step 303: Acquire a touch event of the user on the electronic device in the target display scene.
[0060] Step 304: Determine corresponding touch coordinate information according to the touch event.
[0061] Step 305 : when the touch coordinate information is continuous touch coordinates, obtain the starting coordinate position in the touch coordinate information.
[0062] Step 306: When the starting coordinate position is in a non-target coordinate area, the third lock point range is determined as the target lock point range, and the third lock point range is larger than the initial lock point range.
[0063] In this embodiment, since the display scene of this embodiment is a game scene, the target coordinate area provided in this embodiment can be a game character displacement operation area, or a aiming lens movement area in a shooting game. Therefore, when it is determined that the starting coordinate position in the touch coordinate information is not in the target coordinate area, it can be determined that the user is not performing a game character movement operation or an aiming lens movement operation, but is operating in an area outside the game displacement operation area or the aiming lens movement area, such as a view rotation operation, or an operation of interacting with a game NPC. At this time, in order to prevent the initial lock point range in the current game scene from being too small, causing the user's view to jitter during the view rotation operation, or interrupting the interaction with the game NPC, the third lock point range provided in this embodiment can be larger than the initial lock point range, thereby avoiding the above-mentioned situation.
[0064] Step 307: when the starting coordinate position is in the target coordinate area, determine the fourth lock point range as the target lock point range, and the fourth lock point range is smaller than the initial lock point range.
[0065] In this embodiment, since the target coordinate area provided by this embodiment can be a game character displacement operation area, or can be an aiming lens movement area in a shooting game, when it is determined that the starting coordinate position in the touch coordinate information is within the target coordinate area, it can be determined that the user is performing a game character movement operation or an aiming lens movement operation. At this time, in order to prevent the touch event (touch coordinate information) in the current game scene from not being reported to the electronic device, resulting in the game interface not actually responding. Therefore, the fourth lock point range provided by this embodiment can be smaller than the initial lock point range, specifically, it can be smaller than the touch range corresponding to the coordinate change information of this touch event, so that the current touch event can be stably reported, and the sensitivity and accuracy of the electronic device when operating can be improved.
[0066] In summary, an embodiment of the present invention provides a control method, which includes monitoring the display scene of the current display interface of the electronic device, determining the initial lock point range corresponding to the target display scene when the display scene is the target display scene, and adjusting the initial lock point range to the target lock point range according to the target display scene and the touch event under the target display scene. By adopting the embodiment of the present invention, when it is determined that the scene currently displayed by the electronic device is the target display scene, the initial lock point range corresponding to the target display scene can be dynamically adjusted to the target lock point range according to the touch event under the target display scene, thereby improving the accuracy of the touch coordinate information reported by the touch event, thereby improving the sensitivity and accuracy of the electronic device when operating.
[0067] According to the method described in the above embodiment, this embodiment will be further described from the perspective of a control device, which can be implemented as an independent entity or integrated into an electronic device, such as a terminal, which can include a mobile phone, a tablet computer, etc.
[0068] See also Figure 4 , Figure 4 is a schematic diagram of a structure of a control device provided by an embodiment of the present invention, such as Figure 4 As shown, the control device 400 provided in the embodiment of the present invention includes: a monitoring module 401, a determination module 402 and an adjustment module 403;
[0069] The monitoring module 401 is used to monitor the display scene of the current display interface of the electronic device.
[0070] The determination module 402 is used to determine an initial lock point range corresponding to the target display scene when the display scene is the target display scene.
[0071] In some embodiments, the determination module 402 provided in this embodiment is specifically used to: when the display scene is a target display scene, search for a lock point range matching the target display scene from a preset lock point range set, and determine the lock point range as an initial lock point range.
[0072] The adjustment module 403 is used to adjust the initial lock point range to the target lock point range according to the target display scene.
[0073] In some embodiments, the adjustment module 403 provided by the embodiment of the present invention includes: an acquisition unit, a determination unit and an adjustment unit;
[0074] The acquisition unit is used to acquire a touch event of a user on the electronic device in a target display scene.
[0075] The determination unit is used to determine corresponding touch coordinate information according to the touch event.
[0076] The adjustment unit is used to adjust the initial lock point range to the target lock point range when the touch coordinate information is continuous touch coordinates.
[0077] In some embodiments, the adjustment unit provided in this embodiment is specifically used to: obtain coordinate value change information of the touch coordinate information when the touch coordinate information is continuous touch coordinates; determine the target lock point range based on the coordinate value change information; and adjust the initial lock point range to the target lock point range.
[0078] In some embodiments, the adjustment unit provided in this embodiment is also specifically used to: when the coordinate change information exceeds a preset threshold, determine the first lock point range as the target lock point range, and the first lock point range is greater than or equal to the initial lock point range; when the coordinate change information does not exceed the preset threshold, determine the second lock point range as the target lock point range, and the second lock point range is smaller than the initial lock point range.
[0079] In some embodiments, the adjustment unit provided in this embodiment is specifically used to: when the touch coordinate information is a continuous touch coordinate, obtain the starting coordinate position in the touch coordinate information; when the starting coordinate position is in a non-target coordinate area, determine the third lock point range as the target lock point range, and the third lock point range is larger than the initial lock point range; when the starting coordinate position is in the target coordinate area, determine the fourth lock point range as the target lock point range, and the fourth lock point range is smaller than the initial lock point range.
[0080] During specific implementation, the above modules and / or units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above modules and / or units can refer to the previous method embodiments. The specific beneficial effects that can be achieved can also refer to the beneficial effects in the previous method embodiments, which will not be repeated here.
[0081] Also, see Figure 5 , Figure 5 1 is a schematic diagram of a structure of an electronic device provided by an embodiment of the present invention, and the electronic device may be a mobile terminal such as a smart phone, a tablet computer, or the like. Figure 5 As shown, the electronic device 500 includes a processor 501 and a memory 502. The processor 501 is electrically connected to the memory 502.
[0082] The processor 501 is the control center of the electronic device 500. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device 500 and processes data by running or loading applications stored in the memory 502 and calling data stored in the memory 502, thereby monitoring the electronic device 500 as a whole.
[0083] In this embodiment, the processor 501 in the electronic device 500 will load the instructions corresponding to the processes of one or more applications into the memory 502 according to the following steps, and the processor 501 will run the application stored in the memory 502, thereby implementing any step in the control method provided in the above embodiment.
[0084] The electronic device 500 can implement the steps in any embodiment of the control method provided in the embodiments of the present invention, and therefore can achieve the beneficial effects that can be achieved by any control method provided in the embodiments of the present invention. Please refer to the previous embodiments for details and will not be repeated here.
[0085] See also Figure 6 , Figure 6 is another structural schematic diagram of an electronic device provided by an embodiment of the present invention, such as Figure 6 As shown, Figure 6 The specific structural block diagram of the electronic device provided by the embodiment of the present invention is shown, and the electronic device can be used to implement the control method provided in the above embodiment. The electronic device 600 can be a mobile terminal such as a smart phone or a laptop computer.
[0086] The RF circuit 610 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, and thus communicate with a communication network or other devices. The RF circuit 610 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity module (SIM) cards, memories, etc. The RF circuit 610 can communicate with various networks such as the Internet, corporate intranets, wireless networks, or communicate with other devices through wireless networks. The above-mentioned wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. The above-mentioned wireless networks can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (such as Institute of Electrical and Electronics Engineers standards IEEE 802.11a, IEEE 802.11b, IEEE802.11g and / or IEEE802.11n), Voice over Internet Protocol (VoIP), Worldwide Interoperability for Microwave Access (Wi-Max), other protocols for email, instant messaging and short messages, and any other suitable communication protocols, even those that have not yet been developed.
[0087] The memory 620 may be used to store software programs and modules, such as program instructions / modules corresponding to the control method in the above-mentioned embodiment. The processor 680 executes various functional applications and controls by running the software programs and modules stored in the memory 620 .
[0088] The memory 620 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 620 may further include a memory remotely arranged relative to the processor 680, and these remote memories may be connected to the electronic device 600 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0089] The input unit 630 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 630 may include a touch-sensitive surface 631 and other input devices 632. The touch-sensitive surface 631, also known as a touch display screen or touchpad, can collect user touch operations on or near it (such as operations performed by users using fingers, styluses, or any other suitable objects or accessories on or near the touch-sensitive surface 631), and drive corresponding connection devices according to a pre-set program. Optionally, the touch-sensitive surface 631 may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 680, and can receive and execute commands sent by the processor 680. In addition, the touch-sensitive surface 631 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 631, the input unit 630 may further include other input devices 632. Specifically, the other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
[0090] The display unit 640 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device 600, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 640 may include a display panel 641, and optionally, the display panel 641 may be configured in the form of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc. Further, the touch-sensitive surface 631 may cover the display panel 641, and when the touch-sensitive surface 631 detects a touch operation on or near it, it is transmitted to the processor 680 to determine the type of the touch event, and then the processor 680 provides corresponding visual output on the display panel 641 according to the type of the touch event. Although in the figure, the touch-sensitive surface 631 and the display panel 641 are implemented as two independent components to implement input and output functions, in some embodiments, the touch-sensitive surface 631 and the display panel 641 can be integrated to implement input and output functions.
[0091] The electronic device 600 may also include at least one sensor 650, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 641 according to the brightness of the ambient light, and the proximity sensor may generate an interrupt when the flip cover is closed or closed. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can also be configured in the electronic device 600, they will not be repeated here.
[0092] The audio circuit 660, the speaker 661, and the microphone 662 can provide an audio interface between the user and the electronic device 600. The audio circuit 660 can transmit the electrical signal converted from the received audio data to the speaker 661, which is converted into a sound signal for output; on the other hand, the microphone 662 converts the collected sound signal into an electrical signal, which is received by the audio circuit 660 and converted into audio data, and then the audio data is output to the processor 680 for processing, and then sent to another terminal through the RF circuit 610, or the audio data is output to the memory 620 for further processing. The audio circuit 660 may also include an earplug jack to provide communication between an external headset and the electronic device 600.
[0093] The electronic device 600 can help the user receive requests, send information, etc. through the transmission module 670 (such as a Wi-Fi module), which provides the user with wireless broadband Internet access. Although the transmission module 670 is shown in the figure, it is understandable that it is not a necessary component of the electronic device 600 and can be omitted as needed without changing the essence of the invention.
[0094] The processor 680 is the control center of the electronic device 600. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 620, and calling data stored in the memory 620, it executes various functions of the electronic device 600 and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 680 may include one or more processing cores; in some embodiments, the processor 680 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It can be understood that the above-mentioned modem processor may not be integrated into the processor 680.
[0095] The electronic device 600 also includes a power supply 690 (such as a battery) for supplying power to various components. In some embodiments, the power supply can be logically connected to the processor 680 through a power management system, so that the power management system can manage charging, discharging, and power consumption management. The power supply 690 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0096] Although not shown, the electronic device 600 also includes a camera (such as a front camera, a rear camera), a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the display unit of the electronic device is a touch screen display, and the mobile terminal also includes a memory, and one or more programs, wherein one or more programs are stored in the memory, and are configured to be executed by one or more processors to implement any step of the control method provided in the above embodiment.
[0097] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation of the above modules can be found in the previous method embodiments, which will not be repeated here.
[0098] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling related hardware through instructions, and the instructions can be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present invention provides a storage medium, which stores a plurality of instructions, and when the instructions are executed by the processor, any step in the control method provided in the above embodiments can be implemented.
[0099] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0100] Since the instructions stored in the storage medium can execute the steps in any embodiment of the control method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any control method provided in the embodiments of the present invention can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0101] The above is a detailed introduction to a control method, device, electronic device and storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application. Moreover, for those of ordinary skill in the art, without departing from the principles of the present invention, several improvements and modifications can be made, and these improvements and modifications are also regarded as the protection scope of the present invention.
Claims
1. A control method, characterized in that: include: Monitor the display scene of the current display interface of the electronic device; In a case where the display scene is a target display scene, determining an initial lock point range corresponding to the target display scene; According to the target display scene and the touch event in the target display scene, the initial lock point range is adjusted to the target lock point range.
2. The method according to claim 1, characterized in that The adjusting the initial lock point range to the target lock point range according to the target display scene and the touch event in the target display scene includes: In the target display scenario, obtaining a touch event of a user on the electronic device; Determine corresponding touch coordinate information according to the touch event; When the touch coordinate information is continuous touch coordinates, the initial lock point range is adjusted to a target lock point range.
3. The method according to claim 2, characterized in that When the touch coordinate information is a continuous touch coordinate, adjusting the initial lock point range to a target lock point range includes: When the touch coordinate information is continuous touch coordinates, obtaining coordinate value change information of the touch coordinate information; Determine the target lock point range according to the coordinate value change information; The initial locking point range is adjusted to the target locking point range.
4. The method according to claim 3, characterized in that Determining the target locking point range according to the coordinate value change information includes: When the coordinate change information exceeds a preset threshold, determining a first lock point range as a target lock point range, wherein the first lock point range is greater than or equal to the initial lock point range; When the coordinate change information does not exceed the preset threshold, a second lock point range is determined as a target lock point range, and the second lock point range is smaller than the initial lock point range.
5. The method according to claim 2, characterized in that When the touch coordinate information is a continuous touch coordinate, adjusting the initial lock point range to a target lock point range includes: When the touch coordinate information is continuous touch coordinates, obtaining a starting coordinate position in the touch coordinate information; In the case where the starting coordinate position is in a non-target coordinate area, a third lock point range is determined as a target lock point range, and the third lock point range is larger than the initial lock point range; When the starting coordinate position is in the target coordinate area, a fourth lock point range is determined as the target lock point range, and the fourth lock point range is smaller than the initial lock point range.
6. The method according to claim 1, characterized in that When the display scene is a target display scene, determining an initial lock point range corresponding to the target display scene includes: In the case that the display scene is a target display scene, a lock point range matching the target display scene is searched from a preset lock point range set, and the lock point range is determined as an initial lock point range.
7. A control device, characterized in that: include: A monitoring module, used to monitor the display scene of the current display interface of the electronic device; A determination module, configured to determine, when the display scene is a target display scene, an initial lock point range corresponding to the target display scene; The adjustment module is used to adjust the initial lock point range to the target lock point range according to the target display scene.
8. The device according to claim 7, characterized in that The adjustment module includes: an acquisition unit, a determination unit and an adjustment unit; The acquisition unit is used to acquire a touch event of a user on the electronic device in the target display scene; The determining unit is used to determine corresponding touch coordinate information according to the touch event; The adjustment unit is used to adjust the initial lock point range to a target lock point range when the touch coordinate information is continuous touch coordinates.
9. An electronic device, characterized in that: The electronic device comprises a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor implements the steps in the method according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the method according to any one of claims 1 to 6 are implemented.