Touch method and related equipment

By distributing touch events to game applications and gesture navigation modules in electronic devices, the problem that electronic devices receive user operations but cannot respond in game applications is solved, reducing the problem of interruption and improving user game experience and operation accuracy.

CN119303291APending Publication Date: 2025-01-14HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411028613.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-12
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

Electronic devices may experience problems in game applications where users are unable to respond, resulting in the user's gaming experience, especially when real-time operation requirements are high in multiplayer online tactical competitive games, it is easy to cause interruption problems.

Method used

By introducing a touch method in an electronic device, the events corresponding to the touch operation sliding up from the bottom of the screen are distributed to the game application and gesture navigation module respectively, reducing the problem of interruption caused by accidentally triggering the gesture navigation window and improving the user's gaming experience . The specific implementation includes after the game application is started, the gesture navigation module indicates information to indicate that the electronic device will distribute it to the game application and the gesture navigation module respectively when it receives an input event, and set the input event dual-send area under appropriate conditions to cover the gesture navigation. window.

Benefits of technology

It effectively reduces the interruption problem during the game, improves the user's gaming experience, enables electronic devices to respond more accurately to user operations, and improves the coherence and fluency of the game.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119303291A_ABST
    Figure CN119303291A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a touch method and related equipment. The method comprises the following steps: at a first moment, the electronic equipment displays a first picture and a first control in a first window; at the second moment, the electronic equipment receives the first operation in the first area; in response to the first operation, the electronic equipment respectively distributes the first input event to the first application and the gesture navigation module; the first input event is an input event corresponding to the first operation; the gesture navigation module is used for managing gesture related events received in the first area, the first window is a window of a first application, and the first application does not comprise the gesture navigation module; the electronic equipment displays a second picture and the first control in the first window, the second picture is a picture obtained by the first application in response to triggering of the first control in the first picture, and the second picture is different from the first picture. Therefore, the touch breaking problem caused by false triggering of the gesture navigation window by the user in the game scene can be reduced, so that the game experience of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the invention patent application with the application date of July 12, 2023, application number 202310861699.X, and invention name “Touch method and related equipment”. Technical Field

[0002] The present application relates to the field of terminal technology, and in particular to a touch control method and related equipment. Background Art

[0003] The electronic device may support game applications; for example, the game application may include multiplayer online battle arena (MOBA). Such games often have strong real-time requirements for operations. For example, when receiving a trigger operation of a user clicking a skill or sliding a wheel, the electronic device needs to perform game operations such as attacking, moving, and running in real time.

[0004] However, in a possible implementation, the electronic device may receive user operations but fail to respond to game operations, affecting the user's gaming experience. Summary of the invention

[0005] The embodiments of the present application provide a touch method and related devices, which are applied to the field of terminal technology. In a game scenario, the electronic device can distribute events corresponding to touch operations of sliding upward from the bottom of the screen to the game application, which can reduce the problem of touch interruption in the game application.

[0006] In the first aspect, the embodiment of the present application proposes a touch control method. The method includes: at a first moment, the electronic device displays a first screen and a first control in a first window, and the first screen is in a full-screen state; at a second moment, the electronic device receives a first operation in a first area; in response to the first operation, the electronic device distributes a first input event to a first application and a gesture navigation module respectively; the first input event is an input event corresponding to the first operation; the gesture navigation module is used to manage gesture-related events received in the first area, the first window is a window of the first application, and the first application does not include a gesture navigation module; the electronic device displays a second screen and a first control in the first window, and the second screen is a screen obtained by the first application in response to triggering the first control in the first screen, and the second screen is different from the first screen; the first moment is earlier than the second moment. In this way, the problem of disconnection caused by the user's mistaken triggering of the gesture navigation window in the game scene can be reduced, thereby improving the user's gaming experience.

[0007] In a possible implementation, it further includes: after the first application is started, the gesture navigation module indicates first information, and the first information is used to instruct the electronic device to distribute the first input event to the first application and the gesture navigation module respectively when receiving the first input event in the first area. In this way, the electronic device can execute the process of sending the input event to both the game application and the gesture navigation module only after receiving the first signal.

[0008] In a possible implementation, after the first application is started, the gesture navigation module indicates the first information, including: after the first application is started, if the first application is in a preset application list, the electronic device indicates a first instruction to the gesture navigation module; and the gesture navigation module indicates the first information according to the first instruction. In this way, the electronic device can determine whether the current game application is applicable to the method of distributing input events to the game application and the gesture navigation module through the whitelist, thereby improving the accuracy of the solution.

[0009] In a possible implementation, in response to the first operation, the electronic device distributes the first input event to the first application and the gesture navigation module respectively, including: when the name of the window where the down point of the first operation is located is the second window, the electronic device distributes the first input event to the gesture navigation module and the first application respectively; wherein the second window is a window managed by the gesture navigation module; the second window is located on the upper layer of the first window, the second window is smaller than the first window, and the second window covers the first area. In this way, after the electronic device sets the gesture navigation area as the input event dual-sending area, the electronic device distributes the input event of the down point in the gesture navigation window to the game application and the gesture navigation module respectively, so as to reduce the problem of disconnection during the game and improve the user's gaming experience.

[0010] In a possible implementation, the size of the second window is the same as the size of the first area, the width of the first window is the same as the second window, and the height of the first window is smaller than the second window. In this way, the first area can cover the gesture navigation window to ensure that the triggering operations in the gesture navigation window all fall into the first area.

[0011] In a possible implementation, after the electronic device displays the second screen and the first control in the first window, the electronic device further includes: at a third moment, the electronic device receives a second operation in the second area; wherein the second area is a part of the first area; the second moment is earlier than the third moment, and the time difference between the third moment and the second moment is less than the time threshold; in response to the second operation, the electronic device distributes the second input event to the gesture navigation module, and does not distribute it to the first application; the second input event is an input event corresponding to the second operation; the electronic device displays the desktop, and the electronic device runs the first application in the background. In this way, the game application can be prevented from erroneously responding to the second swipe-up operation, reducing the occurrence of problematic scenarios.

[0012] In a possible implementation, the height of the second area is the same as that of the first area, and the second area is located in the middle of the first area. In this way, the native return to desktop scenario can be used, and the user can habitually swipe up from the middle to return the electronic device to the desktop without affecting the user's operation.

[0013] In a possible implementation, it also includes: after the first application is started, the electronic device indicates a second instruction to the desktop application; the desktop application monitors the first input event; the desktop application indicates second information to the gesture navigation module, and the second information is used to indicate the creation of a third window; wherein the second information includes at least one of the following: the transparency format of the third window, the title of the third window, the position of the third window, the height of the third window, and the width of the third window; wherein the transparency format of the third window is invisible to the user; the third window is located on the upper layer of the second window, the third window is smaller than the second window, and the third window covers the second area; the electronic device covers the third window on the upper layer of the second window within a time threshold from the second moment. In this way, after the electronic device receives the first operation in the first area, the electronic device can create a third window, so that when the user performs the second operation to control the electronic device to return to the desktop, the game application does not respond to the second input event, reducing problem scenarios and improving the user's gaming experience.

[0014] In a possible implementation, the third window overlaps with the center position of the second window, the width of the third window is smaller than the width of the second window, and the height of the third window is equal to the height of the second window. In this way, during the game, the user can control the electronic device to return to the desktop by sliding up a second time at the middle position, thereby improving the user's gaming experience.

[0015] In a possible implementation, in response to the second operation, the electronic device distributes the second input event to the gesture navigation module, and does not distribute it to the first application, including: when the window name at the down point of the second operation is the title of the third window, the electronic device distributes the second input event to the gesture navigation module, and does not distribute it to the first application. In this way, the electronic device can return to the desktop when receiving the second swipe up operation, and the game application does not respond to the swipe up operation, so as to reduce problem scenarios and improve the user's gaming experience.

[0016] In a possible implementation, the electronic device further displays a navigation bar and prompt information in response to the first operation; the navigation bar is used to indicate the location of the second area, and the prompt information is used to prompt the user to perform the second operation in the second area so that the electronic device can display the desktop. In this way, the user can intuitively understand the corresponding operation of returning to the desktop through text, thereby improving the user's usage experience.

[0017] In a possible implementation, when the number of times the prompt information is displayed reaches a preset number, the desktop application no longer displays the prompt information. In this way, after the user understands the function, the electronic device no longer displays the prompt information, which can improve the simplicity and aesthetics of the interface.

[0018] In a possible implementation, the navigation bar and the prompt information are both controlled and displayed by the desktop application. In this way, the electronic device can control the display and hiding of the navigation bar and the display and hiding of the prompt information through the desktop application.

[0019] In a possible implementation, it also includes: at the fourth moment, the electronic device displays the third screen and the first control in the first window; at the fifth moment, the electronic device receives the third operation in the first area; in response to the third operation, the electronic device distributes the third input event to the first application and the gesture navigation module respectively; the third input event is an input event corresponding to the third operation; the electronic device displays the fourth screen and the first control in the window of the first application, the fourth screen is a screen obtained by the first application in response to the triggering of the first control in the third screen, and the fourth screen is different from the third screen; the fifth moment is earlier than the fourth moment; at the sixth moment, the electronic device receives the fourth operation in the second area; in response to the fourth operation, the electronic device distributes the fourth input event to the gesture navigation module and the first application respectively; the fourth input event is an input event corresponding to the fourth operation; the fifth moment is earlier than the sixth moment, and the time difference between the fifth moment and the sixth moment is greater than the time threshold. In this way, the scenario of the electronic device mistakenly responding to return to the desktop can be reduced.

