WO2022218352A1 - Method and apparatus for touch operation - Google Patents

Method and apparatus for touch operation Download PDF

Info

Publication number
WO2022218352A1
WO2022218352A1 PCT/CN2022/086662 CN2022086662W WO2022218352A1 WO 2022218352 A1 WO2022218352 A1 WO 2022218352A1 CN 2022086662 W CN2022086662 W CN 2022086662W WO 2022218352 A1 WO2022218352 A1 WO 2022218352A1
Authority
WO
WIPO (PCT)
Prior art keywords
input
sliding
movement
contact
contact mark
Prior art date
Application number
PCT/CN2022/086662
Other languages
French (fr)
Chinese (zh)
Inventor
董川
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2022218352A1 publication Critical patent/WO2022218352A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus

Definitions

  • the present application belongs to the field of communication technologies, and in particular relates to a touch operation method and device.
  • touch-sensitive electronic devices such as mobile phones and tablet computers can be seen everywhere in people's lives.
  • a finger and a stylus are used to perform touch operations on the display screen of an electronic device, if the size of the display screen of the electronic device is small, the fingers and the stylus often block the user's sight, making it impossible for the user to accurately Control the finger and the stylus to touch the to-be-operated position corresponding to the touch operation on the display screen. Invalid touch operation is caused, and the touch operation efficiency is reduced.
  • the purpose of the embodiments of the present application is to provide a touch operation method and device, which can solve the problem of low touch operation efficiency.
  • an embodiment of the present application provides a touch operation method, and the method includes:
  • the operation area is an area in the display interface other than the area where the touch point identifier is located;
  • the function corresponding to the third input is executed at the termination position of the movement of the contact mark.
  • an embodiment of the present application provides a control operation device, the device comprising:
  • a receiving module for receiving the first input
  • a display module configured to display a contact identifier on a display interface in response to the first input
  • the receiving module is further configured to receive a second input in an operation area, where the operation area is an area other than the area where the contact mark is located in the display interface;
  • control module for controlling the movement of the contact mark based on the second input in response to the second input
  • the receiving module is further configured to receive a third input in the operation area
  • An execution module configured to, in response to the third input, execute the function corresponding to the third input at the termination position of the movement of the contact mark.
  • embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .
  • an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.
  • the contact identifier may be displayed on the display interface in response to the first input.
  • the movement of the contact mark is controlled based on the second input, and in response to the third input received in the operation area, the function corresponding to the third input is executed at the termination position of the movement of the contact mark.
  • the operation area is an area on the display screen other than the area where the contact mark is located, there is a certain distance between the operation area and the contact mark. Therefore, when a finger and a stylus are used to move the contact mark on the operation area through the second input, the finger and the stylus cannot block the user's sight, and the user can precisely locate the moving position of the contact mark. Therefore, the contact mark can be precisely controlled to move to the position to be operated, so that the finger and the stylus can precisely trigger the function corresponding to the third input at the position to be operated.
  • FIG. 1 is a flowchart of a touch operation method provided by an embodiment of the present application
  • FIG. 2 is a schematic diagram of a target pop-up window interface provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a quick operation interface provided by an embodiment of the present application.
  • FIG. 4 is a flowchart of another touch operation method provided by an embodiment of the present application.
  • FIG. 5 is one of the operation schematic diagrams provided by the embodiment of the present application.
  • FIG. 6 is the second operation schematic diagram provided by the embodiment of the present application.
  • FIG. 7 is the third operation schematic diagram provided by the embodiment of the present application.
  • FIG. 8 is the fourth schematic diagram of operation provided by the embodiment of the present application.
  • FIG. 9 is the fifth schematic diagram of operation provided by the embodiment of the present application.
  • FIG. 10 is the sixth schematic diagram of operation provided by the embodiment of the present application.
  • FIG. 11 is a block diagram of a touch operation device provided by an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 13 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
  • first, second and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between “first”, “second”, etc.
  • the objects are usually of one type, and the number of objects is not limited.
  • the first object may be one or more than one.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the associated objects are in an "or” relationship.
  • touch-sensitive electronic devices such as mobile phones and tablet computers can be seen everywhere in people's lives.
  • the touch electronic device may be a terminal equipped with a touch display screen.
  • the terminal may be a mobile phone, a tablet computer, an e-book reader, smart glasses, a smart watch, a music player, a notebook computer, a laptop portable computer, a desktop computer, and the like.
  • the touch operation method may include:
  • Step 101 Receive a first input.
  • the terminal may have a precise operation mode (also known as a precise operation module).
  • the precise operation mode the user can control the finger and the stylus to precisely touch the to-be-operated position, so as to precisely control the contact piece to perform the touch operation at the to-be-operated position.
  • the to-be-operated position refers to a position where the user wants to perform a touch operation. For example, the words "Hello everyone" are displayed in the display interface. The user wants to click on the word "home”. The position where the word "home” is located is the position to be operated.
  • the precise operation mode may include various touch operation modes such as a click operation mode, a long press operation mode, and a slide operation mode.
  • the terminal may receive the first input on the setting page to enable the precise operation mode.
  • the settings page displays a precise operation indicator.
  • the terminal may receive the first input for the precise operation identifier on the setting page to enable the precise operation mode.
  • the setting page may display precise operation identifiers corresponding to different types of precise operation modes one-to-one.
  • the setting page may be any page displayed by the terminal, such as the program page of the target application, the target pop-up window interface, or the target floating frame page.
  • the first input may be a type of input such as a tap, a long press, a swipe, a hovering gesture, or a voice input.
  • the user can slide to input the word "W" in a black screen state.
  • the terminal can receive the sliding input of the word W.
  • the user can press and hold anywhere in the program interface of the target application.
  • the terminal may display the target pop-up window interface 201 after receiving the long-press input.
  • the target pop-up window interface 201 includes an operation bar area 202 , and a precise operation identifier 203 is displayed in the operation bar area 202 .
  • the operation bar area 202 may be located on the right side of the target pop-up window interface 201 .
  • the user can click the precise operation logo. This enables the terminal to receive the click input for the precise operation identifier on the target pop-up window interface.
  • the user may slide down from the top of the touch display screen in the display interface to perform a pull-down operation.
  • the terminal may display the shortcut operation interface 301 after receiving the sliding down input.
  • the shortcut operation interface 301 includes a precise operation identifier 302 . That is, a shortcut setting entry for precise operation mode is displayed on the shortcut operation interface.
  • the user can click the precise operation logo.
  • the terminal is made to receive the click input for the precise operation identifier on the shortcut operation interface.
  • Step 102 In response to the first input, display the contact identifier on the display interface.
  • the terminal may display the contact identifier on the display interface in response to the first input.
  • the contact identification may be a red dot icon, a finger icon, or a colored arrow icon, or the like.
  • the terminal can display the contact mark anywhere on the display interface.
  • the terminal can display the contact mark at a set position in the display interface. The set position may be the center position of the touch display screen or the like.
  • the terminal may also display the contact identifier on the display interface based on the user's input operation.
  • the process of displaying the contact identifier on the display interface by the terminal may include: the terminal receives a sixth input in the display interface, and in response to the sixth input, displays the contact identifier on the display interface based on the sixth input.
  • the sixth input may be a type of input such as a click, a long press, a slide, a hovering gesture, or a voice input.
  • the terminal displaying the contact identifier on the display interface based on the sixth input may include: the terminal is on the display interface, and the operation corresponding to the sixth input The location shows the contact identification.
  • the terminal displaying the contact identifier on the display interface based on the sixth input may include: on the display interface, the terminal displays the touch point at the end position of the sixth input. Point ID.
  • the termination position of the sliding input may be the position when the finger is lifted in the sliding input.
  • the user may tap the screen within the range of the set area where the position to be operated is located, that is, near the position to be operated.
  • the terminal is made to receive the click input in the display interface, and in response to the click input, the touch point identifier is displayed at the click position corresponding to the click input.
  • the user can control the finger and the stylus to slide on the touch screen to the set area where the position to be operated is located.
  • the terminal is made to receive the sliding input, and in response to the sliding input, display the contact mark at the end position of the sliding input.
  • the touch point identification can be displayed at the set position based on the sixth input. Therefore, the display position of the contact mark can be controlled manually, and the flexibility is high.
  • the user can display the contact mark near the to-be-operated position through the sixth input, thereby reducing the moving distance of subsequently moving the contact mark from the current position to the to-be-operated position, that is, reducing the subsequent operation of moving the contact mark and improving the operation. efficiency and improve user experience.
  • Step 103 Receive a second input in an operation area, where the operation area is an area in the display interface other than the area where the contact mark is located.
  • the terminal displays the contact mark its display interface can be divided into an area where the contact mark is located and an operation area, where the operation area is an area other than the area where the contact mark is located.
  • the operation area may be the entire area except the area where the contact mark is located, or the operation area may be a set part area except the area where the contact mark is located.
  • the area where the contact point identifier is located may refer to a circular area with the contact point identifier as the center and a set numerical radius. Or, take the contact mark as the center point, and set the length and width as a rectangular area.
  • the operation area in this embodiment of the present application is not limited, and it needs to be ensured that when the user uses a finger and a stylus to perform an operation in the operation area, the finger and the stylus do not block the line of sight of the contact mark.
  • Step 104 In response to the second input, control the movement of the contact mark based on the second input.
  • the second input may be a type of input such as a click, a long press, a slide, a hovering gesture, or a voice input.
  • the terminal controls the movement of the contact mark based on the second input to further describe.
  • the second input is a sliding input.
  • the process of the terminal controlling the movement of the contact identifier based on the second input may include: the terminal acquiring the sliding direction information and the track length information of the sliding input. According to the sliding direction information and the track length information, the contact mark is controlled to move the track length along the sliding direction.
  • the terminal may acquire the sliding direction information and track length information of the sliding input in real time. Therefore, it is possible to control the length of the track of the contact mark moving along the sliding direction in real time.
  • the terminal can respond to the sliding input, acquire the sliding direction information and track length information of the finger and the stylus in real time, and control the contact identification. Move the track length in the sliding direction.
  • the contact mark can be made to follow the movement of the finger and the stylus in real time, which is convenient for the user to determine the display position of the contact mark more intuitively, thereby facilitating precise control of the movement of the contact mark to the position to be operated.
  • the process in which the terminal may acquire the sliding direction information and the track length information of the sliding input in real time may include: the terminal may collect the starting position and the ending position of the sliding input. According to the vector from the start position to the end position, the sliding direction of the sliding input is the direction of the vector, and the track length is the length of the vector. to obtain the sliding direction information and track length information of the sliding input.
  • the origin of the terminal screen coordinate system is the position of the first pixel in the upper left corner of the display screen.
  • the X coordinate axis of the screen coordinate system is the row direction where the row pixels are located
  • the Y coordinate axis is the column direction where the column pixels are located.
  • the angle between the vector and the horizontal direction is arcsin3/5 ⁇ 36.87°, that is, the sliding direction is 36.87° with the positive direction of the X coordinate axis. direction.
  • the terminal control contact mark moves 5 pixels along a direction that forms an angle of 36.87° with the positive direction of the X coordinate axis.
  • the process of controlling the contact mark to move the track length along the sliding direction by the terminal may include: the terminal calculates and obtains the sliding input according to a preset scaling ratio between the track length and the moving distance of the contact mark.
  • the terminal control contact mark moves the target moving distance along the sliding direction.
  • the moving distance of the contact mark and the track length have a preset scaling ratio.
  • the terminal calculates that the moving distance of the target is equal to the track length of the sliding input.
  • the terminal controls the contact mark to move the track length along the sliding direction.
  • the ratio of the moving distance of the touch point identifier to the track length is less than 1, the calculated target moving distance is reduced according to the preset scaling ratio compared to the track length of the sliding input.
  • the actual moving distance of the terminal control contact mark along the sliding direction is less than the track length of the sliding input, which is convenient for the user to control the actual moving distance of the contact mark.
  • the ratio of the moving distance of the contact mark to the track length may also be greater than 1, which is not limited in this embodiment of the present application.
  • the track length is P pixels. If the preset scaling ratio between the track length and the moving distance of the contact mark is: 2:1, the target moving distance corresponding to the track length is 1/2 ⁇ P pixel; if the preset scaling ratio between the track length and the moving distance of the contact mark is Set the zoom ratio as: 1:1, then the target moving distance corresponding to the track length is P pixels; if the preset zoom ratio between the track length and the moving distance of the contact mark is: 2:1, then the target corresponding to the track length The moving distance is 2 ⁇ P pixels.
  • the process of the terminal controlling the movement of the contact identifier based on the second input may further include: acquiring sliding speed information of the sliding input. Based on this, according to the sliding direction information and the track length information, the process of controlling the contact mark to move the track length along the sliding direction may include: the terminal controls the contact mark to adopt the sliding speed according to the sliding direction information, the track length information and the sliding speed information, Move the track length in the sliding direction. In this way, the contact mark and the finger and the stylus ensure the same speed and movement trajectory, that is, the contact mark moves in parallel with the finger and the stylus, and maintains the same distance instantaneously.
  • the user can more directly control the movement of the contact mark through the finger and the stylus, and intuitively determine the display position of the contact mark. It is convenient to precisely control the movement of the contact mark to the position to be operated. Improve the visual effect of operation, improve operation efficiency, and improve user experience.
  • the process in which the terminal may acquire the sliding speed information of the sliding input may include: the terminal may collect the starting position, the ending position and the sliding time of the sliding input. According to the length of the vector from the start position to the end position and the sliding time, the sliding speed is obtained to obtain the sliding speed information.
  • Terminal control contact identification adopts Velocity, which moves the track length in the sliding direction.
  • the second input is a click input.
  • the process of the terminal controlling the movement of the touch point identifier based on the second input may include: the terminal may acquire the target distance and the movement direction between the click position of the click input and the display position of the touch point identifier.
  • the control contact marks move the target distance in the moving direction.
  • the moving direction may be the direction from the display position to the click position.
  • the process of the terminal controlling the contact mark to move the target distance along the moving direction according to the sliding direction information and the track length information may include: the terminal calculates the click input according to a preset scaling ratio between the target distance and the moving distance of the contact mark.
  • the terminal control contact point identifies the moving distance of the moving target along the moving direction.
  • the terminal calculates and obtains the target moving distance corresponding to the target distance input by clicking on the basis of the preset scaling ratio between the target distance and the moving distance of the touch point identifier.
  • the terminal calculates and obtains the explanation and implementation manner of the target moving distance corresponding to the trajectory length of the sliding input according to the preset scaling ratio between the trajectory length and the moving distance of the touch point identifier, which is not repeated in this embodiment of the present application.
  • the terminal may receive the second input multiple times in the operation area, and in response to receiving the second input each time, control the movement of the contact identifier based on the second input.
  • the method further includes: the terminal receives another second input in the operation area, and in response to the other second input, controlling the contact identifier to continue to move based on the second input.
  • the terminal after the terminal receives another second input in the operation area, in response to the second input, it can control the contact point identifier based on the other second input, and continue from the end position where the contact point identifier moves based on the previous second input. move. That is, before the terminal receives the third input in the operation area, the user can execute the second input in the operation area again after completing a second input and control the finger and the stylus to leave the touch screen display. The terminal is caused to receive the second input again, and in response to the second input, the contact identifier is controlled to continue to move based on the second input.
  • the terminal controls the contact mark to move to the position A based on the second input. Then, after receiving the second input, in response to the second input, the terminal controls the contact identifier to move from the position A based on the second input. It should be noted that, for the explanation and implementation manner of the terminal controlling the movement of the contact point identifier based on the second input, reference may be made to the explanation and implementation manner of the terminal controlling the movement of the contact point identifier based on the second input in the foregoing step 102. I won't go into details.
  • Step 105 Receive a third input in the operation area.
  • the third input when the user thinks that the desired position to be operated has been reached, the third input may be performed in the operation area.
  • the terminal may receive the third input in the operating area.
  • the input type of the third input is different from that of the second input. In this way, the terminal can distinguish whether the function corresponding to the third input needs to be executed at the terminal position where the contact mark moves.
  • the second input may be a type of input such as a click, a long press, a slide, a hovering gesture, or a voice input.
  • Step 106 In response to the third input, execute the function corresponding to the third input at the termination position of the movement of the contact mark.
  • the function corresponding to the third input may be an operation function.
  • the function corresponding to the third input may be a function set according to the actual situation. Wherein, when the third input is a different type of input, the functions corresponding to the third input may be different, thereby realizing different types of precise operation modes.
  • the function corresponding to the third input may be to trigger a click event at the termination position of the movement of the contact mark, in order to terminate the operation.
  • the position performs the real click operation, and realizes the click operation mode of the precise operation mode.
  • the corresponding function of the third input can be to trigger a long-press event at the end position of the movement of the contact mark, so as to perform a real long-press operation at the end position and realize the long-press in the precise operation mode operating mode.
  • the third input when the third input is a trigger operation of the same type, the third input may also correspond to different functions.
  • precise operation identifiers corresponding to different precise operation mode types one-to-one are displayed on the setting page.
  • the function corresponding to the third input may be determined according to the precise operation identifier corresponding to the first input.
  • the function corresponding to the third input is to trigger a click event at the end position of the movement of the contact mark, so as to perform a real click operation for the end position, and realize the click operation mode of the precise operation mode.
  • the touch operation method can display the touch point identifier on the display interface in response to the first input.
  • the movement of the contact mark is controlled based on the second input, and in response to the third input received in the operation area, the function corresponding to the third input is executed at the termination position of the movement of the contact mark.
  • the operation area is an area on the display screen other than the area where the contact mark is located, there is a certain distance between the operation area and the contact mark.
  • the finger and the stylus cannot block the user's sight, and the user can precisely locate the moving position of the contact mark. Therefore, the contact mark can be precisely controlled to move to the position to be operated, so that the finger and the stylus can precisely trigger the function corresponding to the third input at the position to be operated.
  • invalid touch operations are reduced, the false touch rate of operations is reduced, the touch operation efficiency is improved, and the user experience is improved.
  • FIG. 4 shows a flowchart of another touch operation method provided by an embodiment of the present application.
  • the triggering operation method can also be applied to the aforementioned touch electronic device.
  • the touch operation method may include:
  • Step 401 Receive a first input.
  • Step 402 In response to the first input, display the contact identifier on the display interface.
  • Step 403 Receive a second input in an operation area, where the operation area is an area in the display interface other than the area where the contact mark is located.
  • Step 404 In response to the second input, control the movement of the contact mark based on the second input.
  • Step 405 Receive a third input in the operation area.
  • Step 406 In response to the third input, execute the function corresponding to the third input at the termination position of the movement of the contact mark.
  • the precise operation mode may also include a trajectory drawing mode.
  • a third input of a specific input type may correspond to a trajectory drawing mode. Then, when the third input received by the terminal in step 405 is the third input of a specific input type, the function of the third input in step 406 is the function of determining the position of the starting point of drawing.
  • the setting page may display a precise operation identifier corresponding to the trajectory drawing mode, and the precise operation identifier is a trajectory drawing identifier.
  • the function of the third input in step 406 is the function of determining the position of the starting point for drawing.
  • the process of performing the function corresponding to the third input by the terminal at the end position of the movement of the contact mark may include: recording the end position of the movement of the contact mark.
  • the method further includes:
  • Step 407 Receive a fourth input in the operation area.
  • the fourth input may be a type of input such as a click, a long press, a slide, a hovering gesture, or a voice input.
  • the input type of the fourth input is different from that of the third input.
  • the fourth input may be of the same input type as the second input.
  • Step 408 In response to the fourth input, control the movement of the contact mark based on the fourth input, and according to the movement track of the contact mark, draw the set pattern with the end position as the drawing starting point, and display the set pattern.
  • the terminal in response to the fourth input, may draw the set pattern with the end position as the drawing starting point according to the movement trajectory of the movement of the contact mark based on the fourth input, and display the set pattern.
  • the setting pattern may include other shapes such as selection box patterns, line patterns, or other types of patterns.
  • the selection frame pattern may also include a rectangular selection frame pattern or a circular selection frame pattern.
  • the method further includes: the terminal displays pattern selection information, where the pattern selection information may include pattern identifiers corresponding to multiple types of patterns.
  • the terminal receives a seventh input of a target pattern identifier among the plurality of pattern identifiers, in response to the seventh input. Select the type of set pattern.
  • the terminal draws the selected type setting pattern with the end position as the drawing starting point.
  • the seventh input may be a type of input such as a click, a long press, a slide, a hovering gesture, or a voice input.
  • the pattern selection information may include a pattern identifier corresponding to the selection frame pattern, and a pattern identifier corresponding to the line pattern.
  • the setting pattern is a selection frame pattern.
  • the process that the terminal draws the set pattern with the termination position as the starting point for drawing according to the movement trajectory of the contact mark may include: using the termination position as the starting point, drawing a selection box pattern with the movement trajectory as the diagonal.
  • the terminal may acquire the position of the movement track point of the contact mark in real time during the process of controlling the movement of the contact mark based on the fourth input.
  • the positions of the four vertices constituting the target rectangle are calculated. Connect the vertices at the four positions to draw a selection box pattern.
  • the target rectangle is a rectangle whose diagonal is the line connecting the end position and the position of the moving track point.
  • the terminal acquires the pixel coordinates of the position of the first movement track point of the touch point identifier in real time as (2, 2). Then the pixel coordinates of the positions of the four vertices constituting the target rectangle are calculated as (1,1), (1,2), (2,2) and (2,2) in sequence. Connect the four vertices to draw the first selection box pattern. The pixel coordinates of the position of the second movement track point identified by the contact point obtained in real time are (2, 3).
  • the pixel coordinates of the positions of the four vertices constituting the target rectangle are calculated as (1,1), (1,3), (2,3) and (2,1) in sequence. Connect the four vertices to draw the second selection box pattern and delete the first selection box pattern.
  • the set pattern is a line pattern.
  • the process that the terminal draws the set pattern with the termination position as the drawing starting point according to the movement trajectory of the touch point identifier may include: drawing a line pattern of the movement trajectory.
  • the terminal can acquire the position of each movement trajectory point in the movement trajectory of the contact mark in real time, and use the termination position as the starting point to connect the movement trajectory points of each position. , to draw a line pattern.
  • the terminal acquires in real time the pixel coordinates of the position of the first movement track point in the movement track of the contact mark as (2, 2).
  • the pixel coordinates of the position of the second movement track point identified by the contact point obtained in real time are (2, 3).
  • the terminal may receive the fourth input in the operation area multiple times, and in response to each received fourth input, control the movement of the contact point identifier based on the fourth input.
  • the terminal receives the fifth input in the operation area, and before executing the function corresponding to the setting pattern, the method further includes: the terminal receives another input in the operation area.
  • a fourth input in response to another fourth input, controls the contact marker to continue to move based on the fourth input.
  • the terminal continuously draws the line pattern of the moving track according to the moving track of the contact point identification.
  • the continuous movement of the terminal based on another fourth input control contact identifier may refer to that the terminal moves for a certain distance based on a fourth input control contact identifier.
  • the terminal receives another fourth input, and in response to the other fourth input, the terminal controls the contact mark to continue to move from the stop position based on the other fourth input.
  • the stop position is the position at which the contact mark stops moving while the terminal moves for a certain distance based on a fourth input control contact mark.
  • the pixel coordinates of the termination position recorded by the terminal are (1, 1).
  • the terminal moves to the position where the pixel coordinates are (1, 2) based on a fourth input control contact identifier.
  • the terminal receives another fourth input, and in response to the other fourth input, the terminal controls the contact mark to continue to move from the position where the pixel coordinates are (1, 2).
  • Step 409 Receive a fifth input in the operation area.
  • the fifth input when the user thinks that the desired pattern termination position has been reached, the fifth input may be performed in the operation area. So that the terminal can receive the fifth input in the operation area.
  • the input type of the fifth input is different from that of the fourth input. In this way, the terminal can distinguish whether the function corresponding to the set pattern needs to be executed.
  • the fifth input may be a type of input such as a click, a long press, a slide, a hovering gesture, or a voice input.
  • Step 410 In response to the fifth input, execute the function corresponding to the set pattern.
  • the function corresponding to the setting pattern may be an operation function such as a frame selection function or a drawing and display function.
  • the function corresponding to the set pattern may be a function set according to the actual situation.
  • the types of the setting patterns are different, and the functions corresponding to the setting patterns are different.
  • the function corresponding to the setting pattern may be a frame selection function.
  • the function corresponding to the set pattern may be a drawing and display function, that is, displaying the drawn line pattern.
  • the types of setting patterns are different, and the functions corresponding to the setting patterns are the same.
  • the function corresponding to the setting pattern is a selection function, that is, the setting pattern is used to select the function of the information desired by the user.
  • the content of the area where the set pattern is located in the display interface is selected.
  • the terminal may display an operation selection that can be performed on the selected content, for example, a deletion operation selection, a copy operation selection, etc., so that the user can perform subsequent selections on the selected content.
  • the function corresponding to the setting pattern may be a frame selection function.
  • the user wants to box-select the three words "Hello".
  • the termination position of the contact identifier recorded by the terminal may be "you" in the upper left corner.
  • the fourth input is a sliding input
  • the fifth input is a two-click input, that is, a double-click input.
  • the user controls the finger and stylus to slide the input in the lower right direction in the operation area.
  • the terminal receives the sliding input, and in response to the sliding input, controls the contact mark to slide synchronously in the sliding direction of the sliding input.
  • the terminal receives the double-click input, and in response to the double-click input, "Hello" is box-selected.
  • the method before step 405 and/or step 409, the method further includes: when it is detected that the contact mark stops moving, displaying prompt information.
  • the prompt information is used to prompt the user for the executable input and the corresponding function of the input.
  • the executable operations may include at least one of: a second input and a third input.
  • step 402 and before step 405 it is assumed that the second input is sliding input, the third input is double-clicking input, and the function corresponding to the double-clicking input is a click operation.
  • a prompt message can be displayed.
  • the prompt information may include "You can continue to slide the screen to control the movement of the contact mark. Alternatively, you can double-tap the screen to end the movement of the contact mark and perform the click operation".
  • the function of the third input is the function of determining the position of the starting point of drawing
  • the fourth input is sliding input
  • the fifth input is double-clicking input
  • the function corresponding to the double-clicking input is the drawing display function.
  • the prompt information can include "You can continue to slide the screen to control the movement of the contact mark to draw the movement track. Alternatively, you can double-click the screen to end the movement of the contact mark and execute the display track".
  • the embodiment of the present application uses the following two examples to re-describe the aforementioned touch operation method.
  • the user wants to select a phrase from an article with a smaller font displayed on the terminal. If the user wants to select the phrase "high-level security service” framed by the selection box 501 in the display interface shown in FIG. 5 . At this point, the user needs to click the starting position of the phrase "high-level security service”, which is the position of the word "high”, and then click the end position of the phrase "high-level security service”, which is the position of the word "service”, to complete the "high-level security service". "The choice of the phrase.
  • the first input is a click input
  • the second input is a sliding input
  • the third input is two click inputs within a set duration, that is, a double-click input
  • the contact mark is a red dot icon
  • the function corresponding to the third input is Trigger a click event at the end position of the touchpoint marker movement to perform the actual click action for the end position.
  • the user can slide down from the top of the touch screen to make the terminal display a shortcut operation interface.
  • the shortcut operation interface includes a precise operation identifier corresponding to the click operation mode. The user clicks the precise operation identifier corresponding to the click operation mode, so that the terminal enables the click operation mode in the precise operation mode.
  • the user can move his finger on the touch screen at will, and finally click on the screen at the initial position A near the position of the word "high” in the phrase "high-level security service” displayed on the display interface, that is, the first position near the position of the word "high”. Drop your finger.
  • the terminal receives the click input, and displays a red dot icon at the click position (initial position A) corresponding to the click input. At this time, as shown in FIG. 6 , the user can see that a red dot icon 601 is displayed at the initial position A in the upper right corner direction near the word "high".
  • the user slides a finger in the lower left corner of the touch screen (the direction indicated by the arrow in Figure 8) in the lower right operation area of the area where the red dot icon is located.
  • the terminal controls the red dot icon to move from the initial position A to the lower left corner in synchronization with the sliding of the finger.
  • the user can lift the finger at any time to end the sliding operation, and the red dot icon stays and displayed at the end position of the sliding operation.
  • the user can swipe the finger in the operation area again.
  • the terminal controls the red dot icon to continue to move in response to the sliding input.
  • the user can double-tap the screen in the operation area.
  • the terminal receives the double-click input in the operation area, and in response to the double-click input, performs the click operation at the end position of the movement of the contact mark, that is, the position of the word "high” currently displayed by the red dot icon.
  • the user has completed the operation of clicking the starting position of the phrase "high-level security service", that is, the position of the word "high”.
  • the user can repeat the above process, so that the terminal performs the click operation again at the position of the word "service”. Complete the selection of the phrase "High Security Service”.
  • the user wants to draw an arc-shaped pattern with the position point B as the starting point.
  • the function corresponding to the arc pattern is the drawing display function.
  • the first input is a click input
  • the second input is a sliding input
  • the third input is a double-click input
  • the contact mark is a red dot icon
  • the function corresponding to the third input is the function of recording the starting point of trajectory drawing
  • the fourth input is sliding input
  • the fifth input is a double-click input.
  • the user can slide down from the top of the touch screen to make the terminal display a shortcut operation interface.
  • the shortcut operation interface includes a trajectory drawing mark corresponding to the trajectory drawing mode. The user clicks on the trajectory drawing logo, so that the terminal turns on the trajectory drawing mode in the precise operation mode.
  • the user can move his finger on the touch screen at will, and click the screen at the initial position C near the final position point B.
  • the terminal receives the click input, and displays a red dot icon at the click position (initial position C) corresponding to the click input.
  • a red dot icon 901 is displayed at the initial position C near the position point B.
  • the user slides his finger towards the lower right corner of the touch screen in the lower right operation area where the red dot icon is located.
  • the terminal controls the red dot icon 901 to move from the initial position C to the lower right corner in synchronization with the sliding of the finger.
  • the user double-taps the screen in the operating area.
  • the terminal receives the double-click input in the operation area, and records the position point B in response to the double-click input.
  • the user starts from any position in the operation area and slides his finger in the direction indicated by the arrow in FIG. 10 .
  • the direction indicated by the arrow in FIG. 10 is the arc direction of the circular arc pattern desired by the user.
  • the terminal controls the red dot icon to move from position B to the direction indicated by the arrow in synchronization with the sliding of the finger, and draws and displays the movement track with position B as the drawing starting point. line pattern.
  • the user can lift the finger at any time to end the sliding operation, and the red dot icon stays and displayed at the end position of the sliding operation.
  • the user can swipe the finger in the operation area again.
  • the terminal controls the red dot icon to continue to move in response to the sliding input, and continues to draw the line pattern of the moving trajectory starting from the end position of the last sliding operation.
  • the user determines to complete the operation of drawing the line pattern.
  • the user can double-click the screen in the operation area to make the terminal exit the trajectory drawing mode in the precise operation mode.
  • the terminal receives the double-click input in the operation area, and displays the drawn line pattern in response to the double-click input.
  • the touch operation method can display the touch point identifier on the display interface in response to the first input.
  • the movement of the contact mark is controlled based on the second input, and in response to the third input received in the operation area, the function corresponding to the third input is executed at the termination position of the movement of the contact mark.
  • the operation area is an area on the display screen other than the area where the contact mark is located, there is a certain distance between the operation area and the contact mark.
  • the finger and the stylus cannot block the user's sight, and the user can precisely locate the moving position of the contact mark. Therefore, the contact mark can be precisely controlled to move to the position to be operated, so that the finger and the stylus can precisely trigger the function corresponding to the third input at the position to be operated.
  • invalid touch operations are reduced, the false touch rate of operations is reduced, the touch operation efficiency is improved, and the user experience is improved.
  • the execution body may be a touch operation device, or a control module in the touch operation device for executing the method for touch operation.
  • a method for performing a touch operation by a touch operation device is used as an example to describe the device for touch operation provided by the embodiments of the present application.
  • FIG. 11 shows a block diagram of a touch operation device provided by an embodiment of the present application.
  • the touch operation device 1100 includes a receiving module 1101 , a display module 1102 , a control module 1103 and an execution module 1104 .
  • a receiving module 1101, configured to receive a first input
  • a display module 1102 configured to display the contact identifier on the display interface in response to the first input
  • the receiving module 1101 is further configured to receive the second input in the operation area, and the operation area is an area other than the area where the contact mark is located in the display interface;
  • control module 1103 configured to control the movement of the contact identifier based on the second input in response to the second input;
  • the receiving module 1101 is further configured to receive a third input in the operation area
  • the execution module 1104 is configured to, in response to the third input, execute the function corresponding to the third input at the termination position of the movement of the contact mark.
  • the second input includes a sliding input; the control module 1103 is further configured to:
  • the contact mark is controlled to move the track length along the sliding direction.
  • control module 1103 is further configured to:
  • the target moving distance corresponding to the track length of the sliding input is calculated
  • the control contact marks the moving distance of the moving target along the sliding direction.
  • control module 1103 is further configured to:
  • the control contact identification adopts the sliding speed to move the track length along the sliding direction.
  • the display module 1102 is further configured to:
  • prompt information is displayed, and the prompt information is used to prompt the user to perform operations and functions corresponding to the operations, and the executable operations include at least one of the following: a second input and a third input.
  • a track drawing marker is displayed, and the first input includes a first input for the track drawing marker; the execution module 1104 is further configured to record the end position of the movement of the contact marker.
  • the receiving module 1101 is further configured to receive the fourth input in the operation area.
  • the control module 1103 is further configured to, in response to the fourth input, control the movement of the contact identifier based on the fourth input;
  • the device also includes: a drawing module, used for drawing a set pattern with the end position as the drawing starting point according to the movement track of the contact mark.
  • the display module 1102 is also used for displaying the setting pattern.
  • the receiving module 1101 is further configured to receive the fifth input in the operation area.
  • the execution module 1104 is further configured to execute a function corresponding to the set pattern in response to the fifth input.
  • the drawing module is further configured to take the end position as a starting point, to draw a selection box pattern with a movement trajectory as a diagonal line; or, to draw a line pattern of the movement trajectory.
  • the touch operation device provided by the embodiment of the present application can display the touch point identifier on the display interface through the display module in response to the first input.
  • the control module controls the movement of the contact marker based on the second input in response to the second input received at the operating area, such that the execution module can execute the third input at the termination position of the movement of the contact marker in response to the third input received at the operating area corresponding function.
  • the operation area is an area on the display screen other than the area where the contact mark is located, there is a certain distance between the operation area and the contact mark.
  • the finger and the stylus cannot block the user's sight, and the user can precisely locate the moving position of the contact mark. Therefore, the contact mark can be precisely controlled to move to the position to be operated, so that the finger and the stylus can precisely trigger the function corresponding to the third input at the position to be operated.
  • invalid touch operations are reduced, the false touch rate of operations is reduced, the touch operation efficiency is improved, and the user experience is improved.
  • the touch operation device in the embodiments of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
  • the apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). assistant, PDA) and so on.
  • the non-mobile electronic device can be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which are not specifically limited in the embodiments of the present application.
  • Network Attached Storage NAS
  • PC personal computer
  • TV television
  • teller machine a self-service machine
  • the touch operation device in the embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android (Android) operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • the touch operation device provided in this embodiment of the present application can implement each process implemented by the method embodiments in FIG. 1 and FIG. 4 , and to avoid repetition, details are not described here.
  • an embodiment of the present application further provides an electronic device 1200, including a processor 1201, a memory 1202, a program or instruction stored in the memory 1202 and executable on the processor 1201,
  • an electronic device 1200 including a processor 1201, a memory 1202, a program or instruction stored in the memory 1202 and executable on the processor 1201,
  • the program or instruction is executed by the processor 1201
  • each process of the above-mentioned embodiments of the touch operation method can be realized, and the same technical effect can be achieved. To avoid repetition, details are not described here.
  • the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 13 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 1300 includes but is not limited to: a radio frequency unit 1301 , a network module 1302 , an audio output unit 1303 , an input unit 1304 , a sensor 1305 , a display unit 1306 , a user input unit 1307 , an interface unit 1308 , and a memory 1309 , and the processor 1310 and other components.
  • the electronic device 1300 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 1310 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. consumption management and other functions.
  • a power source such as a battery
  • the structure of the electronic device shown in FIG. 13 does not constitute a limitation on the electronic device.
  • the electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
  • the processor 1310 is configured to receive the first input.
  • the display unit 1306 is configured to display the contact identification on the display interface in response to the first input.
  • the processor 1310 is configured to receive a second input in an operation area, where the operation area is an area in the display interface other than the area where the touch point identifier is located. In response to the second input, movement of the contact marker is controlled based on the second input. A third input is received within the operating area. In response to the third input, the function corresponding to the third input is executed at the termination position of the movement of the contact mark.
  • the operation area is an area on the display screen other than the area where the contact mark is located, there is a certain distance between the operation area and the contact mark. Therefore, when a finger and a stylus are used to move the contact mark on the operation area through the second input, the finger and the stylus cannot block the user's sight, and the user can precisely locate the moving position of the contact mark.
  • the contact mark can be precisely controlled to move to the position to be operated, so that the finger and the stylus can precisely trigger the function corresponding to the third input at the position to be operated.
  • invalid touch operations are reduced, the false touch rate of operations is reduced, the touch operation efficiency is improved, and the user experience is improved.
  • the second input includes a sliding input; the processor 1310 is further configured to acquire sliding direction information and track length information of the sliding input. According to the sliding direction information and the track length information, the contact mark is controlled to move the track length along the sliding direction.
  • the processor 1310 is further configured to calculate and obtain the target movement distance corresponding to the trajectory length of the sliding input according to the preset scaling ratio between the trajectory length and the movement distance of the touch point identifier.
  • the touch point identifier is controlled to move the target moving distance along the sliding direction.
  • the processor 1310 is further configured to acquire sliding speed information of the sliding input. According to the sliding direction information, the track length information and the sliding speed information, the contact identifier is controlled to use the sliding speed to move the track length along the sliding direction.
  • the processor 1310 is further configured to display prompt information when it is detected that the contact mark stops moving, where the prompt information is used to prompt the user for an operation that can be performed and a function corresponding to the operation.
  • the operation includes at least one of: the second input and the third input.
  • a track drawing marker is displayed, and the first input includes a first input for the track drawing marker; the processor 1310 is further configured to record the end position of the movement of the contact marker;
  • the processor 1310 is further configured to receive a fourth input in the operation area.
  • the contact mark is controlled to move based on the fourth input, and according to the movement track of the contact mark, a set pattern is drawn with the end position as a drawing starting point.
  • the display unit 1306 is further configured to display the setting pattern.
  • the processor 1310 is further configured to receive a fifth input in the operation area. In response to the fifth input, the function corresponding to the setting pattern is executed.
  • the processor 1310 is further configured to use the termination position as a starting point to draw a selection box pattern with the movement trajectory as a diagonal line; or, to draw a line pattern of the movement trajectory.
  • the operation area is an area on the display screen other than the area where the contact mark is located, there is a certain distance between the operation area and the contact mark. Therefore, when a finger and a stylus are used to move the contact mark on the operation area through the second input, the finger and the stylus cannot block the user's sight, and the user can precisely locate the moving position of the contact mark.
  • the contact mark can be precisely controlled to move to the position to be operated, so that the finger and the stylus can precisely trigger the function corresponding to the third input at the position to be operated.
  • invalid touch operations are reduced, the false touch rate of operations is reduced, the touch operation efficiency is improved, and the user experience is improved.
  • the input unit 1304 may include a graphics processor (Graphics Processing Unit, GPU) 13041 and a microphone 13042. Such as camera) to obtain still pictures or video image data for processing.
  • the display unit 1306 may include a display panel 13061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 1307 includes a touch panel 13071 and other input devices 13072 .
  • the touch panel 13071 is also called a touch screen.
  • the touch panel 13071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 13072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • Memory 1309 may be used to store software programs as well as various data, including but not limited to application programs and operating systems.
  • the processor 1310 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 1310.
  • the embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the above-mentioned embodiments of the touch operation method is implemented, and can achieve The same technical effect, in order to avoid repetition, will not be repeated here.
  • the processor is the processor in the electronic device described in the foregoing embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used for running a program or an instruction to implement the above embodiments of the touch operation method and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
  • the disclosed apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.