[0020] In a possible implementation, the method further includes: the electronic device covers the third window on the second window within a time threshold from the fourth moment; and the electronic device removes the third window after the time threshold from the fourth moment. In this way, the scenario of the electronic device erroneously responding to return to the desktop can be reduced.

[0021] In a possible implementation, it also includes: at the seventh moment, the electronic device displays the fifth screen in the window of the second application, and the fifth screen is in full screen state; the sixth moment is earlier than the seventh moment; the second application is not in the preset application list; at the eighth moment, the electronic device receives the fifth operation in the first area; in response to the fifth operation, the electronic device distributes the fifth input event to the gesture navigation module; the fifth input event is the input event corresponding to the fifth operation; the electronic device displays the desktop; the seventh moment is earlier than the eighth moment. In this way, when the electronic device is not running the game application in the whitelist, the electronic device does not execute the input event double-send logic, thereby improving the accuracy of the touch control method in the embodiment of the present application.

[0022] In a second aspect, an embodiment of the present application provides an electronic device, which may also be referred to as a terminal, user equipment (UE), mobile station (MS), mobile terminal (MT), etc. The electronic device may be a mobile phone, a smart TV, a wearable device, a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR) electronic device, an augmented reality (AR) electronic device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc.

[0023] The electronic device comprises: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the electronic device executes the method as in the first aspect.

[0024] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the method of the first aspect is implemented.

[0025] In a fourth aspect, an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed, the computer executes the method of the first aspect.

[0026] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor, the processor being used to call a computer program in a memory to execute the method described in the first aspect.

[0027] It should be understood that the second to fifth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 A game scenario in a possible implementation;

[0029] Figure 2A game scenario in a possible implementation;

[0030] Figure 3 A schematic diagram of the structure of an electronic device 100 provided in an embodiment of the present application;

[0031] Figure 4 A schematic diagram of the software structure of an electronic device 100 provided in an embodiment of the present application;

[0032] Figure 5A A schematic diagram of an interface of a touch control method provided in an embodiment of the present application;

[0033] Figure 5B A schematic diagram of an interface of a touch control method provided in an embodiment of the present application;

[0034] Figure 6 This is a problem scenario in an embodiment of the present application;

[0035] Figure 7 A schematic diagram of an interface of another touch control method provided in an embodiment of the present application;

[0036] Figure 8 A schematic diagram of a touch control scenario provided in an embodiment of the present application;

[0037] Fig. 9 A schematic diagram of another touch control scenario provided in an embodiment of the present application;

[0038] Fig.10 A schematic diagram of a touch control method provided in an embodiment of the present application;

[0039] Fig.11 A schematic diagram of a touch control method provided in an embodiment of the present application;

[0040] Fig.12 A schematic diagram of an interface of a non-game scenario provided in an embodiment of the present application;

[0041] Fig.13 A schematic diagram of the structure of a touch control device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] In order to clearly describe the technical solutions of the embodiments of the present application, some terms and technologies involved in the embodiments of the present application are briefly introduced below:

[0043] In the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0044] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0045] It should be noted that the "at..." in the embodiment of the present application can be the instant when a certain situation occurs, or a period of time after a certain situation occurs, and the embodiment of the present application does not specifically limit this. In addition, the display interface provided in the embodiment of the present application is only an example, and the display interface can also include more or less content.

[0046] The electronic device may support game applications; for example, the game application may include MOBA games. Such games often have strong real-time requirements for operations. For example, when receiving a trigger operation by a user clicking a skill or sliding a wheel, the electronic device needs to perform game operations such as attacking, moving, and running in real time.

[0047] However, in a possible implementation, the electronic device may receive user operations but fail to respond to game operations, affecting the user's gaming experience.

[0048] Take the mobile phone as an example, Figure 1 A game scenario in a possible implementation is shown. A game application is running in the foreground of the electronic device, and the electronic device is in landscape mode. The electronic device displays a game interface, which may include a roulette wheel and skill icons. The user holds both hands at both ends of the electronic device, where the left hand fingers can manipulate the roulette wheel to control the movement of the game character, and the right hand fingers can click the skill icon to control the game character to cast skills. In the above scenario, there may be a problem that the electronic device does not respond to user operations:

[0049] For example, the user slides the left finger upward from the bottom of the electronic device to control the wheel to move upward, and the electronic device displays the following Figure 2 The interface shown in a in FIG. A bar is displayed at the bottom of the electronic device, and the electronic device does not respond to game operations. For example, in the game interface displayed by the electronic device, the game character does not move upward, and a disconnection problem occurs.

[0050] This is because, in a possible implementation, a gesture navigation window is set at the bottom of the electronic device. When the finger falls on the area where the gesture navigation window is located, the electronic device can call out the gesture navigation window. Figure 2 The area shown in the dotted box in the b interface; the landing point can be Figure 2 As shown in the circle in the b interface in FIG, the landing point can be understood as the position where the user's finger first clicks the touch screen and the finger does not move (down coordinate). Figure 2 As shown in b, the user's finger falls on the gesture navigation window; the gesture navigation window will intercept the event corresponding to the user operation. In other words, the event corresponding to the user operation cannot be reported to the game application, so the game application will not respond to the user operation, resulting in the problem of game disconnection.

[0051] It is understandable that in electronic devices, the bottom of the roulette wheel and the gesture navigation window may partially overlap, or the bottom edge of the roulette wheel and the upper edge of the gesture navigation window may be very close, causing the user's finger to slide upward in the roulette wheel and click on the area where the gesture navigation window is located, resulting in the above-mentioned game disconnection scenario.

[0052] In view of this, an embodiment of the present application provides a touch method. When a game application is running in the foreground of an electronic device and the user's operation is located in the area where the gesture navigation window is located, the electronic device can distribute the events corresponding to the user's operation to the gesture navigation window and the game application respectively. The game application can respond to the user operation based on the event and display the corresponding game interface; for example, when the user pulls up the wheel from the bottom of the electronic device, the electronic device can control the game character to move upward, reducing the problem of touch interruption during the operation.

[0053] In the embodiment of the present application, the electronic device may also be referred to as a terminal device. The electronic device in the embodiment of the present application may also be any form of electronic device, for example, the electronic device may include a handheld device, a vehicle-mounted device, and the like. For example, some electronic devices are: mobile phones, tablet computers, PDAs, laptop computers, mobile internet devices (MID), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, user equipment (UE), mobile stations (MS), mobile terminals (MT), access terminals, subscriber units, subscriber stations, mobile stations, mobile stations, remote stations, remote terminals, mobile devices, terminals, wireless communication devices, user agents or user devices, cellular phones, cordless phones, session initiation protocol (SIP) phones, wireless local loops (WLANs), wireless cellular telephones, wireless telephones, wireless cellular ... loop, WLL) station, personal digital assistant (PDA), handheld device with wireless communication function, computing device or other processing device connected to a wireless modem, vehicle-mounted device, wearable device, terminal device in a 5G network or terminal device in a future evolved public land mobile communication network (public land mobile network, PLMN), etc., and the embodiments of the present application are not limited to this.

[0054] As an example but not limitation, in the embodiments of the present application, the electronic device may also be a wearable device. Wearable devices may also be referred to as wearable smart devices, which are a general term for wearable devices that are intelligently designed and developed using wearable technology for daily wear, such as glasses, gloves, watches, clothing, and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also powerful functions achieved through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include full-featured, large-sized, and fully or partially independent of smartphones, such as smart watches or smart glasses, as well as devices that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various types of smart bracelets and smart jewelry for vital sign monitoring.

[0055] In addition, in the embodiments of the present application, the electronic device can also be a terminal device in the Internet of Things (IoT) system. IoT is an important part of the future development of information technology. Its main technical feature is to connect objects to the network through communication technology, thereby realizing an intelligent network that interconnects people and machines and things.

[0056] In an embodiment of the present application, the electronic device or each network device includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer. The hardware layer includes hardware such as a CPU, a memory management unit (MMU), and a memory (also called main memory). The operating system can be any one or more computer operating systems that implement business processing through processes, such as Linux operating systems, Unix operating systems, Android operating systems, iOS operating systems, or windows operating systems. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software.

[0057] In order to better understand the embodiments of the present application, the structure of the electronic device in the embodiments of the present application is introduced below:

[0058] Figure 3 A schematic structural diagram of an electronic device 100 is shown.

[0059] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a touch screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0060] Among them, the sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.

[0061] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0062] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0063] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0064] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0065] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuits sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0066] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0067] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0068] The electronic device 100 implements the display function through a GPU, a touch screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the touch screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0069] The touch screen 194 is used to display images, videos, etc. The touch screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N touch screens 194, where N is a positive integer greater than 1.