Abstract

The present application discloses a method and apparatus for touch operation, which belong to the technical field of communications. The method comprises: receiving a first input; in response to the first input, displaying a touch point identifier on a display interface; receiving a second input in an operation area, the operation area being an area in the display interface other than the area in which the touch point identifier is located; in response to the second input and on the basis of the second input, controlling the touch point identifier to move; receiving a third input in the operation area; and in response to the third input, executing a function corresponding to the third input at a stop position to which the touch point identifier has moved.

Description

触控操作方法及装置Touch operation method and device
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求在2021年4月16日提交中国专利局、申请号为202110413329.0、名称为“触控操作方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202110413329.0 and the title of "touch operation method and device" filed with the China Patent Office on April 16, 2021, the entire contents of which are incorporated into this application by reference.
技术领域technical field
本申请属于通信技术领域,具体涉及一种触控操作方法及装置。The present application belongs to the field of communication technologies, and in particular relates to a touch operation method and device.
背景技术Background technique
如今,诸如手机、平板电脑等触控类电子设备在人们生活中随处可见。然而,当采用手指及触控笔在电子设备的显示屏幕上执行触控操作时,若电子设备的显示屏幕的尺寸较小,则手指及触控笔往往会遮挡用户视线,导致用户无法精准地控制手指及触控笔接触显示屏幕上该触控操作对应的待操作位置。造成无效触控操作,降低触控操作效率。Nowadays, touch-sensitive electronic devices such as mobile phones and tablet computers can be seen everywhere in people's lives. However, when a finger and a stylus are used to perform touch operations on the display screen of an electronic device, if the size of the display screen of the electronic device is small, the fingers and the stylus often block the user's sight, making it impossible for the user to accurately Control the finger and the stylus to touch the to-be-operated position corresponding to the touch operation on the display screen. Invalid touch operation is caused, and the touch operation efficiency is reduced.
发明内容SUMMARY OF THE INVENTION
本申请实施例的目的是提供一种触控操作方法及装置,能够解决触控操作效率较低的问题。The purpose of the embodiments of the present application is to provide a touch operation method and device, which can solve the problem of low touch operation efficiency.
第一方面,本申请实施例提供了一种触控操作方法,该方法包括:In a first aspect, an embodiment of the present application provides a touch operation method, and the method includes:
接收第一输入;receive a first input;
响应于所述第一输入,在显示界面显示触点标识;In response to the first input, displaying the contact identification on the display interface;
在操作区域内接收第二输入,所述操作区域为所述显示界面中除所述触点标识所在区域之外的区域;receiving a second input in an operation area, where the operation area is an area in the display interface other than the area where the touch point identifier is located;
响应于所述第二输入,基于所述第二输入控制所述触点标识移动;in response to the second input, controlling movement of the contact marker based on the second input;
在所述操作区域内接收第三输入;receiving a third input within the operating area;
响应于所述第三输入,在所述触点标识移动的终止位置执行所述第三输入对应的功能。In response to the third input, the function corresponding to the third input is executed at the termination position of the movement of the contact mark.
第二方面,本申请实施例提供了一种控操作装置,该装置包括:In a second aspect, an embodiment of the present application provides a control operation device, the device comprising:
接收模块,用于接收第一输入;a receiving module for receiving the first input;
显示模块,用于响应于所述第一输入,在显示界面显示触点标识;a display module, configured to display a contact identifier on a display interface in response to the first input;
所述接收模块,还用于在操作区域内接收第二输入,所述操作区域为所述显示界面中除所述触点标识所在区域之外的区域;The receiving module is further configured to receive a second input in an operation area, where the operation area is an area other than the area where the contact mark is located in the display interface;
控制模块,用于响应于所述第二输入,基于所述第二输入控制所述触点标识移动;a control module for controlling the movement of the contact mark based on the second input in response to the second input;
所述接收模块,还用于在所述操作区域内接收第三输入;the receiving module is further configured to receive a third input in the operation area;
执行模块,用于响应于所述第三输入,在所述触点标识移动的终止位置执行所述第三输入对应的功能。An execution module, configured to, in response to the third input, execute the function corresponding to the third input at the termination position of the movement of the contact mark.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.
在本申请实施例中,可以通过响应于第一输入在显示界面显示触点标识。响应于在操作区域接收的第二输入,基于第二输入控制触点标识移动,并响应于在操作区域接收的第三输入,在触点标识移动的终止位置执行第三输入对应的功能。其中,由于操作区域为显示屏幕上除触点标识所在区域外的区域,则操作区域与触点标识具有一定距离。因此采用手指及触控笔在操作区域上通过第二输入移动触点标识时,手指及触控笔无法遮挡用户视线,用户可以精确定位触点标识的移动位置。从而可以精确控制触点标识移动至待操作位置,进而使得手指及触控笔可以精确在待操作位置触发第三输入对应的功能。In this embodiment of the present application, the contact identifier may be displayed on the display interface in response to the first input. In response to the second input received in the operation area, the movement of the contact mark is controlled based on the second input, and in response to the third input received in the operation area, the function corresponding to the third input is executed at the termination position of the movement of the contact mark. Wherein, since the operation area is an area on the display screen other than the area where the contact mark is located, there is a certain distance between the operation area and the contact mark. Therefore, when a finger and a stylus are used to move the contact mark on the operation area through the second input, the finger and the stylus cannot block the user's sight, and the user can precisely locate the moving position of the contact mark. Therefore, the contact mark can be precisely controlled to move to the position to be operated, so that the finger and the stylus can precisely trigger the function corresponding to the third input at the position to be operated.
附图说明Description of drawings
图1是本申请实施例提供的一种触控操作方法的流程图;FIG. 1 is a flowchart of a touch operation method provided by an embodiment of the present application;
图2是本申请实施例提供的一种目标弹窗界面的示意图;2 is a schematic diagram of a target pop-up window interface provided by an embodiment of the present application;
图3是本申请实施例提供的一种快捷操作界面的示意图;3 is a schematic diagram of a quick operation interface provided by an embodiment of the present application;
图4是本申请实施例提供的另一种触控操作方法的流程图;FIG. 4 is a flowchart of another touch operation method provided by an embodiment of the present application;
图5是本申请实施例提供的操作示意图之一;FIG. 5 is one of the operation schematic diagrams provided by the embodiment of the present application;
图6是本申请实施例提供的操作示意图之二;FIG. 6 is the second operation schematic diagram provided by the embodiment of the present application;
图7是本申请实施例提供的操作示意图之三;FIG. 7 is the third operation schematic diagram provided by the embodiment of the present application;
图8是本申请实施例提供的操作示意图之四;FIG. 8 is the fourth schematic diagram of operation provided by the embodiment of the present application;
图9是本申请实施例提供的操作示意图之五;FIG. 9 is the fifth schematic diagram of operation provided by the embodiment of the present application;
图10是本申请实施例提供的操作示意图之六;FIG. 10 is the sixth schematic diagram of operation provided by the embodiment of the present application;
图11是本申请实施例提供的一种触控操作装置的框图;FIG. 11 is a block diagram of a touch operation device provided by an embodiment of the present application;
图12是本申请实施例提供的一种电子设备的结构示意图;12 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图13是本申请实施例提供的一种电子设备的硬件结构示意图。FIG. 13 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
具体实施例specific embodiment
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art fall within the protection scope of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between "first", "second", etc. The objects are usually of one type, and the number of objects is not limited. For example, the first object may be one or more than one. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的触控操作方法进行详细地说明。The touch operation method provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
如今,诸如手机、平板电脑等触控类电子设备在人们生活中随处可见。Nowadays, touch-sensitive electronic devices such as mobile phones and tablet computers can be seen everywhere in people's lives.
然而,当采用诸如手指及触控笔在电子设备的显示屏幕上执行较为 精细化的触控操作,例如,利用修图软件对照片细节进行美化处理、利用绘图软件进行精细绘画创作、或者利用文件编辑软件对文件内容进行修改时,若电子设备的显示屏幕的尺寸较小,则手指及触控笔往往会遮挡用户视线,导致用户无法精准地控制手指及触控笔接触显示屏幕上该触控操作对应的待操作位置。待操作位置指的是用户想要执行触控操作的位置。用户只能通过自身感觉判断该触控操作对应的大概待操作位置,从而控制移动控制件至待操作位置,执行触控操作。这就容易导致用户无法精准地控制手指及触控笔在待操作位置执行触控操作,造成无效触控操作,提高操作误触率,降低触控操作效率。However, when using fingers and stylus to perform more delicate touch operations on the display screen of electronic devices, for example, using photo editing software to beautify photo details, using drawing software for fine painting creation, or using file When editing software modifies the file content, if the size of the display screen of the electronic device is small, the fingers and stylus will often block the user's line of sight, so that the user cannot accurately control the finger and stylus to touch the touch screen on the display screen. Operate the corresponding to-be-operated position. The position to be operated refers to the position where the user wants to perform a touch operation. The user can only judge the approximate to-be-operated position corresponding to the touch operation through his own feeling, so as to control the mobile control member to the to-be-operated position to perform the touch operation. This easily causes the user to be unable to precisely control the finger and the stylus to perform the touch operation at the to-be-operated position, resulting in an invalid touch operation, increasing the rate of false touches, and reducing the efficiency of the touch operation.
请参考图1,其示出了本申请实施例提供的一种触控操作方法的流程图。该触控操作方法可以应用于触控类电子设备。其中,触控类电子设备可以为安装有触控显示屏的终端。例如,该终端可以为手机、平板电脑、电子书阅读器、智能眼镜、智能手表、音乐播放器、笔记本电脑、膝上型便携计算机以及台式计算机等。如图1所示,触控操作方法可以包括:Please refer to FIG. 1 , which shows a flowchart of a touch operation method provided by an embodiment of the present application. The touch operation method can be applied to touch electronic devices. Wherein, the touch electronic device may be a terminal equipped with a touch display screen. For example, the terminal may be a mobile phone, a tablet computer, an e-book reader, smart glasses, a smart watch, a music player, a notebook computer, a laptop portable computer, a desktop computer, and the like. As shown in Figure 1, the touch operation method may include:
步骤101、接收第一输入。Step 101: Receive a first input.
本申请实施例中,终端可以具有精准操作模式(又称精细操作模块)。在精准操作模式下,用户可以控制手指及触控笔精准接触待操作位置,以精准控制接触件在待操作位置执行触控操作。其中,待操作位置指的是用户想要执行触控操作的位置。例如,显示界面中显示“大家好”字样。用户想要点击“家”字样。则“家”字样所在位置即为待操作位置。精准操作模式可以包括点击操作模式、长按操作模式以及滑动操作模式等多种触摸操作模式。In this embodiment of the present application, the terminal may have a precise operation mode (also known as a precise operation module). In the precise operation mode, the user can control the finger and the stylus to precisely touch the to-be-operated position, so as to precisely control the contact piece to perform the touch operation at the to-be-operated position. The to-be-operated position refers to a position where the user wants to perform a touch operation. For example, the words "Hello everyone" are displayed in the display interface. The user wants to click on the word "home". The position where the word "home" is located is the position to be operated. The precise operation mode may include various touch operation modes such as a click operation mode, a long press operation mode, and a slide operation mode.
可选地,终端可以在设定页面接收第一输入,以开启精准操作模式。或者,设定页面显示有精准操作标识。终端可以在设定页面中接收针对精准操作标识的第一输入,以开启精准操作模式。其中,在精准操作模式具有多种类型的情况下,设定页面可以显示有与不同精准操作模式类型一一对应的精准操作标识。设定页面可以为终端所显示的任一页面,例如目标应用程序的程序页面、目标弹窗界面或者目标悬浮框页面等。 第一输入可以是点击、长按、滑动、悬空手势或者语音输入等类型的输入。Optionally, the terminal may receive the first input on the setting page to enable the precise operation mode. Alternatively, the settings page displays a precise operation indicator. The terminal may receive the first input for the precise operation identifier on the setting page to enable the precise operation mode. Wherein, in the case that there are multiple types of precise operation modes, the setting page may display precise operation identifiers corresponding to different types of precise operation modes one-to-one. The setting page may be any page displayed by the terminal, such as the program page of the target application, the target pop-up window interface, or the target floating frame page. The first input may be a type of input such as a tap, a long press, a swipe, a hovering gesture, or a voice input.
示例的,用户可以在黑屏状态下滑动输入W字样。终端可以接收W字样的滑动输入。或者,如图2所示,用户可以在目标应用程序的程序界面中任意位置长按。终端可以在接收到长按输入后,显示目标弹窗界面201。该目标弹窗界面201包括操作条区域202,操作条区域202内显示有精准操作标识203。其中,操作条区域202可以位于目标弹窗界面201的右侧。用户可以点击精准操作标识。使得终端在目标弹窗界面接收针对精准操作标识的点击输入。或者,如图3所示,用户可以在显示界面中从触控显示屏的顶部向下滑动,执行下拉操作。终端可以在接收到向下滑动输入后,显示快捷操作界面301。该快捷操作界面301包括精准操作标识302。即在快捷操作界面显示有精准操作模式快捷设置入口。用户可以点击精准操作标识。使得终端在快捷操作界面接收针对精准操作标识的点击输入。For example, the user can slide to input the word "W" in a black screen state. The terminal can receive the sliding input of the word W. Alternatively, as shown in FIG. 2 , the user can press and hold anywhere in the program interface of the target application. The terminal may display the target pop-up window interface 201 after receiving the long-press input. The target pop-up window interface 201 includes an operation bar area 202 , and a precise operation identifier 203 is displayed in the operation bar area 202 . The operation bar area 202 may be located on the right side of the target pop-up window interface 201 . The user can click the precise operation logo. This enables the terminal to receive the click input for the precise operation identifier on the target pop-up window interface. Alternatively, as shown in FIG. 3 , the user may slide down from the top of the touch display screen in the display interface to perform a pull-down operation. The terminal may display the shortcut operation interface 301 after receiving the sliding down input. The shortcut operation interface 301 includes a precise operation identifier 302 . That is, a shortcut setting entry for precise operation mode is displayed on the shortcut operation interface. The user can click the precise operation logo. The terminal is made to receive the click input for the precise operation identifier on the shortcut operation interface.
步骤102、响应于第一输入,在显示界面显示触点标识。Step 102: In response to the first input, display the contact identifier on the display interface.
本申请实施例中,终端在接收到第一输入后,可以响应于第一输入,在显示界面显示触点标识。可选地,触点标识可以为红色圆点图标、手指图标或者彩色箭头图标等。终端可以在显示界面中任一位置显示触点标识。或者终端可以在显示界面中设定位置显示触点标识。该设定位置可以是触控显示屏的中心位置等。In this embodiment of the present application, after receiving the first input, the terminal may display the contact identifier on the display interface in response to the first input. Optionally, the contact identification may be a red dot icon, a finger icon, or a colored arrow icon, or the like. The terminal can display the contact mark anywhere on the display interface. Alternatively, the terminal can display the contact mark at a set position in the display interface. The set position may be the center position of the touch display screen or the like.
可选地,终端还可以基于用户的输入操作,在显示界面显示触点标识。则终端在显示界面显示触点标识的过程可以包括:终端在显示界面内接收第六输入,响应于第六输入,基于第六输入在显示界面显示触点标识。其中,第六输入可以是点击、长按、滑动、悬空手势或者语音输入等类型的输入。Optionally, the terminal may also display the contact identifier on the display interface based on the user's input operation. The process of displaying the contact identifier on the display interface by the terminal may include: the terminal receives a sixth input in the display interface, and in response to the sixth input, displays the contact identifier on the display interface based on the sixth input. Wherein, the sixth input may be a type of input such as a click, a long press, a slide, a hovering gesture, or a voice input.
示例的,在第六输入为点击输入或者长按输入等针对同一操作位置的输入时,终端基于第六输入在显示界面显示触点标识可以包括:终端在显示界面中,第六输入对应的操作位置显示触点标识。在第六输入为滑动输入或者悬空手势输入等经过多个操作位置的输入时,终端基于第六输入在显示界面显示触点标识可以包括:终端在显示界面中,第六输 入的终止位置显示触点标识。其中,滑动输入的终止位置可以为滑动输入中手指抬起时的位置。Exemplarily, when the sixth input is a click input or a long-press input and other inputs for the same operation position, the terminal displaying the contact identifier on the display interface based on the sixth input may include: the terminal is on the display interface, and the operation corresponding to the sixth input The location shows the contact identification. When the sixth input is input through multiple operating positions, such as a sliding input or a hovering gesture input, the terminal displaying the contact identifier on the display interface based on the sixth input may include: on the display interface, the terminal displays the touch point at the end position of the sixth input. Point ID. The termination position of the sliding input may be the position when the finger is lifted in the sliding input.
具体示例的,用户可以在待操作位置所在设定区域范围内,即待操作位置附近点击屏幕。使得终端在显示界面内接收点击输入,响应于点击输入,在点击输入对应的点击位置显示触点标识。或者,用户可以控制手指及触控笔在触控显示屏上滑动至待操作位置所在设定区域范围内。使得终端接收滑动输入,响应于滑动输入,在滑动输入的终止位置显示触点标识。In a specific example, the user may tap the screen within the range of the set area where the position to be operated is located, that is, near the position to be operated. The terminal is made to receive the click input in the display interface, and in response to the click input, the touch point identifier is displayed at the click position corresponding to the click input. Alternatively, the user can control the finger and the stylus to slide on the touch screen to the set area where the position to be operated is located. The terminal is made to receive the sliding input, and in response to the sliding input, display the contact mark at the end position of the sliding input.
这样,由于触点标识可以基于第六输入在设定位置处显示。因此,该触点标识的显示位置可以人为控制,灵活性能较高。并且,用户可以通过第六输入使得触点标识显示于待操作位置附近,减少了后续将触点标识从当前位置移动至待操作位置的移动距离,即减少后续移动触点标识的操作,提高操作效率,提升用户体验。In this way, since the touch point identification can be displayed at the set position based on the sixth input. Therefore, the display position of the contact mark can be controlled manually, and the flexibility is high. In addition, the user can display the contact mark near the to-be-operated position through the sixth input, thereby reducing the moving distance of subsequently moving the contact mark from the current position to the to-be-operated position, that is, reducing the subsequent operation of moving the contact mark and improving the operation. efficiency and improve user experience.
步骤103、在操作区域内接收第二输入,操作区域为显示界面中除触点标识所在区域之外的区域。Step 103: Receive a second input in an operation area, where the operation area is an area in the display interface other than the area where the contact mark is located.
本申请实施例中,终端在显示触点标识后,其显示界面可以被划分为触点标识所在区域,以及操作区域,该操作区域为除该触点标识所在区域之外的区域。可选地,操作区域可以为除该触点标识所在区域之外的全部区域,或者,操作区域可以为除该触点标识所在区域之外的设定部分区域。可选地,触点标识所在区域可以指的是以触点标识为圆心,设定数值半径的圆形区域。或者,以触点标识为中心点,长度和宽度为设定数值的长方形区域。本申请实施例操作区域此不做限定,需要保证在用户采用手指及触控笔在操作区域执行操作时,手指及触控笔不会对触点标识形成视线遮挡。In this embodiment of the present application, after the terminal displays the contact mark, its display interface can be divided into an area where the contact mark is located and an operation area, where the operation area is an area other than the area where the contact mark is located. Optionally, the operation area may be the entire area except the area where the contact mark is located, or the operation area may be a set part area except the area where the contact mark is located. Optionally, the area where the contact point identifier is located may refer to a circular area with the contact point identifier as the center and a set numerical radius. Or, take the contact mark as the center point, and set the length and width as a rectangular area. The operation area in this embodiment of the present application is not limited, and it needs to be ensured that when the user uses a finger and a stylus to perform an operation in the operation area, the finger and the stylus do not block the line of sight of the contact mark.
步骤104、响应于第二输入,基于第二输入控制触点标识移动。Step 104: In response to the second input, control the movement of the contact mark based on the second input.
可选地,第二输入可以是点击、长按、滑动、悬空手势或者语音输入等类型的输入。本申请实施例以第二输入为滑动输入或者点击输入为例,对终端基于第二输入控制触点标识移动进行进一步说明。Optionally, the second input may be a type of input such as a click, a long press, a slide, a hovering gesture, or a voice input. In the embodiment of the present application, taking the second input as a sliding input or a click input as an example, the terminal controls the movement of the contact mark based on the second input to further describe.
第一种可选地实现方式,第二输入为滑动输入。终端基于第二输入控制触点标识移动的过程可以包括:终端获取滑动输入的滑动方向信息 和轨迹长度信息。根据滑动方向信息和轨迹长度信息,控制触点标识沿滑动方向移动轨迹长度。In the first optional implementation manner, the second input is a sliding input. The process of the terminal controlling the movement of the contact identifier based on the second input may include: the terminal acquiring the sliding direction information and the track length information of the sliding input. According to the sliding direction information and the track length information, the contact mark is controlled to move the track length along the sliding direction.
本申请实施例中,终端可以实时获取滑动输入的滑动方向信息和轨迹长度信息。从而可以实时控制触点标识沿滑动方向移动轨迹长度。可选地,用户在采用手指及触控笔在屏幕上滑动,即执行滑动输入时,终端可以响应于滑动输入,实时获取手指及触控笔的滑动方向信息和轨迹长度信息,控制触点标识沿滑动方向移动轨迹长度。这样,可以使得触点标识实时跟随手指及触控笔移动,便于用户更为直观地确定触点标识的显示位置,从而便于精准控制触点标识移动至待操作位置。提升操作可视效果,提高操作效率,提升用户体验。In this embodiment of the present application, the terminal may acquire the sliding direction information and track length information of the sliding input in real time. Therefore, it is possible to control the length of the track of the contact mark moving along the sliding direction in real time. Optionally, when the user uses a finger and a stylus to slide on the screen, that is, when a sliding input is performed, the terminal can respond to the sliding input, acquire the sliding direction information and track length information of the finger and the stylus in real time, and control the contact identification. Move the track length in the sliding direction. In this way, the contact mark can be made to follow the movement of the finger and the stylus in real time, which is convenient for the user to determine the display position of the contact mark more intuitively, thereby facilitating precise control of the movement of the contact mark to the position to be operated. Improve the visual effect of operation, improve operation efficiency, and improve user experience.
可选地,终端可以实时获取滑动输入的滑动方向信息和轨迹长度信息的过程可以包括:终端可以采集滑动输入的起始位置和终止位置。根据起始位置指向终点位置的向量,得到滑动输入的滑动方向为该向量的方向,轨迹长度为该向量的长度。以获取滑动输入的滑动方向信息和轨迹长度信息。Optionally, the process in which the terminal may acquire the sliding direction information and the track length information of the sliding input in real time may include: the terminal may collect the starting position and the ending position of the sliding input. According to the vector from the start position to the end position, the sliding direction of the sliding input is the direction of the vector, and the track length is the length of the vector. to obtain the sliding direction information and track length information of the sliding input.
示例的,假设终端屏幕坐标系的原点为显示屏幕左上角首个像素所在位置。屏幕坐标系的X坐标轴为行像素所在行方向,Y坐标轴为列像素所在列方向。假设终端采集滑动输入的起始位置信息包括:起始位置A的屏幕坐标为(10,10),终止位置信息包括:终止位置B的屏幕坐标为(14,7)。则终端起始位置指向终点位置的向量
Figure PCTCN2022086662-appb-000001
为(4,-3)。向量
Figure PCTCN2022086662-appb-000002
的长度
Figure PCTCN2022086662-appb-000003
Figure PCTCN2022086662-appb-000004
即轨迹长度为5像素。若向量的方向可以采用向量与X坐标轴正方向的夹角表示,则向量与水平方向的夹角为arcsin3/5≈36.87°,即滑动方向为与X坐标轴正方向呈36.87°夹角的方向。终端控制触点标识沿与X坐标轴正方向呈36.87°夹角的方向移动5像素。
For example, it is assumed that the origin of the terminal screen coordinate system is the position of the first pixel in the upper left corner of the display screen. The X coordinate axis of the screen coordinate system is the row direction where the row pixels are located, and the Y coordinate axis is the column direction where the column pixels are located. Suppose the terminal collects the starting position information of the sliding input including: the screen coordinates of the starting position A are (10, 10), and the ending position information includes: the screen coordinates of the ending position B are (14, 7). Then the terminal start position points to the vector of the end position
Figure PCTCN2022086662-appb-000001
is (4, -3). vector
Figure PCTCN2022086662-appb-000002
length
Figure PCTCN2022086662-appb-000003
for
Figure PCTCN2022086662-appb-000004
That is, the track length is 5 pixels. If the direction of the vector can be represented by the angle between the vector and the positive direction of the X coordinate axis, the angle between the vector and the horizontal direction is arcsin3/5≈36.87°, that is, the sliding direction is 36.87° with the positive direction of the X coordinate axis. direction. The terminal control contact mark moves 5 pixels along a direction that forms an angle of 36.87° with the positive direction of the X coordinate axis.
可选地,终端根据滑动方向信息和轨迹长度信息,控制触点标识沿滑动方向移动轨迹长度的过程可以包括:终端根据轨迹长度与触点标识的移动距离的预设缩放比例,计算得到滑动输入的轨迹长度所对应的目标移动距离。终端控制触点标识沿滑动方向移动目标移动距离。Optionally, according to the sliding direction information and the track length information, the process of controlling the contact mark to move the track length along the sliding direction by the terminal may include: the terminal calculates and obtains the sliding input according to a preset scaling ratio between the track length and the moving distance of the contact mark. The target moving distance corresponding to the trajectory length of . The terminal control contact mark moves the target moving distance along the sliding direction.
其中,触点标识的移动距离与轨迹长度具有预设缩放比例。当预设缩放比例为1:1时,终端计算得到目标移动距离与滑动输入的轨迹长度相 等。终端控制触点标识沿滑动方向移动轨迹长度。Wherein, the moving distance of the contact mark and the track length have a preset scaling ratio. When the preset zoom ratio is 1:1, the terminal calculates that the moving distance of the target is equal to the track length of the sliding input. The terminal controls the contact mark to move the track length along the sliding direction.
当触点标识的移动距离与轨迹长度的比值小于1时,计算得到目标移动距离相较于滑动输入的轨迹长度按照预设缩放比例缩小。这样,终端控制触点标识沿滑动方向的实际移动距离小于滑动输入的轨迹长度,便于用户控制触点标识的实际移动距离。特别是在触点标识的开始移动位置与待操作位置距离较近时,用户采用手指及触控笔可以通过较远距离的滑动,控制触点标识移动较近距离,提升用户操作准确性。当然,触点标识的移动距离与轨迹长度的比值也可以大于1,本申请实施例对此不作限定。When the ratio of the moving distance of the touch point identifier to the track length is less than 1, the calculated target moving distance is reduced according to the preset scaling ratio compared to the track length of the sliding input. In this way, the actual moving distance of the terminal control contact mark along the sliding direction is less than the track length of the sliding input, which is convenient for the user to control the actual moving distance of the contact mark. Especially when the starting position of the contact mark is relatively close to the position to be operated, the user can control the contact mark to move a short distance by sliding a finger and a stylus pen at a longer distance, thereby improving the accuracy of the user's operation. Of course, the ratio of the moving distance of the contact mark to the track length may also be greater than 1, which is not limited in this embodiment of the present application.
示例地,假设轨迹长度为P像素。若轨迹长度与触点标识的移动距离的预设缩放比例为:2:1,则轨迹长度所对应的目标移动距离为1/2×P像素;若轨迹长度与触点标识的移动距离的预设缩放比例为:1:1,则轨迹长度所对应的目标移动距离为P像素;若轨迹长度与触点标识的移动距离的预设缩放比例为:2:1,则轨迹长度所对应的目标移动距离为2×P像素。Illustratively, assume that the track length is P pixels. If the preset scaling ratio between the track length and the moving distance of the contact mark is: 2:1, the target moving distance corresponding to the track length is 1/2×P pixel; if the preset scaling ratio between the track length and the moving distance of the contact mark is Set the zoom ratio as: 1:1, then the target moving distance corresponding to the track length is P pixels; if the preset zoom ratio between the track length and the moving distance of the contact mark is: 2:1, then the target corresponding to the track length The moving distance is 2×P pixels.
可选地,终端基于第二输入控制触点标识移动的过程可以还包括:获取滑动输入的滑动速度信息。基于此,终端根据滑动方向信息和轨迹长度信息,控制触点标识沿滑动方向移动轨迹长度的过程可以包括:终端根据滑动方向信息、轨迹长度信息以及滑动速度信息,控制触点标识采用滑动速度,沿滑动方向移动轨迹长度。这样,触点标识与手指及触控笔保证同样速度和移动轨迹,即触点标识与手指及触控笔平行移动,在瞬时上保持同样距离。从而使得用户可以更为直接地通过手指及触控笔控制触点标识的移动情况,并且直观地确定触点标识的显示位置。便于精准控制触点标识移动至待操作位置。提升操作可视效果,提高操作效率,提升用户体验。Optionally, the process of the terminal controlling the movement of the contact identifier based on the second input may further include: acquiring sliding speed information of the sliding input. Based on this, according to the sliding direction information and the track length information, the process of controlling the contact mark to move the track length along the sliding direction may include: the terminal controls the contact mark to adopt the sliding speed according to the sliding direction information, the track length information and the sliding speed information, Move the track length in the sliding direction. In this way, the contact mark and the finger and the stylus ensure the same speed and movement trajectory, that is, the contact mark moves in parallel with the finger and the stylus, and maintains the same distance instantaneously. Therefore, the user can more directly control the movement of the contact mark through the finger and the stylus, and intuitively determine the display position of the contact mark. It is convenient to precisely control the movement of the contact mark to the position to be operated. Improve the visual effect of operation, improve operation efficiency, and improve user experience.
可选地,终端可以获取滑动输入的滑动速度信息的过程可以包括:终端可以采集滑动输入的起始位置、终止位置以及滑动时间。根据起始位置指向终点位置的向量的长度,以及滑动时间,得到滑动速度,以获取滑动速度信息。Optionally, the process in which the terminal may acquire the sliding speed information of the sliding input may include: the terminal may collect the starting position, the ending position and the sliding time of the sliding input. According to the length of the vector from the start position to the end position and the sliding time, the sliding speed is obtained to obtain the sliding speed information.
示例地,继续以上述示例为例,假设终端采集滑动输入的起始位置A、 终止位置B以及滑动时间T。则滑动速度V为
Figure PCTCN2022086662-appb-000005
终端控制触点标识采用
Figure PCTCN2022086662-appb-000006
速度,沿滑动方向移动轨迹长度。
Illustratively, continuing to take the above example as an example, it is assumed that the terminal collects the starting position A, the ending position B, and the sliding time T of the sliding input. Then the sliding speed V is
Figure PCTCN2022086662-appb-000005
Terminal control contact identification adopts
Figure PCTCN2022086662-appb-000006
Velocity, which moves the track length in the sliding direction.
第二种可选地实现方式,第二输入为点击输入。终端基于第二输入控制触点标识移动的过程可以包括:终端可以获取点击输入的点击位置与触点标识的显示位置之间的目标距离以及移动方向。控制触点标识沿移动方向移动目标距离。其中,移动方向可以为由显示位置指向点击位置的方向。In a second optional implementation manner, the second input is a click input. The process of the terminal controlling the movement of the touch point identifier based on the second input may include: the terminal may acquire the target distance and the movement direction between the click position of the click input and the display position of the touch point identifier. The control contact marks move the target distance in the moving direction. The moving direction may be the direction from the display position to the click position.
可选地,终端根据滑动方向信息和轨迹长度信息,控制触点标识沿移动方向移动目标距离的过程可以包括:终端根据目标距离与触点标识的移动距离的预设缩放比例,计算得到点击输入的目标距离所对应的目标移动距离。终端控制触点标识沿移动方向移动目标移动距离。本申请实施例中,终端根据目标距离与触点标识的移动距离的预设缩放比例,计算得到点击输入的目标距离所对应的目标移动距离的解释和实现方法可以参考前述第一种可选地实现方式中,终端根据轨迹长度与触点标识的移动距离的预设缩放比例,计算得到滑动输入的轨迹长度所对应的目标移动距离的解释和实现方式,本申请实施例对此不作赘述。Optionally, the process of the terminal controlling the contact mark to move the target distance along the moving direction according to the sliding direction information and the track length information may include: the terminal calculates the click input according to a preset scaling ratio between the target distance and the moving distance of the contact mark. The target moving distance corresponding to the target distance. The terminal control contact point identifies the moving distance of the moving target along the moving direction. In this embodiment of the present application, the terminal calculates and obtains the target moving distance corresponding to the target distance input by clicking on the basis of the preset scaling ratio between the target distance and the moving distance of the touch point identifier. For the explanation and implementation method, refer to the aforementioned first optional In an implementation manner, the terminal calculates and obtains the explanation and implementation manner of the target moving distance corresponding to the trajectory length of the sliding input according to the preset scaling ratio between the trajectory length and the moving distance of the touch point identifier, which is not repeated in this embodiment of the present application.
需要说明的是,终端可以在操作区域内接收第三输入之前,在操作区域内多次接收第二输入,并响应于每次接收到第二输入,基于第二输入控制触点标识移动。It should be noted that, before receiving the third input in the operation area, the terminal may receive the second input multiple times in the operation area, and in response to receiving the second input each time, control the movement of the contact identifier based on the second input.
可选地,所述方法还包括:终端在操作区域内接收另一第二输入,响应于另一第二输入,基于第二输入控制触点标识继续移动。Optionally, the method further includes: the terminal receives another second input in the operation area, and in response to the other second input, controlling the contact identifier to continue to move based on the second input.
其中,终端在操作区域接收到另一第二输入后,响应于该第二输入,可以基于另一第二输入控制触点标识,从触点标识基于前一第二输入移动的终止位置开始继续移动。也即是,在终端在操作区域内接收第三输入之前,用户可以在执行完成一个第二输入,控制手指及触控笔离开触控显示屏之后,通过再次在操作区域内执行第二输入,使得终端再次接收到第二输入,响应于该第二输入,基于第二输入控制触点标识继续移动。Wherein, after the terminal receives another second input in the operation area, in response to the second input, it can control the contact point identifier based on the other second input, and continue from the end position where the contact point identifier moves based on the previous second input. move. That is, before the terminal receives the third input in the operation area, the user can execute the second input in the operation area again after completing a second input and control the finger and the stylus to leave the touch screen display. The terminal is caused to receive the second input again, and in response to the second input, the contact identifier is controlled to continue to move based on the second input.
示例的,终端在操作区域接收到第一个第二输入后,响应于该第二 输入,基于第二输入控制触点标识移动至位置A。则终端在接收到第二输入后,响应于该第二输入,基于该第二输入控制触点标识从位置A开始移动。需要说明的是,终端基于第二输入控制触点标识继续移动的解释和实现方式可以参考前述步骤102中,终端基于第二输入控制触点标识移动的解释和实现方式,本申请实施例对此不做赘述。Exemplarily, after the terminal receives the first second input in the operation area, in response to the second input, the terminal controls the contact mark to move to the position A based on the second input. Then, after receiving the second input, in response to the second input, the terminal controls the contact identifier to move from the position A based on the second input. It should be noted that, for the explanation and implementation manner of the terminal controlling the movement of the contact point identifier based on the second input, reference may be made to the explanation and implementation manner of the terminal controlling the movement of the contact point identifier based on the second input in the foregoing step 102. I won't go into details.
步骤105、在操作区域内接收第三输入。Step 105: Receive a third input in the operation area.
本申请实施例中,在用户认为已经到达了想要的待操作位置时,可以在操作区域执行第三输入。终端可以在操作区域接收第三输入。其中,第三输入与第二输入的输入类型不同。这样可以使得终端区分是否需要执行在触点标识移动的终端位置处执行第三输入对应的功能。可选地,第二输入可以是点击、长按、滑动、悬空手势或者语音输入等类型的输入。In this embodiment of the present application, when the user thinks that the desired position to be operated has been reached, the third input may be performed in the operation area. The terminal may receive the third input in the operating area. Wherein, the input type of the third input is different from that of the second input. In this way, the terminal can distinguish whether the function corresponding to the third input needs to be executed at the terminal position where the contact mark moves. Optionally, the second input may be a type of input such as a click, a long press, a slide, a hovering gesture, or a voice input.
步骤106、响应于第三输入,在触点标识移动的终止位置执行第三输入对应的功能。Step 106: In response to the third input, execute the function corresponding to the third input at the termination position of the movement of the contact mark.
本申请实施例中,第三输入对应的功能可以为操作功能。或者第三输入对应的功能可以为根据实际情况设定的功能。其中,在第三输入为不同类型的输入时,第三输入对应的功能可以不同,从而实现不同种类的精准操作模式。In this embodiment of the present application, the function corresponding to the third input may be an operation function. Alternatively, the function corresponding to the third input may be a function set according to the actual situation. Wherein, when the third input is a different type of input, the functions corresponding to the third input may be different, thereby realizing different types of precise operation modes.
示例的,当第三输入为设定时长内的两次点击操作,即第三输入为双击操作时,第三输入对应的功能可以为在触点标识移动的终止位置触发点击事件,以针对终止位置执行真实的点击操作,实现精准操作模式的点击操作模式。当第三输入为长按输入时,第三输入对应的功能可以为在触点标识移动的终止位置触发长按事件,以针对终止位置处执行真实的长按操作,实现精准操作模式的长按操作模式。For example, when the third input is two click operations within the set duration, that is, when the third input is a double-click operation, the function corresponding to the third input may be to trigger a click event at the termination position of the movement of the contact mark, in order to terminate the operation. The position performs the real click operation, and realizes the click operation mode of the precise operation mode. When the third input is a long-press input, the corresponding function of the third input can be to trigger a long-press event at the end position of the movement of the contact mark, so as to perform a real long-press operation at the end position and realize the long-press in the precise operation mode operating mode.
或者,第三输入为同一类型的触发操作时,第三输入也可以对应不同的功能。可选地,在设定页面显示有与不同精准操作模式类型一一对应的精准操作标识。第三输入对应的功能可以根据第一输入对应的精准操作标识确定。Alternatively, when the third input is a trigger operation of the same type, the third input may also correspond to different functions. Optionally, precise operation identifiers corresponding to different precise operation mode types one-to-one are displayed on the setting page. The function corresponding to the third input may be determined according to the precise operation identifier corresponding to the first input.
示例的,若终端接收的第一输入为针对目标精准操作标识对应的第一输入。该目标精准操作标识与精准操作模式中点击操作模式对应。则 第三输入对应的功能为在触点标识移动的终止位置触发点击事件,以针对终止位置执行真实的点击操作,实现精准操作模式的点击操作模式。For example, if the first input received by the terminal is the first input corresponding to the target precise operation identifier. The target precise operation identifier corresponds to the click operation mode in the precise operation mode. Then, the function corresponding to the third input is to trigger a click event at the end position of the movement of the contact mark, so as to perform a real click operation for the end position, and realize the click operation mode of the precise operation mode.
综上所述,本申请实施例提供的触控操作方法,可以通过响应于第一输入在显示界面显示触点标识。响应于在操作区域接收的第二输入,基于第二输入控制触点标识移动,并响应于在操作区域接收的第三输入,在触点标识移动的终止位置执行第三输入对应的功能。其中,由于操作区域为显示屏幕上除触点标识所在区域外的区域,则操作区域与触点标识具有一定距离。因此采用手指及触控笔在操作区域上通过第二输入移动触点标识时,手指及触控笔无法遮挡用户视线,用户可以精确定位触点标识的移动位置。从而可以精确控制触点标识移动至待操作位置,进而使得手指及触控笔可以精确在待操作位置触发第三输入对应的功能。相较于相关技术,减少了无效触控操作,降低了操作误触率,提高了触控操作效率,提升用户体验。To sum up, the touch operation method provided by the embodiments of the present application can display the touch point identifier on the display interface in response to the first input. In response to the second input received in the operation area, the movement of the contact mark is controlled based on the second input, and in response to the third input received in the operation area, the function corresponding to the third input is executed at the termination position of the movement of the contact mark. Wherein, since the operation area is an area on the display screen other than the area where the contact mark is located, there is a certain distance between the operation area and the contact mark. Therefore, when a finger and a stylus are used to move the contact mark on the operation area through the second input, the finger and the stylus cannot block the user's sight, and the user can precisely locate the moving position of the contact mark. Therefore, the contact mark can be precisely controlled to move to the position to be operated, so that the finger and the stylus can precisely trigger the function corresponding to the third input at the position to be operated. Compared with the related art, invalid touch operations are reduced, the false touch rate of operations is reduced, the touch operation efficiency is improved, and the user experience is improved.
请参考图4,其示出了本申请实施例提供的另一种触控操作方法的流程图。该触发操作方法也可以应用于前述触控类电子设备。如图4所示,触控操作方法可以包括:Please refer to FIG. 4 , which shows a flowchart of another touch operation method provided by an embodiment of the present application. The triggering operation method can also be applied to the aforementioned touch electronic device. As shown in FIG. 4 , the touch operation method may include:
步骤401、接收第一输入。Step 401: Receive a first input.
该步骤的解释和实现方式可以参考前述步骤101的解释和实现方式,本申请实施例对此不做赘述。For the explanation and implementation of this step, reference may be made to the explanation and implementation of the foregoing step 101, which will not be repeated in this embodiment of the present application.
步骤402、响应于第一输入,在显示界面显示触点标识。Step 402: In response to the first input, display the contact identifier on the display interface.
该步骤的解释和实现方式可以参考前述步骤102的解释和实现方式,本申请实施例对此不做赘述。For the explanation and implementation of this step, reference may be made to the explanation and implementation of the foregoing step 102, which is not repeated in this embodiment of the present application.
步骤403、在操作区域内接收第二输入,操作区域为显示界面中除触点标识所在区域之外的区域。Step 403: Receive a second input in an operation area, where the operation area is an area in the display interface other than the area where the contact mark is located.
该步骤的解释和实现方式可以参考前述步骤103的解释和实现方式,本申请实施例对此不做赘述。For the explanation and implementation of this step, reference may be made to the explanation and implementation of the foregoing step 103, which is not repeated in this embodiment of the present application.
步骤404、响应于第二输入,基于第二输入控制触点标识移动。Step 404: In response to the second input, control the movement of the contact mark based on the second input.
该步骤的解释和实现方式可以参考前述步骤104的解释和实现方式,本申请实施例对此不做赘述。For the explanation and implementation of this step, reference may be made to the explanation and implementation of the foregoing step 104, which is not repeated in this embodiment of the present application.
步骤405、在操作区域内接收第三输入。Step 405: Receive a third input in the operation area.
该步骤的解释和实现方式可以参考前述步骤105的解释和实现方式,本申请实施例对此不做赘述。For the explanation and implementation of this step, reference may be made to the explanation and implementation of the foregoing step 105, which is not repeated in this embodiment of the present application.
步骤406、响应于第三输入,在触点标识移动的终止位置执行第三输入对应的功能。Step 406: In response to the third input, execute the function corresponding to the third input at the termination position of the movement of the contact mark.
该步骤的解释和实现方式可以参考前述步骤106的解释和实现方式,本申请实施例对此不做赘述。For the explanation and implementation of this step, reference may be made to the explanation and implementation of the foregoing step 106, which will not be repeated in this embodiment of the present application.
可选地,精准操作模式还可以包括轨迹绘制模式。特定输入类型的第三输入可以轨迹绘制模式对应。则终端在步骤405中接收到的第三输入为特定输入类型的第三输入时,步骤406中第三输入的功能为确定绘制起点位置的功能。Optionally, the precise operation mode may also include a trajectory drawing mode. A third input of a specific input type may correspond to a trajectory drawing mode. Then, when the third input received by the terminal in step 405 is the third input of a specific input type, the function of the third input in step 406 is the function of determining the position of the starting point of drawing.
或者,设定页面可以显示有轨迹绘制模式对应的精准操作标识,该精准操作标识为轨迹绘制标识。则在步骤401中响应的第一输入为针对轨迹绘制标识的第一输入的情况下,步骤406中第三输入的功能为确定绘制起点位置的功能。则上述步骤406终端在触点标识移动的终止位置执行第三输入对应的功能的过程可以包括:记录触点标识移动的终止位置。且在步骤406之后,所述方法还包括:Alternatively, the setting page may display a precise operation identifier corresponding to the trajectory drawing mode, and the precise operation identifier is a trajectory drawing identifier. Then, in the case where the first input responded in step 401 is the first input for the track drawing marker, the function of the third input in step 406 is the function of determining the position of the starting point for drawing. Then, in the above step 406, the process of performing the function corresponding to the third input by the terminal at the end position of the movement of the contact mark may include: recording the end position of the movement of the contact mark. And after step 406, the method further includes:
步骤407、在操作区域接收第四输入。Step 407: Receive a fourth input in the operation area.
可选地,第四输入可以是点击、长按、滑动、悬空手势或者语音输入等类型的输入。其中,第四输入与第三输入的输入类型不同。示例的,第四输入可以与第二输入的输入类型相同。Optionally, the fourth input may be a type of input such as a click, a long press, a slide, a hovering gesture, or a voice input. Wherein, the input type of the fourth input is different from that of the third input. Illustratively, the fourth input may be of the same input type as the second input.
步骤408、响应于第四输入,基于第四输入控制触点标识移动,并根据触点标识的移动轨迹,以终止位置为绘制起点绘制设定图案,显示设定图案。Step 408: In response to the fourth input, control the movement of the contact mark based on the fourth input, and according to the movement track of the contact mark, draw the set pattern with the end position as the drawing starting point, and display the set pattern.
本申请实施例中,终端基于第四输入控制触点标识移动的解释和实现方式可以参考前述步骤102中,终端基于第二输入控制触点标识移动的解释和实现方式,本申请实施例对此不做赘述。In the embodiment of the present application, for the explanation and implementation of the terminal controlling the movement of the contact identifier based on the fourth input, reference may be made to the explanation and implementation of the terminal controlling the movement of the contact identifier based on the second input in the foregoing step 102. I won't go into details.
本申请实施例中,响应于第四输入,终端可以根据基于第四输入控制触点标识移动的移动轨迹,以终止位置为绘制起点绘制设定图案,并显示设定图案。可选地,设定图案可以包括选择框图案、线条图案等其 他形状或者其他类型的图案。其中,选择框图案也可以包括长方形选择框图案或者圆形选择框图案等。In the embodiment of the present application, in response to the fourth input, the terminal may draw the set pattern with the end position as the drawing starting point according to the movement trajectory of the movement of the contact mark based on the fourth input, and display the set pattern. Optionally, the setting pattern may include other shapes such as selection box patterns, line patterns, or other types of patterns. The selection frame pattern may also include a rectangular selection frame pattern or a circular selection frame pattern.
可选地,终端在执行步骤407在操作区域接收第四输入之前,所述方法还包括:终端显示图案选择信息,该图案选择信息可以包括多个类型的图案对应的图案标识。终端接收对在多个图案标识中,目标图案标识的第七输入,响应于第七输入。选定设定图案的类型。则终端响应于第四输入,以终止位置为绘制起点绘制选定类型设定图案。其中,第七输入可以是点击、长按、滑动、悬空手势或者语音输入等类型的输入。Optionally, before the terminal performs step 407 to receive the fourth input in the operation area, the method further includes: the terminal displays pattern selection information, where the pattern selection information may include pattern identifiers corresponding to multiple types of patterns. The terminal receives a seventh input of a target pattern identifier among the plurality of pattern identifiers, in response to the seventh input. Select the type of set pattern. Then, in response to the fourth input, the terminal draws the selected type setting pattern with the end position as the drawing starting point. Wherein, the seventh input may be a type of input such as a click, a long press, a slide, a hovering gesture, or a voice input.
示例的,图案选择信息可以包括选择框图案对应的图案标识,以及线条图案对应的图案标识。终端接收对选择框图案对应的图案标识的点击输入后,响应于点击输入,选定后续绘制的设定图案为选择框图案。For example, the pattern selection information may include a pattern identifier corresponding to the selection frame pattern, and a pattern identifier corresponding to the line pattern. After receiving the click input on the pattern identifier corresponding to the selection box pattern, the terminal selects the subsequently drawn set pattern as the selection box pattern in response to the click input.
本申请实施例以下以设定图案为选择框图案以及线条图案为例进行说明。The embodiments of the present application are described below by taking the setting pattern as a selection frame pattern and a line pattern as an example.
在第一种可选地实现方式中,设定图案为选择框图案。终端根据触点标识的移动轨迹,以终止位置为绘制起点绘制设定图案的过程可以包括:以终止位置为起点,绘制以移动轨迹为对角线的选择框图案。In a first optional implementation manner, the setting pattern is a selection frame pattern. The process that the terminal draws the set pattern with the termination position as the starting point for drawing according to the movement trajectory of the contact mark may include: using the termination position as the starting point, drawing a selection box pattern with the movement trajectory as the diagonal.
可选地,在选择框图案为长方形选择框图案的情况下,终端可以在基于第四输入控制触点标识移动的过程中,实时获取触点标识的移动轨迹点的位置。根据终止位置,以及实时获取的移动轨迹点的位置,计算构成目标长方形的四个顶点的位置。连接四个位置的顶点,绘制选择框图案。目标长方形为以该终止位置和移动轨迹点的位置之间连线为对角线的长方形。其中,在获取的触点标识的移动轨迹点的位置发生变换时,删除根据变化前的移动轨迹点的位置,绘制的选择框图案。Optionally, when the selection frame pattern is a rectangular selection frame pattern, the terminal may acquire the position of the movement track point of the contact mark in real time during the process of controlling the movement of the contact mark based on the fourth input. According to the end position and the position of the movement track point acquired in real time, the positions of the four vertices constituting the target rectangle are calculated. Connect the vertices at the four positions to draw a selection box pattern. The target rectangle is a rectangle whose diagonal is the line connecting the end position and the position of the moving track point. Wherein, when the position of the acquired movement track point identified by the contact point changes, the selection frame pattern drawn according to the position of the movement track point before the change is deleted.
示例的,假设终端记录的终止位置的像素坐标为(1,1)。终端在基于第四输入控制触点标识移动的过程中,实时获取到触点标识的第一移动轨迹点的位置的像素坐标为(2,2)。则计算构成目标长方形的四个顶点的位置的像素坐标依次为(1,1)、(1,2)、(2,2)以及(2,2)。连接四个顶点绘制第一选择框图案。实时获取到触点标识的第二移动轨迹点的位置的像素坐标为(2,3)。则计算构成目标长方形的四个顶点的位置的像素坐标依次为(1,1)、(1,3)、(2,3)以及(2,1)。连接四个顶点绘制第二选择框 图案,删除第一选择框图案。For example, it is assumed that the pixel coordinates of the termination position recorded by the terminal are (1, 1). During the process of controlling the movement of the touch point identifier based on the fourth input, the terminal acquires the pixel coordinates of the position of the first movement track point of the touch point identifier in real time as (2, 2). Then the pixel coordinates of the positions of the four vertices constituting the target rectangle are calculated as (1,1), (1,2), (2,2) and (2,2) in sequence. Connect the four vertices to draw the first selection box pattern. The pixel coordinates of the position of the second movement track point identified by the contact point obtained in real time are (2, 3). Then, the pixel coordinates of the positions of the four vertices constituting the target rectangle are calculated as (1,1), (1,3), (2,3) and (2,1) in sequence. Connect the four vertices to draw the second selection box pattern and delete the first selection box pattern.
在第二种可选地实现方式中,设定图案为线条图案。终端根据触点标识的移动轨迹,以终止位置为绘制起点绘制设定图案的过程可以包括:绘制移动轨迹的线条图案。In a second optional implementation manner, the set pattern is a line pattern. The process that the terminal draws the set pattern with the termination position as the drawing starting point according to the movement trajectory of the touch point identifier may include: drawing a line pattern of the movement trajectory.
可选地,终端可以在基于第四输入控制触点标识移动的过程中,实时获取触点标识的移动轨迹中各移动轨迹点的位置,并以终止位置为起点,连接各位置的移动轨迹点,绘制线条图案。Optionally, in the process of controlling the movement of the contact mark based on the fourth input, the terminal can acquire the position of each movement trajectory point in the movement trajectory of the contact mark in real time, and use the termination position as the starting point to connect the movement trajectory points of each position. , to draw a line pattern.
示例的,假设终端记录的终止位置的像素坐标为(1,1)。终端在基于第四输入控制触点标识移动的过程中,实时获取到触点标识的移动轨迹中第一移动轨迹点的位置的像素坐标为(2,2)。连接(1,1)以及(2,2)上的移动轨迹点绘制线条图案。实时获取到触点标识的第二移动轨迹点的位置的像素坐标为(2,3)。连接(1,1)、(2,2)和(2,3)上的移动轨迹点绘制线条图案。For example, it is assumed that the pixel coordinates of the termination position recorded by the terminal are (1, 1). During the process of controlling the movement of the contact mark based on the fourth input, the terminal acquires in real time the pixel coordinates of the position of the first movement track point in the movement track of the contact mark as (2, 2). Draw a line pattern by connecting the moving track points on (1,1) and (2,2). The pixel coordinates of the position of the second movement track point identified by the contact point obtained in real time are (2, 3). Draw a line pattern connecting the moving track points on (1,1), (2,2) and (2,3).
需要说明的是,终端可以在操作区域接收到第五输入之前,在操作区域多次接收第四输入,并响应于每个接收到的第四输入,基于第四输入控制触点标识移动。It should be noted that, before the terminal receives the fifth input in the operation area, the terminal may receive the fourth input in the operation area multiple times, and in response to each received fourth input, control the movement of the contact point identifier based on the fourth input.
可选地,在前述第二种可选地实现方式下,终端在操作区域内接收第五输入,执行所述设定图案对应的功能之前,所述方法还包括:终端在操作区域内接收另一第四输入,响应于另一第四输入,基于该第四输入控制触点标识继续移动。终端根据触点标识继续移动的移动轨迹,连续绘制移动轨迹的线条图案。Optionally, in the aforementioned second optional implementation manner, the terminal receives the fifth input in the operation area, and before executing the function corresponding to the setting pattern, the method further includes: the terminal receives another input in the operation area. A fourth input, in response to another fourth input, controls the contact marker to continue to move based on the fourth input. The terminal continuously draws the line pattern of the moving track according to the moving track of the contact point identification.
其中,终端基于另一第四输入控制触点标识继续移动可以指的是,终端在基于一个第四输入控制触点标识移动一段距离后。在终端接收到另一个第四输入,响应于该另一个第四输入,终端基于另一第四输入,控制触点标识从停止位置开始继续移动。该停止位置为终端基于一个第四输入控制触点标识移动一段距离中,触点标识停止移动的位置。The continuous movement of the terminal based on another fourth input control contact identifier may refer to that the terminal moves for a certain distance based on a fourth input control contact identifier. The terminal receives another fourth input, and in response to the other fourth input, the terminal controls the contact mark to continue to move from the stop position based on the other fourth input. The stop position is the position at which the contact mark stops moving while the terminal moves for a certain distance based on a fourth input control contact mark.
示例的,假设终端记录的终止位置的像素坐标为(1,1)。终端在基于一个第四输入控制触点标识移动至像素坐标为(1,2)的位置后。在终端接收到另一个第四输入,响应于该另一个第四输入,终端控制触点标识从像素坐标为(1,2)的位置开始继续移动。For example, it is assumed that the pixel coordinates of the termination position recorded by the terminal are (1, 1). After the terminal moves to the position where the pixel coordinates are (1, 2) based on a fourth input control contact identifier. The terminal receives another fourth input, and in response to the other fourth input, the terminal controls the contact mark to continue to move from the position where the pixel coordinates are (1, 2).
步骤409、在操作区域内接收第五输入。Step 409: Receive a fifth input in the operation area.
本申请实施例中,在用户认为已经到达了想要的图案终止位置时,可以在操作区域执行第五输入。使得终端可以在操作区域接收到第五输入。其中,第五输入与第四输入的输入类型不同。这样可以使得终端区分是否需要执行设定图案对应的功能。可选地,第五输入可以是点击、长按、滑动、悬空手势或者语音输入等类型的输入。In this embodiment of the present application, when the user thinks that the desired pattern termination position has been reached, the fifth input may be performed in the operation area. So that the terminal can receive the fifth input in the operation area. Wherein, the input type of the fifth input is different from that of the fourth input. In this way, the terminal can distinguish whether the function corresponding to the set pattern needs to be executed. Optionally, the fifth input may be a type of input such as a click, a long press, a slide, a hovering gesture, or a voice input.
步骤410、响应于第五输入,执行设定图案对应的功能。Step 410: In response to the fifth input, execute the function corresponding to the set pattern.
本申请实施例中,设定图案对应的功能可以为诸如框选功能等操作功能或者绘制显示功能等。或者,设定图案对应的功能可以为根据实际情况设定的功能。In the embodiment of the present application, the function corresponding to the setting pattern may be an operation function such as a frame selection function or a drawing and display function. Alternatively, the function corresponding to the set pattern may be a function set according to the actual situation.
可选地,设定图案的类型不同,设定图案对应的功能不同。例如,在设定图案为选择框图案时,设定图案对应的功能可以为框选功能。或者,在设定图案为线条图案时,设定图案对应的功能可以为绘制显示功能,即显示绘制的线条图案。或者,设定图案的类型不同,设定图案对应的功能相同。例如,设定图案对应的功能为选择功能,即设定图案用于选定用户想要信息的功能。则响应于第五输入,选定显示界面中设定图案所在区域的内容。终端可以显示针对选定的内容可执行操作选择,例如,删除操作选择、复制操作选择等,便于用户对选定的内容执行后续选择。Optionally, the types of the setting patterns are different, and the functions corresponding to the setting patterns are different. For example, when the setting pattern is a selection frame pattern, the function corresponding to the setting pattern may be a frame selection function. Alternatively, when the set pattern is a line pattern, the function corresponding to the set pattern may be a drawing and display function, that is, displaying the drawn line pattern. Or, the types of setting patterns are different, and the functions corresponding to the setting patterns are the same. For example, the function corresponding to the setting pattern is a selection function, that is, the setting pattern is used to select the function of the information desired by the user. Then, in response to the fifth input, the content of the area where the set pattern is located in the display interface is selected. The terminal may display an operation selection that can be performed on the selected content, for example, a deletion operation selection, a copy operation selection, etc., so that the user can perform subsequent selections on the selected content.
示例的,在设定图案为选择框图案时,设定图案对应的功能可以为框选功能。例如,用户想要框选“你好呀”这三个字。终端在执行完成上述步骤406之后,终端记录的触点标识的终止位置可以为“你”在左上角位置。假设第四输入为滑动输入,第五输入为两次点击输入,即双击输入。用户在操作区域内控制手指及触控笔向右下方向滑动输入。终端接收滑动输入,响应于滑动输入,控制触点标识向滑动输入的滑动方向同步滑动。用户发现触点标识到达“呀”的右下角位置,此时,“你好呀”三个字位于选择框图案内部。用户确定触点标识到达想要的位置。此时在操作区域内双击屏幕。终端接收双击输入,响应于双击输入,框选定“你好呀”。For example, when the setting pattern is a selection frame pattern, the function corresponding to the setting pattern may be a frame selection function. For example, the user wants to box-select the three words "Hello". After the terminal performs the above step 406, the termination position of the contact identifier recorded by the terminal may be "you" in the upper left corner. It is assumed that the fourth input is a sliding input, and the fifth input is a two-click input, that is, a double-click input. The user controls the finger and stylus to slide the input in the lower right direction in the operation area. The terminal receives the sliding input, and in response to the sliding input, controls the contact mark to slide synchronously in the sliding direction of the sliding input. The user finds that the contact mark reaches the lower right corner of "ya", and at this time, the three words "hello" are located inside the selection box pattern. The user determines that the touchpoint marker reaches the desired location. In this case, double-tap the screen in the operating area. The terminal receives the double-click input, and in response to the double-click input, "Hello" is box-selected.
本申请实施例中,在步骤405,和/或步骤409之前,所述方法还包括:在检测到触点标识停止移动时,显示提示信息。提示信息用于提示 用户可执行的输入以及输入对应的功能。该可执行的操作可以包括以下至少一项:第二输入和第三输入。In this embodiment of the present application, before step 405 and/or step 409, the method further includes: when it is detected that the contact mark stops moving, displaying prompt information. The prompt information is used to prompt the user for the executable input and the corresponding function of the input. The executable operations may include at least one of: a second input and a third input.
示例的,在步骤402之后至步骤405之前,假设第二输入滑动输入,第三输入双击输入,且双击输入对应的功能为点击操作。在检测到触点标识停止移动时,可以显示提示信息。此时提示信息可以包括“您可以继续滑动屏幕,控制触点标识移动。或者,您可以双击屏幕结束触点标识移动操作,执行点击操作”。For example, after step 402 and before step 405, it is assumed that the second input is sliding input, the third input is double-clicking input, and the function corresponding to the double-clicking input is a click operation. When it is detected that the contact mark stops moving, a prompt message can be displayed. At this time, the prompt information may include "You can continue to slide the screen to control the movement of the contact mark. Alternatively, you can double-tap the screen to end the movement of the contact mark and perform the click operation".
类似的,若第三输入的功能为确定绘制起点位置的功能,则在步骤406之后至步骤409之前,假设第四输入滑动输入,第五输入双击输入,且双击输入对应的功能为绘制显示功能。在检测到触点标识停止移动时,可以显示提示信息。此时提示信息可以包括“您可以继续滑动屏幕,控制触点标识移动进行移动轨迹绘制。或者,您可以双击屏幕结束触点标识移动操作,执行显示轨迹”。Similarly, if the function of the third input is the function of determining the position of the starting point of drawing, then after step 406 and before step 409, it is assumed that the fourth input is sliding input, the fifth input is double-clicking input, and the function corresponding to the double-clicking input is the drawing display function. . When it is detected that the contact mark stops moving, a prompt message can be displayed. At this time, the prompt information can include "You can continue to slide the screen to control the movement of the contact mark to draw the movement track. Alternatively, you can double-click the screen to end the movement of the contact mark and execute the display track".
为了便于读者理解,本申请实施例以以下两个示例对前述触控操作方法进行再次说明。To facilitate the reader's understanding, the embodiment of the present application uses the following two examples to re-describe the aforementioned touch operation method.
第一示例的,用户想要从终端显示的字体较小的文章中,选取一段短语。如用户想要选中图5所示的显示界面中,用选择框501框选的“高等级安保勤务”这样一短语。此时用户需要点击“高等级安保勤务”短语的起始位置即“高”字位置,之后点击“高等级安保勤务”短语的结束位置即“务”字位置,即可完成“高等级安保勤务”这一短语的选取。假设第一输入为点击输入、第二输入为滑动输入、第三输入为设定时长内的两次点击输入,即双击输入、触点标识为红色圆点图标,且第三输入对应的功能为在触点标识移动的终止位置触发点击事件,以针对终止位置执行真实的点击操作。In the first example, the user wants to select a phrase from an article with a smaller font displayed on the terminal. If the user wants to select the phrase "high-level security service" framed by the selection box 501 in the display interface shown in FIG. 5 . At this point, the user needs to click the starting position of the phrase "high-level security service", which is the position of the word "high", and then click the end position of the phrase "high-level security service", which is the position of the word "service", to complete the "high-level security service". "The choice of the phrase. Assume that the first input is a click input, the second input is a sliding input, and the third input is two click inputs within a set duration, that is, a double-click input, the contact mark is a red dot icon, and the function corresponding to the third input is Trigger a click event at the end position of the touchpoint marker movement to perform the actual click action for the end position.
用户可以从触控显示屏的顶部向下滑动,使得终端显示快捷操作界面。该快捷操作界面包括点击操作模式对应的精准操作标识。用户点击该点击操作模式对应的精准操作标识,使得终端开启精准操作模式中点击操作模式。The user can slide down from the top of the touch screen to make the terminal display a shortcut operation interface. The shortcut operation interface includes a precise operation identifier corresponding to the click operation mode. The user clicks the precise operation identifier corresponding to the click operation mode, so that the terminal enables the click operation mode in the precise operation mode.
用户可以在触摸显示屏上随意移动手指,最终在显示界面所显示的“高等级安保勤务”短语中“高”字位置附近的初始位置A处点击屏幕,即 在“高”字位置附近第一次落下手指。终端接收到该点击输入,在点击输入对应的点击位置(初始位置A)处显示红色圆点图标。此时,如图6所示,用户可以看到在“高”字附近的右上角方向的初始位置A显示有红色圆点图标601。如图7和图8所示,用户在红色圆点图标所在区域的右下方操作区域内,向触控显示屏左下角方向(图8中箭头所指的方向)滑动手指。终端在接收到滑动输入后,响应于该滑动输入,控制红色圆点图标从初始位置A处,与手指滑动同步向该左下角方向移动。其中,用户可以随时抬起手指结束滑动操作,红色圆点图标停留显示在该滑动操作的终止位置。用户可以再次在操作区域内滑动手指。终端在接收到滑动输入后,响应于滑动输入,控制红色圆点图标继续移动。The user can move his finger on the touch screen at will, and finally click on the screen at the initial position A near the position of the word "high" in the phrase "high-level security service" displayed on the display interface, that is, the first position near the position of the word "high". Drop your finger. The terminal receives the click input, and displays a red dot icon at the click position (initial position A) corresponding to the click input. At this time, as shown in FIG. 6 , the user can see that a red dot icon 601 is displayed at the initial position A in the upper right corner direction near the word "high". As shown in Figures 7 and 8, the user slides a finger in the lower left corner of the touch screen (the direction indicated by the arrow in Figure 8) in the lower right operation area of the area where the red dot icon is located. After receiving the sliding input, in response to the sliding input, the terminal controls the red dot icon to move from the initial position A to the lower left corner in synchronization with the sliding of the finger. Wherein, the user can lift the finger at any time to end the sliding operation, and the red dot icon stays and displayed at the end position of the sliding operation. The user can swipe the finger in the operation area again. After receiving the sliding input, the terminal controls the red dot icon to continue to move in response to the sliding input.
用户发现红色圆点图标已经移动至“高”字位置时,用户可以在操作区域双击屏幕。终端在操作区域内接收到双击输入,响应于双击输入,在触点标识移动的终止位置,即红色圆点图标当前显示的“高”字位置执行点击操作。此时,用户完成了点击“高等级安保勤务”短语的起始位置即“高”字位置的操作。用户可以重复上述过程,使得终端在“务”字位置再次执行点击操作。完成“高等级安保勤务”这一短语的选取。When the user finds that the red dot icon has moved to the "high" position, the user can double-tap the screen in the operation area. The terminal receives the double-click input in the operation area, and in response to the double-click input, performs the click operation at the end position of the movement of the contact mark, that is, the position of the word "high" currently displayed by the red dot icon. At this point, the user has completed the operation of clicking the starting position of the phrase "high-level security service", that is, the position of the word "high". The user can repeat the above process, so that the terminal performs the click operation again at the position of the word "service". Complete the selection of the phrase "High Security Service".
第二示例的,用户想要绘制一个以位置点B为起点的圆弧形图案。圆弧形图案对应的功能为绘制显示功能。假设第一输入为点击输入、第二输入为滑动输入、第三输入为双击输入、触点标识为红色圆点图标、第三输入对应的功能为记录轨迹绘制起点的功能、第四输入为滑动输入,且第五输入为双击输入。In the second example, the user wants to draw an arc-shaped pattern with the position point B as the starting point. The function corresponding to the arc pattern is the drawing display function. Assume that the first input is a click input, the second input is a sliding input, the third input is a double-click input, the contact mark is a red dot icon, the function corresponding to the third input is the function of recording the starting point of trajectory drawing, and the fourth input is sliding input, and the fifth input is a double-click input.
用户可以从触控显示屏的顶部向下滑动,使得终端显示快捷操作界面。该快捷操作界面包括轨迹绘制模式对应的轨迹绘制标识。用户点击该轨迹绘制标识,使得终端开启精准操作模式中轨迹绘制模式。The user can slide down from the top of the touch screen to make the terminal display a shortcut operation interface. The shortcut operation interface includes a trajectory drawing mark corresponding to the trajectory drawing mode. The user clicks on the trajectory drawing logo, so that the terminal turns on the trajectory drawing mode in the precise operation mode.
用户可以在触摸显示屏上随意移动手指,最终位置点B附近的初始位置C处点击屏幕。终端接收到该点击输入,在点击输入对应的点击位置(初始位置C)处显示红色圆点图标。此时,如图9所示,用户可以看到在位置点B附近的初始位置C显示有红色圆点图标901。用户在红色圆点图标所在区域的右下方操作区域内,向触控显示屏右下角方向滑动手指。终端在接收到滑动输入后,响应于该滑动输入,控制红色圆点图 标901从初始位置C处,与手指滑动同步向该右下角方向移动。The user can move his finger on the touch screen at will, and click the screen at the initial position C near the final position point B. The terminal receives the click input, and displays a red dot icon at the click position (initial position C) corresponding to the click input. At this time, as shown in FIG. 9 , the user can see that a red dot icon 901 is displayed at the initial position C near the position point B. The user slides his finger towards the lower right corner of the touch screen in the lower right operation area where the red dot icon is located. After receiving the sliding input, in response to the sliding input, the terminal controls the red dot icon 901 to move from the initial position C to the lower right corner in synchronization with the sliding of the finger.
用户发现红色圆点图标已经移动至位置点B。用户在操作区域双击屏幕。终端在操作区域内接收到双击输入,响应于双击输入,记录位置点B。如图10所示,用户在操作区域内任一位置开始,向图10中箭头所示的方向滑动手指。图10中箭头所示的方向为用户想要的圆弧形图案的弧线方向。终端在接收到滑动输入后,响应于该滑动输入,控制红色圆点图标从位置B处,与手指滑动同步向该箭头所示的方向移动,并以位置B为绘制起点,绘制并显示移动轨迹的线条图案。其中,用户可以随时抬起手指结束滑动操作,红色圆点图标停留显示在该滑动操作的终止位置。用户可以再次在操作区域内滑动手指。终端在接收到滑动输入后,响应于滑动输入,控制红色圆点图标继续移动,并以上次滑动操作的终止位置为开始,继续绘制移动轨迹的线条图案。The user finds that the red dot icon has moved to the position point B. The user double-taps the screen in the operating area. The terminal receives the double-click input in the operation area, and records the position point B in response to the double-click input. As shown in FIG. 10 , the user starts from any position in the operation area and slides his finger in the direction indicated by the arrow in FIG. 10 . The direction indicated by the arrow in FIG. 10 is the arc direction of the circular arc pattern desired by the user. After the terminal receives the sliding input, in response to the sliding input, the terminal controls the red dot icon to move from position B to the direction indicated by the arrow in synchronization with the sliding of the finger, and draws and displays the movement track with position B as the drawing starting point. line pattern. Wherein, the user can lift the finger at any time to end the sliding operation, and the red dot icon stays and displayed at the end position of the sliding operation. The user can swipe the finger in the operation area again. After receiving the sliding input, the terminal controls the red dot icon to continue to move in response to the sliding input, and continues to draw the line pattern of the moving trajectory starting from the end position of the last sliding operation.
用户在发现绘制的线条图案为想要的圆弧形图案时,确定完成绘制线条图案的操作。用户可以在操作区域双击屏幕,使得终端退出精准操作模式中轨迹绘制模式。终端在操作区域内接收到双击输入,响应于双击输入,显示绘制的线条图案。When the user finds that the drawn line pattern is the desired circular arc pattern, the user determines to complete the operation of drawing the line pattern. The user can double-click the screen in the operation area to make the terminal exit the trajectory drawing mode in the precise operation mode. The terminal receives the double-click input in the operation area, and displays the drawn line pattern in response to the double-click input.
综上所述,本申请实施例提供的触控操作方法,可以通过响应于第一输入在显示界面显示触点标识。响应于在操作区域接收的第二输入,基于第二输入控制触点标识移动,并响应于在操作区域接收的第三输入,在触点标识移动的终止位置执行第三输入对应的功能。其中,由于操作区域为显示屏幕上除触点标识所在区域外的区域,则操作区域与触点标识具有一定距离。因此采用手指及触控笔在操作区域上通过第二输入移动触点标识时,手指及触控笔无法遮挡用户视线,用户可以精确定位触点标识的移动位置。从而可以精确控制触点标识移动至待操作位置,进而使得手指及触控笔可以精确在待操作位置触发第三输入对应的功能。相较于相关技术,减少了无效触控操作,降低了操作误触率,提高了触控操作效率,提升用户体验。To sum up, the touch operation method provided by the embodiments of the present application can display the touch point identifier on the display interface in response to the first input. In response to the second input received in the operation area, the movement of the contact mark is controlled based on the second input, and in response to the third input received in the operation area, the function corresponding to the third input is executed at the termination position of the movement of the contact mark. Wherein, since the operation area is an area on the display screen other than the area where the contact mark is located, there is a certain distance between the operation area and the contact mark. Therefore, when a finger and a stylus are used to move the contact mark on the operation area through the second input, the finger and the stylus cannot block the user's sight, and the user can precisely locate the moving position of the contact mark. Therefore, the contact mark can be precisely controlled to move to the position to be operated, so that the finger and the stylus can precisely trigger the function corresponding to the third input at the position to be operated. Compared with the related art, invalid touch operations are reduced, the false touch rate of operations is reduced, the touch operation efficiency is improved, and the user experience is improved.
需要说明的是,本申请实施例提供的触控操作方法,执行主体可以为触控操作装置,或者该触控操作装置中的用于执行触控操作的方法的 控制模块。本申请实施例中以触控操作装置执行触控操作的方法为例,说明本申请实施例提供的触控操作的装置。It should be noted that, in the touch operation method provided by the embodiments of the present application, the execution body may be a touch operation device, or a control module in the touch operation device for executing the method for touch operation. In the embodiments of the present application, a method for performing a touch operation by a touch operation device is used as an example to describe the device for touch operation provided by the embodiments of the present application.
请参考图11,其示出了本申请实施例提供的一种触控操作装置的框图。如图11所示,触控操作装置1100包括:接收模块1101、显示模块1102、控制模块1103以及执行模块1104。Please refer to FIG. 11 , which shows a block diagram of a touch operation device provided by an embodiment of the present application. As shown in FIG. 11 , the touch operation device 1100 includes a receiving module 1101 , a display module 1102 , a control module 1103 and an execution module 1104 .
接收模块1101,用于接收第一输入;a receiving module 1101, configured to receive a first input;
显示模块1102,用于响应于第一输入,在显示界面显示触点标识;a display module 1102, configured to display the contact identifier on the display interface in response to the first input;
接收模块1101,还用于在操作区域内接收第二输入,操作区域为显示界面中除触点标识所在区域之外的区域;The receiving module 1101 is further configured to receive the second input in the operation area, and the operation area is an area other than the area where the contact mark is located in the display interface;
控制模块1103,用于响应于第二输入,基于第二输入控制触点标识移动;a control module 1103, configured to control the movement of the contact identifier based on the second input in response to the second input;
接收模块1101,还用于在操作区域内接收第三输入;The receiving module 1101 is further configured to receive a third input in the operation area;
执行模块1104,用于响应于第三输入,在触点标识移动的终止位置执行第三输入对应的功能。The execution module 1104 is configured to, in response to the third input, execute the function corresponding to the third input at the termination position of the movement of the contact mark.
可选地,第二输入包括滑动输入;控制模块1103,还用于:Optionally, the second input includes a sliding input; the control module 1103 is further configured to:
获取滑动输入的滑动方向信息和轨迹长度信息;Obtain the sliding direction information and track length information of the sliding input;
根据滑动方向信息和轨迹长度信息,控制触点标识沿滑动方向移动轨迹长度。According to the sliding direction information and the track length information, the contact mark is controlled to move the track length along the sliding direction.
可选地,控制模块1103,还用于:Optionally, the control module 1103 is further configured to:
根据轨迹长度与触点标识的移动距离的预设缩放比例,计算得到滑动输入的轨迹长度所对应的目标移动距离;According to the preset scaling ratio between the track length and the moving distance of the contact mark, the target moving distance corresponding to the track length of the sliding input is calculated;
控制触点标识沿滑动方向移动目标移动距离。The control contact marks the moving distance of the moving target along the sliding direction.
可选地,控制模块1103,还用于:Optionally, the control module 1103 is further configured to:
获取滑动输入的滑动速度信息;Get the sliding speed information of the sliding input;
根据滑动方向信息、轨迹长度信息以及滑动速度信息,控制触点标识采用滑动速度,沿滑动方向移动轨迹长度。According to the sliding direction information, the track length information and the sliding speed information, the control contact identification adopts the sliding speed to move the track length along the sliding direction.
可选地,显示模块1102,还用于:Optionally, the display module 1102 is further configured to:
在检测到触点标识停止移动时,显示提示信息,提示信息用于提示用户可执行的操作以及操作对应的功能,可执行的操作包括以下至少一项:第二输入和第三输入。When it is detected that the contact mark stops moving, prompt information is displayed, and the prompt information is used to prompt the user to perform operations and functions corresponding to the operations, and the executable operations include at least one of the following: a second input and a third input.
可选地,显示有轨迹绘制标识,第一输入包括针对轨迹绘制标识的第一输入;执行模块1104,还用于记录触点标识移动的终止位置。Optionally, a track drawing marker is displayed, and the first input includes a first input for the track drawing marker; the execution module 1104 is further configured to record the end position of the movement of the contact marker.
接收模块1101,还用于在操作区域内接收第四输入。The receiving module 1101 is further configured to receive the fourth input in the operation area.
控制模块1103,还用于响应于第四输入,基于第四输入控制触点标识移动;The control module 1103 is further configured to, in response to the fourth input, control the movement of the contact identifier based on the fourth input;
装置还包括:绘制模块,用于根据触点标识的移动轨迹,以终止位置为绘制起点绘制设定图案。The device also includes: a drawing module, used for drawing a set pattern with the end position as the drawing starting point according to the movement track of the contact mark.
显示模块1102,还用于显示设定图案。The display module 1102 is also used for displaying the setting pattern.
接收模块1101,还用于在操作区域内接收第五输入。The receiving module 1101 is further configured to receive the fifth input in the operation area.
执行模块1104,还用于响应于第五输入,执行设定图案对应的功能。The execution module 1104 is further configured to execute a function corresponding to the set pattern in response to the fifth input.
可选地,绘制模块,还用于以终止位置为起点,绘制以移动轨迹为对角线的选择框图案;或者,绘制移动轨迹的线条图案。Optionally, the drawing module is further configured to take the end position as a starting point, to draw a selection box pattern with a movement trajectory as a diagonal line; or, to draw a line pattern of the movement trajectory.
综上所述,本申请实施例提供的触控操作装置,可以通过显示模块响应于第一输入在显示界面显示触点标识。控制模块响应于在操作区域接收的第二输入,基于第二输入控制触点标识移动,使得执行模块可以响应于在操作区域接收的第三输入,在触点标识移动的终止位置执行第三输入对应的功能。其中,由于操作区域为显示屏幕上除触点标识所在区域外的区域,则操作区域与触点标识具有一定距离。因此采用手指及触控笔在操作区域上通过第二输入移动触点标识时,手指及触控笔无法遮挡用户视线,用户可以精确定位触点标识的移动位置。从而可以精确控制触点标识移动至待操作位置,进而使得手指及触控笔可以精确在待操作位置触发第三输入对应的功能。相较于相关技术,减少了无效触控操作,降低了操作误触率,提高了触控操作效率,提升用户体验。To sum up, the touch operation device provided by the embodiment of the present application can display the touch point identifier on the display interface through the display module in response to the first input. The control module controls the movement of the contact marker based on the second input in response to the second input received at the operating area, such that the execution module can execute the third input at the termination position of the movement of the contact marker in response to the third input received at the operating area corresponding function. Wherein, since the operation area is an area on the display screen other than the area where the contact mark is located, there is a certain distance between the operation area and the contact mark. Therefore, when a finger and a stylus are used to move the contact mark on the operation area through the second input, the finger and the stylus cannot block the user's sight, and the user can precisely locate the moving position of the contact mark. Therefore, the contact mark can be precisely controlled to move to the position to be operated, so that the finger and the stylus can precisely trigger the function corresponding to the third input at the position to be operated. Compared with the related art, invalid touch operations are reduced, the false touch rate of operations is reduced, the touch operation efficiency is improved, and the user experience is improved.
本申请实施例中的触控操作装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等。非移动电子设备可以为服务器、网 络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The touch operation device in the embodiments of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The apparatus may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). assistant, PDA) and so on. The non-mobile electronic device can be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which are not specifically limited in the embodiments of the present application.
本申请实施例中的触控操作装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The touch operation device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
本申请实施例提供的触控操作装置能够实现图1和图4的方法实施例实现的各个过程,为避免重复,这里不再赘述。The touch operation device provided in this embodiment of the present application can implement each process implemented by the method embodiments in FIG. 1 and FIG. 4 , and to avoid repetition, details are not described here.
可选地,如图12所示,本申请实施例还提供一种电子设备1200,包括处理器1201,存储器1202,存储在存储器1202上并可在所述处理器1201上运行的程序或指令,该程序或指令被处理器1201执行时实现上述触控操作方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 12 , an embodiment of the present application further provides an electronic device 1200, including a processor 1201, a memory 1202, a program or instruction stored in the memory 1202 and executable on the processor 1201, When the program or instruction is executed by the processor 1201, each process of the above-mentioned embodiments of the touch operation method can be realized, and the same technical effect can be achieved. To avoid repetition, details are not described here.
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
请参考图13,图13为实现本申请实施例的一种电子设备的硬件结构示意图。如图13所示,该电子设备1300包括但不限于:射频单元1301、网络模块1302、音频输出单元1303、输入单元1304、传感器1305、显示单元1306、用户输入单元1307、接口单元1308、存储器1309、以及处理器1310等部件。Please refer to FIG. 13 , which is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application. As shown in FIG. 13 , the electronic device 1300 includes but is not limited to: a radio frequency unit 1301 , a network module 1302 , an audio output unit 1303 , an input unit 1304 , a sensor 1305 , a display unit 1306 , a user input unit 1307 , an interface unit 1308 , and a memory 1309 , and the processor 1310 and other components.
本领域技术人员可以理解,电子设备1300还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1310逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图13中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 1300 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 1310 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. consumption management and other functions. The structure of the electronic device shown in FIG. 13 does not constitute a limitation on the electronic device. The electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
其中,处理器1310,用于接收第一输入。The processor 1310 is configured to receive the first input.
显示单元1306,用于响应于所述第一输入,在显示界面显示触点标 识。The display unit 1306 is configured to display the contact identification on the display interface in response to the first input.
处理器1310,用于在操作区域内接收第二输入,所述操作区域为所述显示界面中除所述触点标识所在区域之外的区域。响应于所述第二输入,基于所述第二输入控制所述触点标识移动。在所述操作区域内接收第三输入。响应于所述第三输入,在所述触点标识移动的终止位置执行所述第三输入对应的功能。The processor 1310 is configured to receive a second input in an operation area, where the operation area is an area in the display interface other than the area where the touch point identifier is located. In response to the second input, movement of the contact marker is controlled based on the second input. A third input is received within the operating area. In response to the third input, the function corresponding to the third input is executed at the termination position of the movement of the contact mark.
通过响应于第一输入在显示界面显示触点标识。响应于在操作区域接收的第二输入,基于第二输入控制触点标识移动,响应于在操作区域接收的第三输入,在触点标识移动的终止位置执行第三输入对应的功能。其中,由于操作区域为显示屏幕上除触点标识所在区域外的区域,则操作区域与触点标识具有一定距离。因此采用手指及触控笔在操作区域上通过第二输入移动触点标识时,手指及触控笔无法遮挡用户视线,用户可以精确定位触点标识的移动位置。从而可以精确控制触点标识移动至待操作位置,进而使得手指及触控笔可以精确在待操作位置触发第三输入对应的功能。相较于相关技术,减少了无效触控操作,降低了操作误触率,提高了触控操作效率,提升用户体验。By displaying the contact identification on the display interface in response to the first input. In response to the second input received in the operation area, the movement of the contact mark is controlled based on the second input, and in response to the third input received in the operation area, the function corresponding to the third input is executed at the termination position of the movement of the contact mark. Wherein, since the operation area is an area on the display screen other than the area where the contact mark is located, there is a certain distance between the operation area and the contact mark. Therefore, when a finger and a stylus are used to move the contact mark on the operation area through the second input, the finger and the stylus cannot block the user's sight, and the user can precisely locate the moving position of the contact mark. Therefore, the contact mark can be precisely controlled to move to the position to be operated, so that the finger and the stylus can precisely trigger the function corresponding to the third input at the position to be operated. Compared with the related art, invalid touch operations are reduced, the false touch rate of operations is reduced, the touch operation efficiency is improved, and the user experience is improved.
可选地,所述第二输入包括滑动输入;处理器1310,还用于获取所述滑动输入的滑动方向信息和轨迹长度信息。根据所述滑动方向信息和所述轨迹长度信息,控制所述触点标识沿所述滑动方向移动所述轨迹长度。Optionally, the second input includes a sliding input; the processor 1310 is further configured to acquire sliding direction information and track length information of the sliding input. According to the sliding direction information and the track length information, the contact mark is controlled to move the track length along the sliding direction.
可选地,处理器1310,还用于根据所述轨迹长度与所述触点标识的移动距离的预设缩放比例,计算得到所述滑动输入的轨迹长度所对应的目标移动距离。控制所述触点标识沿所述滑动方向移动所述目标移动距离。Optionally, the processor 1310 is further configured to calculate and obtain the target movement distance corresponding to the trajectory length of the sliding input according to the preset scaling ratio between the trajectory length and the movement distance of the touch point identifier. The touch point identifier is controlled to move the target moving distance along the sliding direction.
可选地,处理器1310,还用于获取所述滑动输入的滑动速度信息。根据所述滑动方向信息、轨迹长度信息以及滑动速度信息,控制所述触点标识采用所述滑动速度,沿所述滑动方向移动所述轨迹长度。Optionally, the processor 1310 is further configured to acquire sliding speed information of the sliding input. According to the sliding direction information, the track length information and the sliding speed information, the contact identifier is controlled to use the sliding speed to move the track length along the sliding direction.
可选地,处理器1310,还用于在检测到所述触点标识停止移动时,显示提示信息,所述提示信息用于提示用户可执行的操作以及操作对应的功能,所述可执行的操作包括以下至少一项:所述第二输入和所述第 三输入。Optionally, the processor 1310 is further configured to display prompt information when it is detected that the contact mark stops moving, where the prompt information is used to prompt the user for an operation that can be performed and a function corresponding to the operation. The operation includes at least one of: the second input and the third input.
可选地,显示有轨迹绘制标识,所述第一输入包括针对所述轨迹绘制标识的第一输入;处理器1310,还用于记录所述触点标识移动的终止位置;Optionally, a track drawing marker is displayed, and the first input includes a first input for the track drawing marker; the processor 1310 is further configured to record the end position of the movement of the contact marker;
处理器1310,还用于在所述操作区域内接收第四输入。响应于所述第四输入,基于所述第四输入控制所述触点标识移动,并根据所述触点标识的移动轨迹,以所述终止位置为绘制起点绘制设定图案。The processor 1310 is further configured to receive a fourth input in the operation area. In response to the fourth input, the contact mark is controlled to move based on the fourth input, and according to the movement track of the contact mark, a set pattern is drawn with the end position as a drawing starting point.
显示单元1306,还用于显示所述设定图案。The display unit 1306 is further configured to display the setting pattern.
处理器1310,还用于在所述操作区域内接收第五输入。响应于所述第五输入,执行所述设定图案对应的功能。The processor 1310 is further configured to receive a fifth input in the operation area. In response to the fifth input, the function corresponding to the setting pattern is executed.
可选地,处理器1310,还用于以所述终止位置为起点,绘制以所述移动轨迹为对角线的选择框图案;或者,绘制所述移动轨迹的线条图案。Optionally, the processor 1310 is further configured to use the termination position as a starting point to draw a selection box pattern with the movement trajectory as a diagonal line; or, to draw a line pattern of the movement trajectory.
通过响应于第一输入在显示界面显示触点标识。响应于在操作区域接收的第二输入,基于第二输入控制触点标识移动,响应于在操作区域接收的第三输入,在触点标识移动的终止位置执行第三输入对应的功能。其中,由于操作区域为显示屏幕上除触点标识所在区域外的区域,则操作区域与触点标识具有一定距离。因此采用手指及触控笔在操作区域上通过第二输入移动触点标识时,手指及触控笔无法遮挡用户视线,用户可以精确定位触点标识的移动位置。从而可以精确控制触点标识移动至待操作位置,进而使得手指及触控笔可以精确在待操作位置触发第三输入对应的功能。相较于相关技术,减少了无效触控操作,降低了操作误触率,提高了触控操作效率,提升用户体验。By displaying the contact identification on the display interface in response to the first input. In response to the second input received in the operation area, the movement of the contact mark is controlled based on the second input, and in response to the third input received in the operation area, the function corresponding to the third input is executed at the termination position of the movement of the contact mark. Wherein, since the operation area is an area on the display screen other than the area where the contact mark is located, there is a certain distance between the operation area and the contact mark. Therefore, when a finger and a stylus are used to move the contact mark on the operation area through the second input, the finger and the stylus cannot block the user's sight, and the user can precisely locate the moving position of the contact mark. Therefore, the contact mark can be precisely controlled to move to the position to be operated, so that the finger and the stylus can precisely trigger the function corresponding to the third input at the position to be operated. Compared with the related art, invalid touch operations are reduced, the false touch rate of operations is reduced, the touch operation efficiency is improved, and the user experience is improved.
应理解的是,本申请实施例中,输入单元1304可以包括图形处理器(Graphics Processing Unit,GPU)13041和麦克风13042,图形处理器13041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1306可包括显示面板13061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板13061。用户输入单元1307包括触控面板13071以及其他输入设备13072。触控面板13071,也称为触摸屏。触控面板13071可包括触摸检测装置和触摸控制器两个部分。其他输入设备13072可以包括但不限于 物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器1309可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器1310可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1310中。It should be understood that, in this embodiment of the present application, the input unit 1304 may include a graphics processor (Graphics Processing Unit, GPU) 13041 and a microphone 13042. Such as camera) to obtain still pictures or video image data for processing. The display unit 1306 may include a display panel 13061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1307 includes a touch panel 13071 and other input devices 13072 . The touch panel 13071 is also called a touch screen. The touch panel 13071 may include two parts, a touch detection device and a touch controller. Other input devices 13072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here. Memory 1309 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. The processor 1310 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 1310.
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述触控操作方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the above-mentioned embodiments of the touch operation method is implemented, and can achieve The same technical effect, in order to avoid repetition, will not be repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the foregoing embodiments. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述触控操作方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used for running a program or an instruction to implement the above embodiments of the touch operation method and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或 按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in the reverse order depending on the functions involved. To perform functions, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to some examples may be combined in other examples.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽咯,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present application can be embodied in the form of computer software products that are essentially or contribute to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk , CD), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) execute the methods described in the various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.