[0070] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a touch screen 194, and an application processor.

[0071] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.

[0072] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0073] Exemplarily, the electronic device 100 may further include one or more of a button 190 , a motor 191 , an indicator 192 , a SIM card interface 195 (eSIM card), and the like.

[0074] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture, etc. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.

[0075] Figure 4 It is a software structure block diagram of the terminal device 100 according to an embodiment of the present application.

[0076] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.

[0077] The application layer can include a series of application packages.

[0078] like Figure 4 As shown, an application package can include applications such as camera, calendar, map, game, setting, mailbox, video and desktop.

[0079] The application framework layer provides API and programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0080] like Figure 4 As shown, the application framework layer may include a window manager, a resource manager, a view system, a notification manager, an activity manager, a gesture navigation module, an input framework, a game framework, and the like.

[0081] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, touch the screen, drag the screen, capture the screen, etc.

[0082] The gesture navigation module is used to realize returning to the previous menu, returning to the desktop, entering multitasking, ending a single task, and opening the side-slide function according to the user's gesture operation. In the embodiment of the present application, the gesture navigation module can be used to manage the bottom navigation bar.

[0083] The input framework can be used to listen for input events that trigger actions and manage the distribution of input events.

[0084] The game framework is used to monitor whether the electronic device enters the game mode. When the electronic device starts the game application, the game framework can notify the relevant modules to enter the corresponding game mode so that the functions of the relevant modules can adapt to the current game scene.

[0085] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0086] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0087] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, the terminal device vibrates, the indicator light flashes, etc.

[0088] The activity manager is responsible for managing the startup, status, life cycle and other activities of the application. Among them, activity is an application component that can provide an interface for users to interact with the terminal device through the interface to complete a task.

[0089] Android runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0090] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0091] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0092] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0093] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0094] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0095] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0096] A 2D graphics engine is a drawing engine for 2D drawings.

[0097] The kernel layer is the layer between hardware and software. The kernel layer can contain display drivers, camera drivers, audio drivers, sensor drivers, etc.

[0098] Combine the following Figure 5A The scenarios to which the touch control method in the embodiments of the present application is applicable are described as follows: Figure 5A shown.

[0099] Exemplarily, the electronic device runs a game application in the foreground, such as Figure 5A In the interface shown in a, the electronic device displays a game window; the game window includes a direction key area 501, a game character 502 and a game skill casting area 503, and the specifications of the game window can be the same as those of the touch screen.

[0100] Among them, the direction key area 501 can also be called a "roulette", and the direction key area 501 can include an upward key icon, a downward key icon, a left key icon, and a right key icon. The direction key area 501 can be used to receive a trigger operation acting on the area, and in response to the trigger operation, the electronic device can display the movement of the game character 502 in the corresponding direction. For example, the electronic device receives a trigger operation of sliding upward in the direction key area 501, and the electronic device displays the game character 502 moving upward. The game character 502 is the subject operated in the game application. The electronic device can respond to the trigger operation for the above-mentioned direction key area 501, and control the game character 502 to move in the game window. The game skill casting area 503 may include one or more game skill function keys (for example, an "attack" key, a "recovery" key, etc.). The electronic device can receive a trigger operation (for example, a click operation or a slide operation) acting on the one or more game skill function keys, and in response to the trigger operation, the electronic device can display the game screen of the game character casting the corresponding skill.

[0101] exist Figure 5A In the interface shown in a in FIG. 5 , the user can control the game character 502 to move upward by sliding upward in the direction key area 501. The trigger operation of sliding upward may correspond to two stages: a pressing operation and a moving operation.

[0102] In a possible implementation, the process of the user moving a finger to control the movement of the game character can be as follows:

[0103] 1) The user's finger performs a pressing operation on the direction key area of ​​the electronic device. The touch point of the user's finger on the touch screen may be a first touch point (down point), and the first touch point is located in the gesture navigation window. Both the game window and the gesture navigation window of the electronic device respond to the pressing operation.

[0104] 2) The user's finger performs a sliding operation in the direction key area of ​​the electronic device. The touch point of the user's finger on the touch screen may be a second touch point, and the second touch point may be located in the direction key area. Both the game window and the gesture navigation window of the electronic device respond to the sliding operation.

[0105] Specifically, scenario 1) can be a short process, for example, Figure 5A In the interface shown in b, the user presses in the direction key area 501, and the electronic device can display the auxiliary operation icon 504 and the gesture navigation window 505.

[0106] Among them, the auxiliary operation icon 504 can be used to display the touch point of the user's finger in the direction key area 501. For example, the display position of the auxiliary operation icon 504 corresponds to the first touch point. The dotted frame area can be a gesture navigation window 505. The gesture navigation window can be a window that is invisible to the user or a window with a color or style. The embodiment of the present application does not limit this.

[0107] It is understandable that when the first touch point is located in the area where the gesture navigation window is located, the electronic device can call out the gesture navigation window 505. At the same time, the electronic device can also respond to the event corresponding to the first touch point and display the auxiliary operation icon 504 at the position corresponding to the first touch point. Since the user only performs a click operation and does not control the movement of the auxiliary operation icon 504, the position of the game character 502 in the game screen does not change at this time.

[0108] Scenario 2) Figure 5A As shown in interface c, when the user slides up in the direction key area 501, the electronic device can display an auxiliary operation icon 504 and a gesture navigation window 505.

[0109] Among them, the display position of the auxiliary operation icon 504 corresponds to the second touch point; it can be seen that the second touch point has moved upward relative to the first touch point, and the electronic device can respond to the swipe-up operation to control the game character 502 to move upward.

[0110] It should be noted that the movement of the game character 502 may be upward relative to the background in the game screen, but the position of the game character 502 in the game window remains unchanged; the movement of the game character 502 may also be upward relative to the game window. The embodiment of the present application does not limit the way in which the electronic device responds to the sliding operation.

[0111] Optionally, the electronic device may display a gesture navigation window 505 .

[0112] In a possible implementation, after the electronic device calls out the gesture navigation window 505, the electronic device may display the gesture navigation window 505 within a preset time, and after the preset time, the electronic device hides the gesture navigation window 505. When the user moves the finger to the second touch point, and the time from when the electronic device receives the first touch point does not exceed the preset time, the electronic device may display the gesture navigation window 505. Figure 5A When the user's finger moves to the second touch point, and the time from when the electronic device receives the first touch point exceeds the preset time, the electronic device may not display the gesture navigation window 505 ( Figure 5A not shown).

[0113] It should be noted that the embodiment of the present application takes the arrow key area on the left side operated by the user as an example to illustrate the scenario in which the game window and the gesture navigation window of the electronic device simultaneously respond to the triggering operation when the first touch point of the triggering operation is located in the gesture navigation area. In the embodiment of the present application, the arrow key area may also be on the right side of the game window.

[0114] Alternatively, the button triggered by the first touch point may also be other buttons that partially overlap or are close to the gesture navigation area. For example, the game skill casting area 503 includes a skill attack button 506. When the user triggers the skill attack button 506 by sliding the wheel, and the first touch point is located in the gesture navigation area, the game window and the gesture navigation window of the electronic device respond at the same time, and the electronic device displays the gesture navigation window and the skill casting game screen. For another example, some 3D game interfaces may also include buttons for moving the perspective. For example, in the first person, the user can control the movement of the game character through the direction key area, and switch the perspective of the game character 360 degrees through the perspective movement area. The buttons triggered by the first touch point are not listed one by one in the embodiment of the present application.

[0115] In the game scene provided by the embodiment of the present application, when the first touch point of the sliding operation is located in the gesture navigation window, the electronic device can respond to the triggering operation of the control corresponding to the first touch point in the game window and display the corresponding game screen; the electronic device can also call out and display the gesture navigation window. In this way, the problem of disconnection caused by the user's mistaken triggering of the gesture navigation window in the game scene can be reduced, thereby improving the user's gaming experience.

[0116] In some scenarios, the user can perform two consecutive swipe-up operations to return the electronic device to the desktop. Figure 5B As shown:

[0117] For example, in Figure 5B In the interface shown in a of FIG. 1 , the electronic device receives a trigger operation of sliding upward from the bottom of the screen. In response to the trigger operation, the electronic device calls out a gesture navigation window 505, such as Figure 5B As shown in interface b in , wherein the gesture navigation window 505 may be invisible to the user or may be a window with a color.

[0118] exist Figure 5B In the interface shown in b, the electronic device receives a trigger operation of sliding upward from the bottom of the screen again. In response to the trigger operation, the electronic device displays the desktop, such as Figure 5B As shown in the c interface.

[0119] exist Figure 5B In the interface shown in c, the electronic device displays an icon 508 of a game application. When the electronic device receives a trigger operation for the icon 508 of the game application, the electronic device displays Figure 5B The interface shown in d.

[0120] Specifically, during the first swipe-up process, the electronic device can send the event corresponding to the first swipe-up operation to the game application and the gesture navigation module respectively. The gesture navigation module calls out the gesture navigation window. During this process, since there is no control corresponding to the touch point of the first swipe-up operation in the game window, the game application receives the event, but the game screen does not change (for example, Figure 5B The a interface in Figure 5B Alternatively, if there is a control corresponding to the touch point of the first upward sliding operation in the game window, the game screen changes in response to the triggering operation on the control (for example, Figure 5A The a interface in Figure 5B In the c interface, the game screen is different).

[0121] During the second swipe up process, the electronic device can send the event corresponding to the second swipe up operation to the game application and the gesture navigation module respectively. The event corresponding to the second swipe up operation can be a cancel event. After the gesture navigation window receives the cancel event, the electronic device can return to the desktop. After the game application receives the cancel event, the game screen displayed by the game application does not change (for example, when the electronic device switches the game application to the background and then switches back to the foreground, Figure 5B The b interface in Figure 5B In the d interface, the game screen does not change).

[0122] It can be understood that during the second swipe up process, the touch point of the second swipe up operation can correspond to the "Return to City" control 507 in the game window. The "Return to City" control can respond to a press (down) event, but not a move event or a cancel event. Therefore, although the game application receives the event corresponding to the second swipe up operation, the game screen does not change.

[0123] The above embodiment provides a scenario of returning to the desktop from a game scene. It should be noted that the game mechanism of some games itself causes the game application to identify the cancel event as a down event, resulting in the game application mistakenly triggering the "return to the city" control during the second slide up process. Exemplarily, when the touch point of the triggering operation is located in the gesture navigation area, the game window and the gesture navigation window of the electronic device can both respond to the triggering operation. For some game applications, when returning to the desktop from the game window, there may be some problems in the way that the game window and the gesture navigation window respond at the same time. Some game applications can identify the cancel event as a press (down) event, that is, when the electronic device receives the slide up operation and returns to the desktop, the game window can identify the operation as a down event, and the game window responds to the operation, mistakenly triggering the game button corresponding to the down point in the game window. When the electronic device switches the game application from the background to the foreground, the interface displayed by the electronic device may be different from the game screen before switching to the background.

[0124] Specifically, the above problem scenario can be Figure 6 As shown:

[0125] exist Figure 6 In the interface shown in a of FIG. 1 , the electronic device may display a game window. In the interface, the game window includes a game character 601. When the electronic device receives the first upward sliding operation, the electronic device displays the following Figure 6 The interface shown in b.

[0126] exist Figure 6 In the interface shown in b, after the gesture navigation module receives the event of the first upward sliding operation, it calls out the gesture navigation window 602. After the game application receives the event of the first upward sliding operation, since there is no game button at the touch point of the first upward sliding operation, the game screen displayed by the game application does not change. Figure 6 The interface shown in b in FIG. 1 also includes a “return to city” control 603. When the electronic device receives the second upward sliding operation, the electronic device displays the following Figure 6 The interface shown in c. Figure 6The interface shown in c in the figure can be a desktop, and a game application is running in the background of the electronic device. During the second upward sliding operation, the electronic device can send a cancel event to the gesture navigation module and the game application respectively, wherein the gesture navigation module responds to the cancel event to control the electronic device to display the desktop; the game application recognizes the cancel event as a down event, and the game application responds to the down event to control the game character 601 to perform a return operation, and the position of the game character 601 changes.

[0127] It should be noted that although Figure 6 In the c interface in FIG. 1 , the electronic device runs a game application in the background, but the game application has responded to the second swipe up operation, and the game screen has changed. Among them, the desktop displays an icon 604 of the game application. When the electronic device receives a trigger operation for the icon 604 of the game application, or returns to the game window based on the multi-window interface, the electronic device can display the following Figure 6 The interface shown in d.

[0128] exist Figure 6 In the interface shown in d in FIG. 1 , the electronic device can display a game screen of a game window, wherein the game screen is a game application in response to the game in Figure 6 The screen obtained by triggering the "return to city" control 603 in the b interface. For example, after the "return to city" control 603 is triggered, the icon of the "return to city" control 603 is in a gray state.

[0129] It can be seen that Figure 6 The interface shown in b is the same as Figure 6 The interface shown in d is different. It is understandable that in some scenarios, the electronic device briefly runs a game application in the background, and then the electronic device re-enters the game application, and the user may not want the game screen to change. For example, a user receives a WeChat message during a game, and the user returns the electronic device to the desktop by swiping up twice in a row; after the user replies to the message and re-enters the game application, some skills may be in a cooling-down scenario, which will affect the user's gaming experience.

[0130] In response to the above problems, the present application embodiment provides a scenario for exiting a game application. Figure 7 A schematic diagram of an interface of a touch control method provided in an embodiment of the present application is shown. Figure 7 As shown:

[0131] The electronic device can display the game screen of the game window, such as Figure 7 The game screen includes a game character 701. When the electronic device receives a trigger operation of sliding upward, the electronic device can enter the following Figure 7The first upward sliding trigger operation may be a trigger operation of sliding the user's finger upward from any position at the bottom of the screen. For example, any position at the bottom of the screen may correspond to Figure 7 The position of the bottom left side of the screen in the interface shown in a may also be the center of the bottom of the screen, or the bottom right side of the screen; this embodiment of the present application is not limited to this.

[0132] exist Figure 7 In the interface shown in b in FIG. 1 , the electronic device may display a gesture navigation window 702 and a prompt message 703, wherein the gesture navigation window 702 may display a navigation bar 705, and the bar 705 may be in the form of a horizontal bar displayed in the center at the bottom of the screen; the prompt message 703 may remind the user to swipe up again to enter the desktop; for example, the prompt message 703 includes a prompt text: Swipe up again in the middle. When the electronic device receives the trigger operation of swiping up again, the electronic device may enter the desktop as shown in FIG. Figure 7 The second upward swipe trigger operation may be a user's finger swiping upward from the middle area at the bottom of the screen. Optionally, the touch point of the second upward swipe trigger operation may correspond to a game button, for example, a "return to city" control 704.

[0133] exist Figure 7 In the interface shown in c in FIG. 1 , the electronic device can display a desktop, and the electronic device runs a game application in the background. The desktop includes an icon 706 of the game application. When the electronic device receives a trigger operation for the icon 706 of the game application, the electronic device can enter the following example: Figure 7 The interface shown in d.

[0134] Figure 7 The interface shown in d is the same as Figure 7 The game screen of the interface shown in a is the same as that of the interface shown in a, which means that when the electronic device receives the trigger operation of sliding up for the second time, the game window of the electronic device does not actually trigger the "return to city" control based on the trigger operation, and the "return to city" button is not in a cooling state. This allows the game screen to remain consistent during the process of the game application switching to the background and returning to the foreground, which can improve the user's gaming experience.

[0135] It should be noted that, when the electronic device receives the second trigger operation, the electronic device can correspond the trigger operation to the cancel event and transmit it to the gesture navigation module, and does not correspond the trigger operation to the cancel event and transmit it to the game application. In this way, the game application will not mistakenly recognize the down event and will not mistakenly trigger the game button in the game window corresponding to the landing point of the second trigger operation, thereby avoiding changes in the game screen.

[0136] The above embodiments illustrate the use scenarios of the touch control method provided by the embodiments of the present application. Figure 5A Principle and implementation of the illustrated scenario Figure 7 The principle of the scenario shown is explained.

[0137] Figure 8 for Figure 5A The schematic diagram of the principle corresponding to the scenario shown. Figure 8 As shown:

[0138] exist Figure 8 In the interface shown, the electronic device displays a gesture navigation window and a game window 802; wherein, the area where the gesture navigation window is located is the gesture navigation area 801; the area where the game window 802 is located includes the gesture navigation area 801 and the area 803 for displaying the game screen, and the layer of the game window 802 can be located in the lower layer of the gesture navigation window. When the electronic device receives a trigger operation in the gesture navigation area 801, the electronic device can distribute the input event corresponding to the trigger operation to the game application and the gesture navigation module respectively, so that both the game window 802 and the gesture navigation window respond to the input event. Here, the gesture navigation area can be understood as a dual-sent area for input events, and the area 803 for displaying the game screen can be understood as a single-sent area for input events.

[0139] Among them, multiple input events can be the electronic device distributing input events to the modules corresponding to all windows where the touch point is located. For example, in the embodiment of the present application, dual input events can be the electronic device distributing input events to the game application and the gesture navigation module. Single input event can be the electronic device distributing input events to the module corresponding to the topmost window in the area where the touch point is located. For example, when the touch point is in the area where the gesture navigation window and the game window overlap, the electronic device sends the input event to the gesture navigation module corresponding to the upper gesture navigation window, and does not send it to the game application corresponding to the lower game window.

[0140] In the game scene, when the electronic device receives a single swipe up operation in the gesture navigation area 801, the operation may be the user manipulating the wheel or skill button to play the game and accidentally trigger the gesture navigation window. Therefore, both the gesture navigation window and the game window of the electronic device can respond, realizing the double sending of input events, thereby not affecting the continuity of the game scene. When the electronic device receives a trigger operation in the area 803 used to display the game screen, the electronic device distributes the input event to the game window based on the normal process, and does not distribute it to the gesture navigation window.

[0141] When exiting a game or running a game in the background, the user needs to swipe up twice in a short period of time to return the electronic device to the desktop. If the gesture navigation area is always the input event double-sent area, some game applications may experience the following error: Figure 6 The problem scenario shown. Figure 6 The problem scenario shown in the present application embodiment provides Figure 7 Solution scenario shown. Fig. 9 for Figure 7 The schematic diagram of the scene shown is as follows: Fig. 9 As shown:

[0142] It should be noted that if a user performs a single swipe operation in the gesture navigation area, the operation may be an incorrect operation by the user; however, if a user performs two swipe operations in the gesture navigation area within a short period of time, it indicates that the user has the interactive intention to exit the game or return to the desktop.

[0143] In order not to affect the user's experience when exiting the game application and / or returning to the desktop, the embodiment of the present application provides the following scenarios:

[0144] After starting the game application, the electronic device can set the input event double sending area, such as Figure 8 The gesture navigation area 801 in the.

[0145] During the game, the electronic device receives the first swipe up operation in the gesture navigation area, and displays the gesture navigation window and the game window in response to the swipe up operation, and the game screen changes. At the same time, the electronic device sets an input event dual-send area and an input event single-send area in the gesture navigation area, wherein the input event dual-send area may correspond to Fig. 9 Input event double-sent area 901 ( Fig. 9 The input event single-shot area can correspond to Fig. 9 Input event single area 902 ( Fig. 9 The input event single-shot region 902 is centered. The window of the input event single-shot region 902 is located on the upper layer 901 of the window of the input event double-shot region.

[0146] Within the time threshold (e.g., 3 seconds), the electronic device receives the second swipe up operation in the input event single-shot area 902, and distributes the input event corresponding to the second swipe up operation to the gesture navigation module, and does not distribute it to the game application. In this way, the second swipe up operation will not cause the following Figure 6The time threshold can be understood as the time for the electronic device to set the input event single-shot area 902. When the time exceeds the time, the electronic device deletes the input event single-shot area 902.

[0147] It should be noted that in the game scene, the scene of returning to the desktop natively is: swipe up from the bottom of the screen for the first time, and then swipe up from the center of the bottom of the screen for the second time within a short period of time. The scene of returning to the desktop provided in the embodiment of the present application is the same as the scene of returning to the desktop natively, so in the embodiment of the present application, the user can use habitual actions to control the electronic device to return to the desktop, and the user operation will not be affected by the scene change.

[0148] Alternatively, within the time threshold, the electronic device receives a second upward sliding operation in the input event dual-sending area 901, and distributes the input event corresponding to the second upward sliding operation to the gesture navigation window and the game window. In this way, the problem of game disconnection caused by user misoperation can be reduced.

[0149] It should be noted that in actual application scenarios, for MOBA mobile games, users often use the following Figure 1 In the gestures shown in the scene, both hands touch the wheel and skill buttons with their thumbs respectively. In the corresponding game battle scene, the wheel and skill buttons are often set on the left and right sides of the mobile phone in landscape mode. Therefore, in the native game scene, when the electronic device receives the second swipe up operation on the left and right sides, the electronic device will not return to the desktop. The embodiment of the present application can continue to use the native game scene, and the gesture navigation window receives the input event corresponding to the second swipe up operation and does not return to the desktop. However, since the left and right sides of the gesture navigation area in the embodiment of the present application are dual-initiative areas for input events, the game window can respond to the second swipe up operation, and the game screen changes.

[0150] Alternatively, after the time threshold is exceeded, the electronic device deletes the input event single-shot area 902, and the electronic device is restored to the state as follows: Figure 8 At this time, the electronic device receives a second upward sliding operation at any position in the gesture navigation area, and the electronic device distributes the input event corresponding to the second upward sliding operation to the game window and the gesture navigation window respectively.

[0151] The above embodiments illustrate the setting scenarios and principles of the input event single-send area and the input event double-send area. Fig.10 The interaction process between software modules in electronic devices is described.

[0152] Fig.10 A schematic diagram of a touch control method provided in an embodiment of the present application is shown. Fig.10 As shown:

[0153] The electronic device may include modules of the application layer and modules of the application framework layer.

[0154] The application layer may include: desktop applications (also called launchers) and game applications.

[0155] The application framework layer may include: input framework, game framework, gesture navigation module and window manager.

[0156] S1001. When the electronic device is turned on, the desktop application sends an input event listener to the input framework.

[0157] After the electronic device is turned on, it can send input event monitoring to the input framework, and the subsequent desktop application can monitor the input events of the input framework.

[0158] S1002: The electronic device receives an operation for starting a game application, and the electronic device starts the game application.

[0159] Game applications may include horizontal screen games and vertical screen games. In the embodiment of the present application, the layout of the game buttons in the horizontal screen game is prone to cause touch disconnection problems (such as Figure 1 and Figure 2 As shown in the figure, the present application embodiment takes the application scenario of horizontal screen games as an example. However, this scenario does not limit the touch control method of the present application embodiment. For example, when the game application is a vertical screen game and there is a disconnected touch scenario caused by the wrong triggering of the gesture navigation window in the game scenario, the electronic device can also adopt the touch control method of the present application embodiment.

[0160] When the electronic device receives a trigger operation from the user on the icon of the game application, the electronic device starts the game application and displays the home page of the game application.

[0161] S1003: The game framework queries the whitelist and determines whether the whitelist includes the game application.

[0162] The whitelist may be a list of game applications that can be applied to the double-send input event scenario. For example, the whitelist may be a double-send game list. The electronic device may start any game application, and after the game framework determines that the electronic device has started the game application, the game framework may determine whether the game application is applicable to the touch control method provided in the embodiment of the present application according to the whitelist.

[0163] The whitelist includes information about the game application, for example, the information about the game application may be a package name of the game application. In one possible implementation, the game framework obtains the package name of the current focus window. If the package name of the focus window is in the whitelist, the application displayed in the focus window is a game application that can be used for dual-sending input events, and the electronic device continues to execute step S1004.

[0164] Optionally, based on the whitelist, the game framework can also determine whether the game application is in the foreground.

[0165] It is understandable that when the electronic device runs a game application in the foreground, the user can operate the game screen; while when the electronic device is running in the background, the user cannot control the game screen through substantial operations. Therefore, when the game framework executes the touch control method provided in the embodiment of the present application, it can also determine whether the game application is in the foreground.

[0166] Specifically, if the game framework detects that the game application is in the game foreground, the game framework determines that the game application is running in the foreground, and the electronic device can continue to execute subsequent steps; if the game framework detects that the game application is in the game background, the game framework determines that the game application is running in the background, and the electronic device no longer executes subsequent steps.

[0167] S1004: The game framework notifies the gesture navigation module of the first instruction.

[0168] The first instruction can be used to instruct the gesture navigation module to run a game application in the whitelist in the foreground of the electronic device; when the game framework detects that the game application is in the whitelist and is running in the foreground, the game framework sends the first instruction to the gesture navigation module to instruct the gesture navigation module to enter the first game mode.

[0169] S1005: The game framework notifies the desktop application of the second instruction.

[0170] The second instruction can be used to instruct the desktop application to run the game application in the whitelist in the foreground of the electronic device; when the game framework detects that the game application is in the whitelist and is running in the foreground, the game framework sends a second instruction to the game application to instruct the game application to enter the second game mode.

[0171] S1006: The gesture navigation module enters a first game mode based on the first instruction.

[0172] The first game mode corresponds to the mode in which the gesture navigation module is located after the electronic device starts the game application.

[0173] It is understandable that when the electronic device runs a game application in the foreground, the gesture navigation module also needs to switch to the game mode of the gesture navigation module so that the gesture navigation window adapts to the game scene and executes the corresponding process in the game scene. For example, in the first game mode, the gesture navigation module can execute steps S1008, S1010, S1013, S1014 and S1016.

[0174] S1007. The desktop application enters a second game mode based on the second instruction.

[0175] The second game mode may correspond to the mode of the desktop application after the electronic device starts the game application. When the electronic device runs the game application in the foreground, the desktop application also needs to switch to the desktop game mode so that the desktop application adapts to the game scene and executes the corresponding process in the game scene. For example, in the second game mode, the desktop application can execute steps S1013 and S1014 in the embodiment of the present application.

[0176] S1008: The gesture navigation module notifies the input framework of the first information.

[0177] The first information is used to instruct the input framework to distribute the input event to the game application and the gesture navigation module respectively when receiving the input event in the gesture navigation area.

[0178] It is understandable that step S1008 can be understood as: the gesture navigation module instructs the input framework to set the gesture navigation area as the input event dual-sending area. The input event dual-sending area can correspond to Figure 8 The input event dual-sending area 801 in the gesture navigation window. The size of the input event dual-sending area may be consistent with the size of the gesture navigation window.

[0179] It is understandable that the native gesture navigation area is a single-input event area. When the input framework monitors the input event in the gesture navigation area, it will only report the input event to the gesture navigation window. In step S1008, the gesture navigation area is developed as a dual-input event area. Subsequently, when the input framework monitors the input event in the gesture navigation area, it distributes the input event to the gesture navigation module and the game application at the same time.

[0180] It should be noted that, in the embodiment of the present application, the input event double-sent area and the input event single-sent area can be hot spots (or windows) of different sizes. The window itself does not involve the function of single or double-sent input events. In actual applications, the input framework will execute the corresponding process according to the area where the trigger operation is located; for example, when the trigger operation is in the hot spot of the input event double-sent area, the input framework can execute the process of sending input events to the game application and the gesture navigation module respectively; when the trigger operation is in the hot spot of the input event single-sent area, the input framework can execute the process of sending input events to the gesture navigation module.

[0181] S1009: When the electronic device receives the first trigger operation, the input framework obtains that the touch point corresponding to the first trigger operation is in the input event double-sending area.

[0182] The first trigger operation may correspond to Figure 5A In the operation of pressing and sliding up, the touch point corresponding to the first trigger operation may correspond to the touch point when the user presses the finger (for example, Figure 5A The first touch point (down point) in the interface shown in b).

[0183] It is understandable that in step S1009, the touch screen may include two areas, such as Figure 8 As shown, one area is an area 803 for displaying the game screen, and the other area is a gesture navigation area 801, wherein the area 803 for displaying the game screen corresponds to the input event single-send area, and the gesture navigation area 801 corresponds to the input event double-send area. If the touch point corresponding to the first trigger operation is in the input event single-send area, the electronic device will not execute the logic of input event double-send.

[0184] In a possible implementation, the input framework can determine whether the touch point is in the input event double-sending area according to the window name of the area where the touch point is located. Exemplarily, when the input framework monitors that the window name of the window where the touch point is located is the name of the gesture navigation window, the electronic device can execute step S1010.

[0185] S1010: The input framework distributes an input event corresponding to the first trigger operation to the gesture navigation module.

[0186] The input event corresponding to the first trigger operation may include a down event, a move event, and / or an up event, etc. When the input framework monitors the input event, it may distribute the input event to the gesture navigation module.

[0187] Specifically, when the gesture navigation module receives an input event, the gesture navigation module may intercept the input event (the same as the native process) and process the input event.

[0188] S1011. The input framework distributes the input event corresponding to the first trigger operation to the game application.

[0189] The input event corresponding to the first trigger operation may include a down event, a move event, and / or an up event, etc. When the input framework monitors the input event, it may distribute the input event to the game application.

[0190] Specifically, when the game application receives the input event, the game application responds to the first trigger operation and executes the process corresponding to the first trigger operation. Figure 5A In the interface shown in c, the electronic device receives a trigger operation of sliding upward, and the electronic device can control the game character to move upward.

[0191] It should be noted that the embodiment of the present application does not limit the order of step S1010 and step S1011. The electronic device may first execute step S1010 and then step S1011, or may first execute step S1011 and then step S1010.

[0192] S1012: The desktop application monitors an input event corresponding to a first trigger operation in an input framework.

[0193] In step S1001, the desktop application sends an input event monitor to the input framework. In step S1012, the desktop application can monitor the input event corresponding to the first trigger operation from the input framework.

[0194] S1013. The desktop application controls the display of prompt information and bar.

[0195] bar can correspond to Figure 7 In the interface shown in b, bar 705, the prompt information may correspond to Figure 7 It should be noted that, in order to facilitate the description of the scenario of the embodiment of the present application, Figure 7 In the actual operation, Figure 5A and Figure 5B The prompt information can also be displayed in the interface. This embodiment of the present application does not limit this.

[0196] The gesture navigation module can display or hide the bar according to the instructions of the desktop application. For example, the gesture navigation module can display the bar according to the instructions of the desktop application, and the electronic device can display Figure 7The interface gesture navigation window 702 shown in b includes a bar 705.

[0197] In addition, in the second game mode, the desktop application can also display prompt information.

[0198] Optionally, the electronic device may also set a preset number of times to call out the reminder message, and when the number of times the reminder message is displayed reaches the preset number, the desktop application no longer displays the reminder message. For example, the preset number of times to call out the reminder message per day is 3 times.

[0199] S1014: The gesture navigation module receives second information indicated by the desktop application, and notifies the window manager of the second information.

[0200] The second information may be used to instruct the creation of a window at the input event single-shot area; wherein the input event single-shot area may correspond to Fig. 9 The input event single area 902 in.

[0201] The second information may include: the transparency format (fixel format), title (title), position, height and width of the window, wherein the transparency format of the window is invisible to the user; the title may be the window name of the input event single-shot area, and the title may be a custom-set title. The window manager may create a window of the input event single-shot area according to the second information, and the area where the window is located corresponds to the input event single-shot area.

[0202] It should be noted that, in the embodiment of the present application, the hierarchical relationship of the layers of the window of the single-input event area, the gesture navigation window and the game window can be: the window of the single-input event area is located in the upper layer of the gesture navigation window; and the gesture navigation window is located in the upper layer of the game window.

[0203] The window manager creates a corresponding window based on the second information.

[0204] S1015: Within the time threshold, when the electronic device receives the second trigger operation, the input framework obtains that the touch point corresponding to the second trigger operation is in the input event single-shot area.

[0205] The second trigger operation may correspond to Figure 7 In the upward sliding operation in the interface shown in b, Figure 7 In the illustrated scenario, the second trigger operation is a second swipe up operation.

[0206] In a possible implementation, the input framework may determine whether the touch point is in the input event single-shot area according to the window name of the area where the touch point is located. Exemplarily, the window name of the input event single-shot area may be the title of the window in the second information. When the window name of the area where the touch point is located is the title of the window of the input event single-shot area, the input framework determines that the touch point is in the input event single-shot area.

[0207] S1016: The input framework distributes the input event corresponding to the second trigger operation to the gesture navigation module, and does not distribute it to the game application.

[0208] The input event may include a cancel event. After the gesture navigation window receives the cancel event, the electronic device sets the game application to run in the background, and the electronic device displays the desktop, such as Figure 7 In this process, the game application will not receive the cancel event, and the electronic device will not appear as Figure 6 Problem scenario in .

[0209] Alternatively, S1017: within the time threshold, when the electronic device does not receive the second trigger operation, the desktop application instructs the window manager to remove the input event single-shot area based on the gesture navigation module.

[0210] The time threshold may be 3 seconds. If the electronic device does not receive the second trigger operation within 3 seconds, the window manager may remove the window corresponding to the input event single-shot area. The electronic device may continue to execute the following steps: Figure 5A The scene shown in .

[0211] Optionally, S1018, when the electronic device exits the game application running in the background, the gesture navigation module instructs the input framework to set the gesture navigation window as the input event single-shot area.

[0212] It is understandable that when the game application is not running in the foreground of the electronic device, the user cannot operate the game character, so the gesture navigation window can be restored to the input event single-shot area here so that the gesture navigation window can continue to execute the native process.

[0213] Based on the above embodiments, the present application provides a touch control method. Fig.11 A schematic diagram of a flow chart of a touch control method provided in an embodiment of the present application.

[0214] like Fig.11 As shown, the touch control method may include the following steps:

[0215] S1101. At a first moment, the electronic device displays a first picture and a first control in a first window, and the first picture is in a full-screen state.

[0216] The first window is a window of the first application, the first application may be a game application, and the first window may be a game window; the first screen may be Figure 5A In the game screen in the interface shown in a, the first control may correspond to Figure 5A The direction key area 501 in the interface shown in a in FIG. The first screen being in full screen state can be understood as the electronic device displaying the game screen in full screen.

[0217] S1102: At a second moment, the electronic device receives a first operation in the first area.

[0218] The first region may correspond to Figure 5A The gesture navigation window 505 in the gesture navigation area is located, and the first operation may correspond to Figure 5A The b interface and Figure 5A It can be understood that the first operation can be understood as the user performing a down operation (corresponding to the operation in interface b in 5A) and then performing a move operation (corresponding to Figure 5A c interface in the ).

[0219] S1103. In response to the first operation, the electronic device distributes the first input event to the first application and the gesture navigation module respectively.

[0220] The first input event may be an input event corresponding to the first operation; the gesture navigation module is used to manage gesture-related events received in the first area, and the first application does not include the gesture navigation module.

[0221] Here, the first area may correspond to the gesture navigation area. Figure 8 In the example, the first area can be understood as a dual-input event area. When a trigger operation is received in this area, the electronic device will distribute the input event corresponding to the trigger operation to the game application and the gesture navigation module respectively. Figure 8 The relevant description in will not be repeated here.

[0222] S1104. The electronic device displays a second screen and a first control in the first window, where the second screen is a screen obtained by the first application in response to triggering the first control in the first screen, and the second screen is different from the first screen; and the first moment is earlier than the second moment.

[0223] The second picture may correspond to Figure 5A In the game screen shown in the interface c in FIG. 1 , the first operation corresponds to a sliding operation on the direction key area 501. The game application responds to the Figure 5A In the interface shown in a in FIG. 1 , the game application displays the following: Figure 5A From the game screen shown in c in FIG. 1 , it can be seen that the second screen corresponds to the first screen, the game character in the game screen appears to move upward, and the second screen is different from the first screen.

[0224] In the embodiment of the present application, the first operation is located in the gesture navigation area, and the electronic device distributes the first input event to the gesture navigation module and the game application respectively, so that the game application can respond to the first operation and display the second screen. In this way, the problem of disconnection caused by the user accidentally triggering the gesture navigation window in the game scene can be reduced, thereby improving the user's gaming experience.

[0225] In a possible implementation, the touch method also includes: after the first application is started, the gesture navigation module indicates first information, and the first information is used to indicate that when the electronic device receives a first input event in the first area, it distributes the first input event to the first application and the gesture navigation module respectively.

[0226] This step may correspond to step S1008, which will not be described in detail in the present embodiment. In this way, the electronic device can execute the process of sending the input event to both the game application and the gesture navigation module after receiving the first signal.

[0227] In a possible implementation, after the first application is started, the gesture navigation module indicates the first information, including: after the first application is started, if the first application is in a preset application list, the electronic device indicates a first instruction to the gesture navigation module; then the gesture navigation module indicates the first information according to the first instruction.

[0228] The preset application list may correspond to the white list (or double-send game list) in step S1003. The step may refer to the relevant descriptions in steps S1004 and S1006, which will not be described here. In this way, the electronic device can determine whether the current game application is applicable to the method of distributing input events to the game application and the gesture navigation module through the white list, thereby improving the accuracy of the solution.

[0229] In one possible implementation, in response to a first operation, the electronic device distributes the first input event to the first application and the gesture navigation module, respectively, including: when the name of the window at the down point of the first operation is the second window, the electronic device distributes the first input event to the gesture navigation module and the first application, respectively; wherein the second window is a window managed by the gesture navigation module; the second window is located on an upper layer of the first window, the second window is smaller than the first window, and the second window covers the first area.

[0230] It can be understood that down can be understood as the first touch point in the trigger operation. The first touch point can refer to Figure 5A The relevant description in will not be repeated here.

[0231] like Figure 8 As shown, the first window may correspond to the game window 802, and the second window may correspond to the gesture navigation window, wherein the gesture navigation window is located on the upper layer of the game window, the gesture navigation window is smaller than the game window, and the gesture navigation window covers the game window. In this way, after the electronic device sets the gesture navigation area as the input event dual-sending area, the electronic device distributes the input event of the down point in the gesture navigation window to the game application and the gesture navigation module respectively, so as to reduce the problem of disconnection during the game and improve the user's gaming experience.

[0232] In a possible implementation, the size of the second window is the same as the size of the first area, the width of the first window is the same as the second window, and the height of the first window is smaller than that of the second window.

[0233] The size of the gesture navigation window is the same as the size of the gesture navigation area, the width of the gesture navigation window is the same as the width of the game window, and the height of the gesture navigation window is smaller than the game window. In this way, the first area can cover the gesture navigation window to ensure that the triggering operations in the gesture navigation window all fall into the first area.

[0234] In a possible implementation, after the electronic device displays the second screen and the first control in the first window, the electronic device further includes:

[0235] 1) At a third moment, the electronic device receives a second operation in the second area.

[0236] The second area is part of the first area; the second moment is earlier than the third moment, and the time difference between the third moment and the second moment is less than the time threshold. The time threshold can be 3s, and the second area can correspond to Fig. 9 The second operation may correspond to the user's Figure 7 The trigger operation of sliding upward in the interface shown in b.

[0237] 2) In response to the second operation, the electronic device distributes the second input event to the gesture navigation module, and does not distribute it to the first application.

[0238] The second input event is an input event corresponding to the second operation. This step can refer to the relevant description in step S1016, which will not be repeated here.

[0239] 3) The electronic device displays the desktop, and the electronic device runs the first application in the background.

[0240] The electronic device can display the desktop as Figure 7 As shown in the c interface.

[0241] It is understandable that in the scenario provided by this embodiment, the electronic device can return to the desktop from the game application. In one possible implementation, if the game application has been running in the background and the electronic device switches the game application to the foreground, the game screen displayed by the electronic device is the same as the game screen displayed before returning to the desktop, such as Figure 7 The b interface and Figure 7 This can prevent the game application from mistakenly responding to the second swipe up operation and reduce problem scenarios (such as Figure 6 shown) appears.

[0242] In a possible implementation manner, the height of the second area is the same as that of the first area, and the second area is located in the middle of the first area.

[0243] The height of the input event single-shot area is the same as the height of the gesture navigation area, and the input event single-shot area is located in the middle of the gesture navigation area. Figure 8 In this way, the native scene of returning to the desktop can be used, and users can habitually swipe up from the middle to return the electronic device to the desktop without affecting user operations.

[0244] A possible implementation also includes:

[0245] 1) After the first application is started, the electronic device instructs the desktop application on a second instruction.