Claims (17)

  1. 一种触控操作方法,所述方法包括:A touch operation method, the method comprising:
    接收第一输入;receive a first input;
    响应于所述第一输入,在显示界面显示触点标识;In response to the first input, displaying the contact identification on the display interface;
    在操作区域内接收第二输入,所述操作区域为所述显示界面中除所述触点标识所在区域之外的区域;receiving a second input in an operation area, where the operation area is an area in the display interface other than the area where the touch point identifier is located;
    响应于所述第二输入,基于所述第二输入控制所述触点标识移动;in response to the second input, controlling movement of the contact marker based on the second input;
    在所述操作区域内接收第三输入;receiving a third input within the operating area;
    响应于所述第三输入,在所述触点标识移动的终止位置执行所述第三输入对应的功能。In response to the third input, the function corresponding to the third input is executed at the termination position of the movement of the contact mark.
  2. 根据权利要求1所述的方法,其中,所述第二输入包括滑动输入;所述基于所述第二输入控制所述触点标识移动,包括:The method of claim 1, wherein the second input comprises a sliding input; and the controlling the movement of the contact mark based on the second input comprises:
    获取所述滑动输入的滑动方向信息和轨迹长度信息;Obtain the sliding direction information and track length information of the sliding input;
    根据所述滑动方向信息和所述轨迹长度信息,控制所述触点标识沿滑动方向移动轨迹长度。According to the sliding direction information and the track length information, the contact mark is controlled to move the track length along the sliding direction.
  3. 根据权利要求2所述的方法,其中,所述根据所述滑动方向信息和所述轨迹长度信息,控制所述触点标识沿滑动方向移动轨迹长度,包括:The method according to claim 2, wherein the controlling the contact mark to move the track length along the sliding direction according to the sliding direction information and the track length information comprises:
    根据所述轨迹长度与所述触点标识的移动距离的预设缩放比例,计算得到所述滑动输入的轨迹长度所对应的目标移动距离;According to the preset scaling ratio between the track length and the moving distance of the touch point identifier, calculate and obtain the target moving distance corresponding to the track length of the sliding input;
    控制所述触点标识沿所述滑动方向移动所述目标移动距离。The touch point identifier is controlled to move the target moving distance along the sliding direction.
  4. 根据权利要求2所述的方法,其中,所述基于所述第二输入控制所述触点标识移动,还包括:获取所述滑动输入的滑动速度信息;The method according to claim 2, wherein the controlling the movement of the contact mark based on the second input further comprises: acquiring sliding speed information of the sliding input;
    所述根据所述滑动方向信息和所述轨迹长度信息,控制所述触点标识沿滑动方向移动轨迹长度,包括:根据所述滑动方向信息、轨迹长度信息以及滑动速度信息,控制所述触点标识采用滑动速度,沿所述滑动方向移动所述轨迹长度。The controlling the contact mark to move the track length along the sliding direction according to the sliding direction information and the track length information includes: controlling the contact point according to the sliding direction information, the track length information and the sliding speed information The marker moves the track length along the sliding direction using a sliding velocity.
  5. 根据权利要求1所述的方法,其中,所述在所述操作区域内接收第三输入之前,所述方法还包括:The method of claim 1, wherein, before said receiving a third input in said operating area, said method further comprises:
    在检测到所述触点标识停止移动时,显示提示信息,所述提示信息用于提示用户可执行的操作以及操作对应的功能,所述可执行的操作包括以下至少一项:所述第二输入、所述第三输入。When it is detected that the contact mark stops moving, prompt information is displayed, and the prompt information is used to prompt the user for an operation that can be performed and a function corresponding to the operation, and the executable operation includes at least one of the following: the second input, the third input.
  6. 根据权利要求1所述的方法,其中,显示有轨迹绘制标识,所述第一输入包括针对所述轨迹绘制标识的第一输入;所述在所述触点标识移动的终止位置执行所述第三输入对应的功能,包括:记录所述触点标识移动的终止位置;The method according to claim 1, wherein a trajectory drawing mark is displayed, and the first input comprises a first input for the trajectory drawing mark; the executing the first input at the end position of the movement of the touch point mark The functions corresponding to the three inputs include: recording the end position of the movement of the contact mark;
    所述方法还包括:The method also includes:
    在所述操作区域内接收第四输入;receiving a fourth input within the operating area;
    响应于所述第四输入,基于所述第四输入控制所述触点标识移动,并根据所述触点标识的移动轨迹,以所述终止位置为绘制起点绘制设定图案,显示所述设定图案;In response to the fourth input, the contact mark is controlled to move based on the fourth input, and according to the movement track of the contact mark, a setting pattern is drawn with the end position as the drawing starting point, and the setting pattern is displayed. set pattern;
    在所述操作区域内接收第五输入;receiving a fifth input within the operating area;
    响应于所述第五输入,执行所述设定图案对应的功能。In response to the fifth input, the function corresponding to the setting pattern is executed.
  7. 根据权利要求6所述的方法,其中,所述根据所述触点标识的移动轨迹,以所述终止位置为绘制起点绘制设定图案,包括:The method according to claim 6, wherein the drawing a set pattern with the end position as a drawing starting point according to the movement track of the contact identifier, comprising:
    以所述终止位置为起点,绘制以所述移动轨迹为对角线的选择框图案;Taking the termination position as a starting point, draw a selection frame pattern with the movement trajectory as a diagonal line;
    或者,绘制所述移动轨迹的线条图案。Alternatively, a line pattern of the movement trajectory is drawn.
  8. 一种触控操作装置,所述装置包括:A touch operation device, the device includes:
    接收模块,用于接收第一输入;a receiving module for receiving the first input;
    显示模块,用于响应于所述第一输入,在显示界面显示触点标识;a display module, configured to display a contact identifier on a display interface in response to the first input;
    所述接收模块,还用于在操作区域内接收第二输入,所述操作区域为所述显示界面中除所述触点标识所在区域之外的区域;The receiving module is further configured to receive a second input in an operation area, where the operation area is an area other than the area where the contact mark is located in the display interface;
    控制模块,用于响应于所述第二输入,基于所述第二输入控制所述触点标识移动;a control module for controlling the movement of the contact mark based on the second input in response to the second input;
    所述接收模块,还用于在所述操作区域内接收第三输入;The receiving module is further configured to receive a third input in the operation area;
    执行模块,用于响应于所述第三输入,在所述触点标识移动的终止位置执行所述第三输入对应的功能。An execution module, configured to, in response to the third input, execute the function corresponding to the third input at the termination position of the movement of the contact mark.
  9. 根据权利要求8所述的装置,其中,所述第二输入包括滑动输入;所述控制模块,还用于:The apparatus of claim 8, wherein the second input comprises a sliding input; the control module is further configured to:
    获取所述滑动输入的滑动方向信息和轨迹长度信息;Obtain the sliding direction information and track length information of the sliding input;
    根据所述滑动方向信息和所述轨迹长度信息,控制所述触点标识沿滑动方向移动轨迹长度。According to the sliding direction information and the track length information, the contact mark is controlled to move the track length along the sliding direction.
  10. 根据权利要求9所述的装置,其中,所述控制模块,还用于:The apparatus of claim 9, wherein the control module is further configured to:
    根据所述轨迹长度与所述触点标识的移动距离的预设缩放比例,计算得到所述滑动输入的轨迹长度所对应的目标移动距离;According to the preset scaling ratio between the track length and the moving distance of the touch point identifier, calculate and obtain the target moving distance corresponding to the track length of the sliding input;
    控制所述触点标识沿所述滑动方向移动所述目标移动距离。The touch point identifier is controlled to move the target moving distance along the sliding direction.
  11. 根据权利要求9所述的装置,其中,所述控制模块,还用于:The apparatus of claim 9, wherein the control module is further configured to:
    获取所述滑动输入的滑动速度信息;obtaining the sliding speed information of the sliding input;
    根据所述滑动方向信息、轨迹长度信息以及滑动速度信息,控制所述触点标识采用滑动速度,沿所述滑动方向移动所述轨迹长度。According to the sliding direction information, the track length information and the sliding speed information, the contact identifier is controlled to adopt a sliding speed to move the track length along the sliding direction.
  12. 根据权利要求8所述的装置,其中,所述显示模块,还用于:The device according to claim 8, wherein the display module is further used for:
    在检测到所述触点标识停止移动时,显示提示信息,所述提示信息用于提示用户可执行的操作以及操作对应的功能,所述可执行的操作包括以下至少一项:所述第二输入、所述第三输入。When it is detected that the contact mark stops moving, prompt information is displayed, where the prompt information is used to prompt the user for an operation that can be performed and a function corresponding to the operation, and the executable operation includes at least one of the following: the second input, the third input.
  13. 根据权利要求8所述的装置,其中,显示有轨迹绘制标识,所述第一输入包括针对所述轨迹绘制标识的第一输入;所述执行模块,还用于:记录所述触点标识移动的终止位置;The device according to claim 8, wherein a track drawing marker is displayed, and the first input includes a first input for the track drawing marker; the execution module is further configured to: record the movement of the contact marker the end position of ;
    所述接收模块,还用于在所述操作区域内接收第四输入;The receiving module is further configured to receive a fourth input in the operation area;
    所述控制模块,还用于响应于所述第四输入,基于所述第四输入控制所述触点标识移动;The control module is further configured to control the movement of the contact mark based on the fourth input in response to the fourth input;
    所述装置还包括:绘制模块,用于根据所述触点标识的移动轨迹,以所述终止位置为绘制起点绘制设定图案;The device further includes: a drawing module for drawing a set pattern with the termination position as a drawing starting point according to the movement track of the contact mark;
    所述显示模块,还用于显示所述设定图案;The display module is also used to display the setting pattern;
    所述接收模块,还用于在所述操作区域内接收第五输入;the receiving module is further configured to receive a fifth input in the operation area;
    所述执行模块,还用于响应于所述第五输入,执行所述设定图案对应的功能。The executing module is further configured to execute the function corresponding to the setting pattern in response to the fifth input.
  14. 根据权利要求13所述的装置,其中,所述绘制模块,还用于:The device according to claim 13, wherein the drawing module is further configured to:
    以所述终止位置为起点,绘制以所述移动轨迹为对角线的选择框图案;Taking the termination position as a starting point, draw a selection frame pattern with the movement trajectory as a diagonal line;
    或者,绘制所述移动轨迹的线条图案。Alternatively, a line pattern of the movement trajectory is drawn.
  15. 一种电子设备,所述电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至7任一项所述的触控操作方法。An electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being executed by the processor. The touch operation method according to any one of requirements 1 to 7 is required.
  16. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至7任一项所述的触控操作方法。A readable storage medium on which programs or instructions are stored, and when the programs or instructions are executed by a processor, the touch operation method according to any one of claims 1 to 7 is implemented.
  17. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至7任一项所述的触控操作方法。A chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, and the processor is used for running a program or an instruction to realize the touch control according to any one of claims 1 to 7 how to operate.
PCT/CN2022/086662 2021-04-16 2022-04-13 Method and apparatus for touch operation WO2022218352A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110413329.0A CN113485590A (en) 2021-04-16 2021-04-16 Touch operation method and device
CN202110413329.0 2021-04-16

Publications (1)

Publication Number Publication Date
WO2022218352A1 true WO2022218352A1 (en) 2022-10-20

Family

ID=77932963

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/086662 WO2022218352A1 (en) 2021-04-16 2022-04-13 Method and apparatus for touch operation

Country Status (2)

Country Link
CN (1) CN113485590A (en)
WO (1) WO2022218352A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113485590A (en) * 2021-04-16 2021-10-08 维沃移动通信有限公司 Touch operation method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019588A (en) * 2012-11-26 2013-04-03 中兴通讯股份有限公司 Touch positioning method, device and terminal
CN105892786A (en) * 2015-01-16 2016-08-24 张凯 Method for achieving text selection on touchscreen interface
US20180121076A1 (en) * 2016-10-17 2018-05-03 Gree, Inc. Drawing processing method, drawing program, and drawing device
CN108132752A (en) * 2017-12-21 2018-06-08 维沃移动通信有限公司 A kind of method for editing text and mobile terminal
CN109426410A (en) * 2017-09-05 2019-03-05 华为终端(东莞)有限公司 Control the mobile method of cursor, content selecting method, the method and electronic equipment for controlling page scroll
CN113485590A (en) * 2021-04-16 2021-10-08 维沃移动通信有限公司 Touch operation method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019588A (en) * 2012-11-26 2013-04-03 中兴通讯股份有限公司 Touch positioning method, device and terminal
CN105892786A (en) * 2015-01-16 2016-08-24 张凯 Method for achieving text selection on touchscreen interface
US20180121076A1 (en) * 2016-10-17 2018-05-03 Gree, Inc. Drawing processing method, drawing program, and drawing device
CN109426410A (en) * 2017-09-05 2019-03-05 华为终端(东莞)有限公司 Control the mobile method of cursor, content selecting method, the method and electronic equipment for controlling page scroll
CN108132752A (en) * 2017-12-21 2018-06-08 维沃移动通信有限公司 A kind of method for editing text and mobile terminal
CN113485590A (en) * 2021-04-16 2021-10-08 维沃移动通信有限公司 Touch operation method and device