[0246] Among them, this step can refer to the relevant descriptions in step S1005 and step S1007, which will not be repeated here.

[0247] 2) The desktop application monitors the first input event.

[0248] For this step, please refer to the relevant description of step S1012, which will not be repeated here.

[0249] 3) The desktop application indicates the second information to the gesture navigation module.

[0250] The second information is used to indicate the creation of a third window; wherein the second information includes at least one of the following: a transparency format of the third window, a title of the third window, a position of the third window, a height of the third window, and a width of the third window; wherein the transparency format of the third window is invisible to the user; the third window is located on an upper layer of the second window, the third window is smaller than the second window, and the third window covers the second area.

[0251] The third window may correspond to Fig. 9The window of the input event single-shot area 902 in this step can refer to the relevant description at step S1014, which will not be repeated here.

[0252] 4) The electronic device covers the third window on top of the second window within a time threshold from the second moment.

[0253] In this way, after the electronic device receives the first operation in the first area, the electronic device can create a third window so that when the user performs the second operation to control the electronic device to return to the desktop, the game application does not respond to the second input event, thereby reducing problem scenarios and improving the user's gaming experience.

[0254] In a possible implementation, the third window coincides with the center position of the second window, the width of the third window is smaller than the width of the second window, and the height of the third window is equal to the height of the second window.

[0255] like Fig. 9 As shown, the window of the single input event area 902 coincides with the center of the gesture navigation window, the width of the window of the single input event area 902 is smaller than the width of the gesture navigation window, and the height of the window of the single input event area 902 is equal to the height of the gesture navigation window. In this way, during the game, the user can control the electronic device to return to the desktop by sliding up a second time in the middle position, thereby improving the user's gaming experience.

[0256] In one possible implementation, in response to the second operation, the electronic device distributes the second input event to the gesture navigation module and does not distribute it to the first application, including: when the window name at the down point of the second operation is the title of the third window, the electronic device distributes the second input event to the gesture navigation module and does not distribute it to the first application.

[0257] This step can refer to the relevant description in step S1016, which will not be repeated here. In this way, the electronic device can return to the desktop when receiving the second swipe up operation, and the game application does not respond to the swipe up operation, so as to reduce problem scenarios and improve the user's gaming experience.

[0258] A possible implementation also includes: in response to the first operation, the electronic device also displays a navigation bar and prompt information; the navigation bar is used to indicate the location of the second area, and the prompt information is used to prompt the user to perform a second operation in the second area to enable the electronic device to display the desktop.

[0259] Among them, the navigation bar can correspond to Figure 7 In the interface shown in b, bar 705, the prompt information may correspond to Figure 7 The prompt information 703 in the interface shown in b in FIG. In this way, the user can intuitively understand the corresponding operation of returning to the desktop through text, thereby improving the user's experience.

[0260] In a possible implementation, when the number of times the prompt information is displayed reaches a preset number, the desktop application no longer displays the prompt information.

[0261] In this way, after the user understands the function, the electronic device will no longer display prompt information, which can improve the simplicity and aesthetics of the interface.

[0262] In a possible implementation, the navigation bar and the prompt information are both controlled and displayed by the desktop application. In this way, the electronic device can control the display and hiding of the navigation bar and the display and hiding of the prompt information through the desktop application.

[0263] A possible implementation also includes:

[0264] 1) At the fourth moment, the electronic device displays the third picture and the first control in the first window.

[0265] 2) At a fifth moment, the electronic device receives a third operation in the first area.

[0266] 3) In response to the third operation, the electronic device distributes the third input event to the first application and the gesture navigation module respectively; the third input event is an input event corresponding to the third operation.

[0267] 4) The electronic device displays a fourth screen and the first control in the window of the first application, the fourth screen is a screen obtained by the first application in response to triggering the first control in the third screen, and the fourth screen is different from the third screen; the fifth moment is earlier than the fourth moment.

[0268] For steps 1) to 4), please refer to the relevant descriptions in steps S1101-S1104, which will not be repeated here.

[0269] 5) At a sixth moment, the electronic device receives a fourth operation in the second area.

[0270] The fifth moment is earlier than the sixth moment, and the time difference between the fifth moment and the sixth moment is greater than the time threshold. The second area may correspond to Figure 8 The middle position of the input event double-sent area 801 in the electronic device. It can be understood that the third operation and the fourth operation are both swipe-up operations, and the time interval between the third operation and the fourth operation exceeds the time threshold. At this time, the third window disappears and the second area is covered by the second window. Fig. 9 The scene is restored to Figure 8 The scene in.

[0271] 6) In response to the fourth operation, the electronic device distributes the fourth input event to the gesture navigation module and the first application respectively; the fourth input event is an input event corresponding to the fourth operation.

[0272] It should be noted that although the fourth operation is also a swipe up operation on the middle of the gesture navigation area, since the second area is the gesture navigation window at this time, and the gesture navigation area is a dual-input event area, at this time, the electronic device will perform Figure 5A The logic in , doubles the fourth input event.

[0273] It is understandable that if the user performs a single sliding operation in the gesture navigation area, the operation may be an error of the user; and if the user performs two upward sliding operations in the gesture navigation area within a short period of time, it indicates that the user has an interactive intention to exit the game or return to the desktop. If the third window is always covered in the gesture navigation area, it may cause the user to return to the desktop by mistake during the game. In this way, the scenario of the electronic device mistakenly responding to return to the desktop can be reduced.

[0274] In a possible implementation, the method further includes: the electronic device overlaying the third window on the second window within a time threshold from a fourth moment; and the electronic device removing the third window after the time threshold from the fourth moment.

[0275] This step can refer to the relevant description in step S1017, which will not be repeated here. In this way, the scenario where the electronic device erroneously responds to return to the desktop can be reduced.

[0276] A possible implementation also includes:

[0277] 1) At the seventh moment, the electronic device displays the fifth screen in the window of the second application, and the fifth screen is in full screen mode; the sixth moment is earlier than the seventh moment; and the second application is not in the preset application list.

[0278] like Fig.12 As shown, the second application may be a non-game application, for example, the second application may be a video application. The fifth screen may be Fig.12 The interface shown in a.

[0279] 2) At an eighth moment, the electronic device receives a fifth operation in the first area.

[0280] The first area can be Fig.12 In the gesture navigation area at the bottom of the interface shown in a, the fifth operation can be a trigger operation of sliding upward from the bottom of the screen.

[0281] 3) In response to the fifth operation, the electronic device distributes the fifth input event to the gesture navigation module; the fifth input event is an input event corresponding to the fifth operation.

[0282] When the application program running on the electronic device is not a program in the whitelist, the electronic device does not execute the input event double-sending logic, so the electronic device here only distributes the fifth input event to the gesture navigation module (similar to the native process).

[0283] 4) The electronic device displays the desktop; the seventh moment is earlier than the eighth moment.

[0284] In this way, when the electronic device is not running a game application in the whitelist, the electronic device does not execute the input event double-sending logic, thereby improving the accuracy of the touch control method in the embodiment of the present application.

[0285] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0286] The touch control method of the embodiment of the present application has been described above, and the device for executing the touch control method provided by the embodiment of the present application is described below. Those skilled in the art can understand that the method and the device can be combined and referenced with each other, and the relevant device provided by the embodiment of the present application can execute the steps in the touch control method.

[0287] like Fig.13 As shown, Fig.13 A schematic diagram of the structure of a touch control device provided in an embodiment of the present application. The touch control device may be a terminal device in an embodiment of the present application, or a chip or chip system in the terminal device.

[0288] like Fig.13 As shown, the touch control device 1300 can be used in a communication device, a circuit, a hardware component or a chip, and the touch control device includes: a display unit 1301 and a processing unit 1302. The display unit 1301 is used to support the display step performed by the touch control device 1300; the processing unit 1302 is used to support the touch control device 1300 to perform the information processing step.

[0289] In a possible implementation, the touch control device 1300 may also include a communication unit 1303. Specifically, the communication unit is used to support the touch control device 1300 to execute the steps of sending and receiving data. The communication unit 1303 may be an input or output interface, a pin or a circuit.

[0290] In a possible embodiment, the touch control device may further include: a storage unit 1304. The processing unit 1302 and the storage unit 1304 are connected via a line. The storage unit 1304 may include one or more memories, and the memory may be a device used to store programs or data in one or more devices or circuits. The storage unit 1304 may exist independently and be connected to the processing unit 1302 of the touch control device via a communication line. The storage unit 1304 may also be integrated with the processing unit 1302.

[0291] The storage unit 1304 may store computer-executable instructions of the method in the terminal device so that the processing unit 1302 executes the method in the above embodiment. The storage unit 1304 may be a register, a cache, or a RAM, etc. The storage unit 1304 may be integrated with the processing unit 1302. The storage unit 1304 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, and the storage unit 1304 may be independent of the processing unit 1302.

[0292] The touch control method provided in the embodiment of the present application can be applied to electronic devices with communication functions. The electronic device includes an electronic device, and the specific device form of the electronic device can refer to the above related description, which will not be repeated here.

[0293] An embodiment of the present application provides an electronic device, which includes: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the electronic device executes the above method.

[0294] The embodiment of the present application provides a chip. The chip includes a processor, and the processor is used to call a computer program in a memory to execute the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above related embodiments, and will not be repeated here.

[0295] The embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. The above method is implemented when the computer program is executed by the processor. The method described in the above embodiment can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the function can be stored as one or more instructions or codes on a computer-readable medium or transmitted on a computer-readable medium. Computer-readable media can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium that can be accessed by a computer.

[0296] In one possible implementation, a computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disk storage, disk storage or other magnetic storage devices, or any other medium that is intended to carry or store the required program code in the form of instructions or data structures and can be accessed by a computer. Moreover, any connection is appropriately referred to as a computer-readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave) is used to transmit software from a website, server or other remote source, the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology such as infrared, radio and microwave are included in the definition of medium. Disks and optical disks as used herein include optical disks, laser disks, optical disks, digital versatile disks (DVD), floppy disks and Blu-ray disks, where disks usually reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included in the scope of computer-readable media.

[0297] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed, the computer executes the above method.

[0298] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0299] The above specific implementation methods further illustrate the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation methods of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present invention should be included in the scope of protection of the present invention.

Claims

1. A touch control method, characterized in that: Applied to electronic equipment, the method comprises: Displaying the first interface of the first application in full screen; receiving, at a first moment, a first operation acting on a first area; In response to the first operation, a first input event is distributed to a first service and a second service, where the first service is the first application, the second service is used to execute a gesture navigation function, and the first input event is an input event corresponding to the first operation; receiving, at a second moment, a second operation acting on a second area, where the second area is a partial area of ​​the first area, the second moment being later than the first moment and a time difference between the second moment and the first moment being less than a preset duration; In response to the second operation, a second input event is distributed to the second service but not to the first application, the second input event being an input event corresponding to the second operation.

2. The method according to claim 1, characterized in that The second region and the first region have the same size in the first direction, and the second region has a smaller size in the second direction than the first region.

3. The method according to claim 1 or 2, characterized in that: The second area is located in the middle of the first area.

4. The method according to claim 1, characterized in that: The first interface is a horizontally displayed interface, and the first area is located at the bottom of the first interface.

5. The method according to claim 1, characterized in that The first application is a game application.

6. The method according to claim 1, characterized in that The first interface also includes at least one control, and a portion of the at least one control falls within the first area.

7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: In response to the first operation, the electronic device displays a second interface, wherein the second interface includes: a navigation bar, wherein the navigation bar is used to indicate a location of the second area; In response to the second operation, the electronic device displays the desktop.

8. The method according to any one of claims 1 to 6, characterized in that The first operation and the second operation are both swiping up operations.

9. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: receiving, at a third time, a third operation acting on a third area, the third area being an area other than the second area in the first area, the third time being later than the first time and earlier than the second time; In response to the third operation, the electronic device distributes a third input event to the first service and the second service, and the third input event is an input event corresponding to the third operation.

10. The method according to claim 1, characterized in that The method further comprises: Before displaying the first interface of the first application in full screen, starting the first application; In response to the first application being in a preset application list, when the first operation acting on the first area is received, a step of distributing the first input event to the first service and the second service in response to the first operation is performed.

11. The method according to claim 1, characterized in that: In response to the first operation, distributing the first input event to the first service and the second service includes: When the name of the window where the down point of the first operation is located is the second window, the first input event is distributed to the first business and the second business; wherein the second window is the window corresponding to the second business, and the second window occupies the first area, the second window is located on the upper layer of the first window, and the first window is the window corresponding to the first business.

12. The method according to claim 1, characterized in that The method further comprises: In response to the first operation, a third window occupying the second area is created, the third window is invisible, and the third window exists for a preset time period starting from the first moment.

13. The method according to claim 12, characterized in that When a preset time after the first moment is reached, the third window is cleared.

14. The method according to claim 1, characterized in that The method further comprises: receiving a fourth operation acting on the second area at a fourth moment, wherein the fourth moment is later than the first moment and a time difference between the fourth moment and the first moment is greater than the preset duration; In response to the fourth operation, a fourth input event is distributed to the first service and the second service respectively, and the fourth input event is an input event corresponding to the fourth operation.

15. An electronic device, characterized in that: include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the electronic device performs the method according to any one of claims 1 to 14.

16. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 14 is implemented.

17. A computer program product, characterized in that The method comprises a computer program, which, when being executed, enables a computer to execute the method according to any one of claims 1 to 14.