Also Published As

Publication number Publication date
CN113485590A (en) 2021-10-08

Similar Documents

Publication Publication Date Title
US11808562B2 (en) Devices and methods for measuring using augmented reality
US11907446B2 (en) Devices and methods for creating calendar events based on hand-drawn inputs at an electronic device with a touch-sensitive display
US11314407B2 (en) Device, method, and graphical user interface for providing feedback for changing activation states of a user interface object
US20200371676A1 (en) Device, Method, and Graphical User Interface for Providing and Interacting with a Virtual Drawing Aid
US10437360B2 (en) Method and apparatus for moving contents in terminal
US8976140B2 (en) Touch input processor, information processor, and touch input control method
EP2204729A2 (en) Information processing apparatus, information processing method, and program
US20130050263A1 (en) Device, Method, and Graphical User Interface for Managing and Interacting with Concurrently Open Software Applications
US20130055119A1 (en) Device, Method, and Graphical User Interface for Variable Speed Navigation
EP2474896A2 (en) Information processing apparatus, information processing method, and computer program
JP2015007949A (en) Display device, display controlling method, and computer program
WO2021203724A1 (en) Handwriting selection method and apparatus, and computer device and storage medium
US10521101B2 (en) Scroll mode for touch/pointing control
US9836211B2 (en) Device, method, and graphical user interface for selection of views in a three-dimensional map based on gesture inputs
US20140298223A1 (en) Systems and methods for drawing shapes and issuing gesture-based control commands on the same draw grid
KR20090102727A (en) Method and device for controlling screen size of display device
WO2019119799A1 (en) Method for displaying application icon, and terminal device
WO2022218352A1 (en) Method and apparatus for touch operation
JP2013109529A (en) Input device, control method for input device, control program, and recording medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22787574

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE