WO2018218392A1 - 触摸操作的处理方法和触摸键盘 - Google Patents

触摸操作的处理方法和触摸键盘 Download PDF

Info

Publication number
WO2018218392A1
WO2018218392A1 PCT/CN2017/086241 CN2017086241W WO2018218392A1 WO 2018218392 A1 WO2018218392 A1 WO 2018218392A1 CN 2017086241 W CN2017086241 W CN 2017086241W WO 2018218392 A1 WO2018218392 A1 WO 2018218392A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch
point
operation gesture
keyboard
gesture
Prior art date
Application number
PCT/CN2017/086241
Other languages
English (en)
French (fr)
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 深圳市柔宇科技有限公司
Priority to CN201780004628.0A priority Critical patent/CN108475126A/zh
Priority to PCT/CN2017/086241 priority patent/WO2018218392A1/zh
Publication of WO2018218392A1 publication Critical patent/WO2018218392A1/zh

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/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/0202Constructional details or processes of manufacture of the input device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Definitions

  • the present application relates to the field of touch technologies, and in particular, to a touch operation method and a touch keyboard.
  • a touch keyboard is connected as an independent physical implementation input device to an electronic device (such as a computer), or a touch keyboard is used as a virtual keyboard.
  • the form is implemented by a touch display configured by an electronic device such as a mobile phone.
  • the user can input characters and the like by touching the touch keys on the keyboard.
  • a peripheral input device such as a mouse or a control display screen is configured to implement the corresponding operation.
  • this approach increases the user's operational complexity and the user experience is low.
  • the embodiment of the present application discloses a processing method of a touch operation and a touch keyboard, which can improve user operation efficiency.
  • the embodiment of the present application discloses a processing method of a touch operation, including:
  • An input event corresponding to the operation gesture is determined.
  • an embodiment of the present application discloses a touch keyboard, including a functional unit, which is used to perform some or all of the steps of the method shown in the first aspect.
  • the embodiment of the present application discloses a touch keyboard
  • the terminal includes a processor and a memory; the memory stores executable program code; the processor is configured to support the touch keyboard to perform the first aspect of providing The corresponding function in the method. Memory is used to save the necessary program instructions And data.
  • the embodiment of the present application discloses a computer storage medium for storing computer software instructions for the touch keyboard provided by the above third aspect, which comprises a program designed to execute the method in the first aspect.
  • the touch keyboard when a touch operation is detected in a button area of the touch keyboard, one or more touch points related to the touch operation are determined, and a touch corresponding to each touch point of the one or more touch points is recorded. Data, according to the number of the one or more touch points and the touch data corresponding to the touch points, the operation gesture corresponding to the touch operation can be identified, and the input event corresponding to the operation gesture can be determined, wherein The input event includes a mouse input event or a keyboard input event.
  • the touch keyboard can be integrated with the mouse function, so that the user can perform mouse or keyboard event input on the electronic device coupled with the touch keyboard by operating the touch keyboard, thereby improving user operation efficiency and better user experience.
  • FIG. 1 is a schematic flow chart of a processing method of a touch operation disclosed in an embodiment of the present application
  • FIG. 2 is a schematic diagram of a button area of a touch keyboard according to an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of another method for processing a touch operation disclosed in the embodiment of the present application.
  • FIG. 4 is a schematic flowchart of still another processing method of a touch operation disclosed in an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of still another processing method of a touch operation disclosed in an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a touch keyboard disclosed in an embodiment of the present application.
  • FIG. 7 is a functional block diagram of a touch keyboard disclosed in an embodiment of the present application.
  • references to "an embodiment” herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the present application.
  • the appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
  • FIG. 1 is a schematic flowchart diagram of a processing method of a touch operation disclosed in an embodiment of the present application. As shown in FIG. 1, the method includes at least the following steps.
  • Step S101 when a touch operation is detected in a button area of the touch keyboard, determine one or more touch points related to the touch operation, and record touch data corresponding to the one or more touch points;
  • the button area of the touch keyboard can be seen in FIG. 2 .
  • the button area may include a function key, a character key, and the like.
  • the key arrangement in the button area of the touch keyboard shown in FIG. 2 and the included buttons are exemplary.
  • the technical solutions involved in the embodiments of the present application are also applicable to other key forms or key arrangements.
  • the touch keyboard may also include other areas than the button area.
  • the embodiments of the present application are not specifically limited.
  • the touch data corresponding to the touch point includes, but is not limited to, the time when the touch point touches the touch keyboard is the start time; the time when the touch point leaves the touch keyboard is the end time; the touch time of the touch point; the touch point The number of touches; the coordinate information of the touch point at the start time; the coordinate information of the touch point at the end time; the real-time coordinate information of the touch point when the touch operation is performed, and the movement track of the touch point is determined according to the coordinate information , the touch point is one or more touch pressures on the moving track, and the like.
  • the coordinate information of each button in the current button area may be corrected, so that when the touch operation is detected, the touch data of the touch point related to the touch operation can be accurately acquired.
  • a calibration point may be set in the keyboard area, and whether the key in the button area is offset is determined by determining whether the coordinate information of the correction point is offset. Further, the coordinate information of the correction point is determined by the offset of the correction point. Correction can be performed to correct the coordinate information of the keys in the button area.
  • the coordinate information of the calibration point may be set to (0, 0); the coordinate information of the button is determined by reference to the coordinate information of the calibration point, and if the coordinate information of the correction point has been offset, according to the offset The coordinate information of the button can be corrected.
  • Step S102 identifying an operation gesture corresponding to the touch operation according to the number of the one or more touch points and the touch data corresponding to the one or more touch points.
  • the operation gesture corresponding to the touch operation may be identified according to the number of touched points and the touch data corresponding to each touch point, and then according to the recognized operation gesture.
  • the operation gesture corresponding to the touch operation may be identified according to whether the touch point and the corresponding touch data meet the preset condition, for example, whether the track length of the movement track of the touch point in the touch data meets a preset threshold or the like.
  • the recognized operation gesture only indicates that the touch data of the touch point satisfies the preset operation condition, that is, the actual user's operation gesture is not necessarily the same as the recognized operation gesture, for example, two touch points are recognized and simultaneously clicked. In the user implementation, it can be realized with two fingers with one hand, or with one finger for both hands. The implementation of the technical solution of the embodiment of the present application is not affected here.
  • Step S103 determining an input event corresponding to the operation gesture.
  • an input event corresponding to the operation gesture is determined.
  • the input event described in the embodiment of the present application may include a keyboard. Input events, such as character key input values, or function control events corresponding to function keys; or mouse input events, such as control time for mouse control cursors, mouse click events, etc.; or, the input events are used to control coupling with the touch keyboard.
  • the function of the electronic device for example, controlling the display function of the display of the electronic device or controlling the playing function of the electronic device and the like. This is not specifically limited.
  • the input event may be transmitted to a corresponding electronic device to implement control of the electronic device. For example, if the input event includes a character event corresponding to the button, the display screen of the control electronic device displays the character corresponding to the button; if the input event includes a mouse input event, the display screen of the electronic device is controlled to move the mouse corresponding cursor according to the input event. And determining the direction and distance of the cursor movement according to the event parameters carried in the input event, or the input event transmitted by the touch keyboard is used to control the audio playback device of the electronic device to adjust the playback volume and the like.
  • an input event corresponding to the operation gesture may also be determined according to a control mode in which the touch keyboard is currently located.
  • the control mode of the touch keyboard may include a keyboard control mode, a mouse control mode, and a compatible control mode.
  • the touch keyboard In the keyboard control mode, the touch keyboard only outputs keyboard input events; in the mouse control mode, the touch keyboard only outputs mouse input events; in the compatibility mode, the touch keyboard can output keyboard input events or output mouse input events. , or other input events, etc. Therefore, by switching the control mode, it is possible to prevent the user from malfunctioning.
  • the compatible control mode switching can be implemented by the user's touch operation, for example, the user clicks the touch keyboard three times in succession, etc.
  • the user can perform the touch operation on the non-key area of the touch keyboard to distinguish the keyboard. Enter the touch action for the event.
  • the mode of the touch keyboard can be implemented by setting a mode switching button in a button area on the touch keyboard. The embodiment of the present application is not specifically limited.
  • the same operational gestures may have different input events in different control modes. For example, when determining that the operation gesture is a one-finger click, in the keyboard control mode, determining that the input event corresponding to the operation gesture includes a combined button value of two keys respectively targeted by the two fingers; in the mouse control mode, determining the The input events corresponding to the operation gesture include a left mouse button event or a right mouse button event, thereby preventing misoperation by switching the control mode; when in the compatible control mode, a finer operation gesture can be set corresponding to different input events, for example, If the operation gesture is a one-finger click, it can be divided into two operations according to the time difference of determining the start touch time of the two fingers. The gesture, which in turn corresponds to two input events, prevents an operation from being erroneously generated corresponding to two input events.
  • the touch keyboard when a touch operation is detected in a button area of the touch keyboard, one or more touch points related to the touch operation are determined, and a touch corresponding to each touch point of the one or more touch points is recorded. Data, according to the number of the one or more touch points and the touch data corresponding to the touch points, the operation gesture corresponding to the touch operation can be identified, and the input event corresponding to the operation gesture can be determined, wherein The input event includes a mouse input event or a keyboard input event.
  • the touch keyboard can be integrated with the mouse function, so that the user can perform mouse or keyboard event input on the electronic device coupled with the touch keyboard by operating the touch keyboard, thereby improving user operation efficiency and better user experience.
  • FIG. 3 illustrates a specific implementation manner for identifying an operation gesture corresponding to the touch operation.
  • the method includes the following steps.
  • Step S301 if the number of the touched points related to the touch operation is one, determining the length of the moving track of the touched point according to the touch data corresponding to the touched point, and determining whether the length of the moving track is greater than the first length threshold. ;
  • Step S302 if yes, identifying an operation gesture corresponding to the touch operation as a first operation gesture
  • Step S303 if no, the operation gesture corresponding to the touch operation is identified as the second operation gesture.
  • the corresponding operation gesture can be identified by determining a movement trajectory of the touch point. Specifically, if the movement trajectory of the touch point is less than the first length threshold, the operation gesture may be determined to be a first operation gesture, for example, the first operation gesture may be a single-finger tap or a single-finger click; if the touch point moves The trajectory is greater than the first length, and the operation gesture may be determined to be a second operation gesture.
  • the second operation gesture may be a single-finger slide.
  • the first operation gesture is further determined to be a single-finger tap or a single-finger click according to the touch duration of the touch point. Specifically, if the touch duration of the touch point is greater than a preset time threshold, the first may be determined. The operation gesture is a single-finger tap. If the touch duration of the touch point is less than a preset time threshold, the first operation gesture may be determined to be a single-finger click.
  • the first operation gesture may correspond to a keyboard input event
  • the second operation Gestures can correspond to mouse input events
  • the button for the touch operation may be determined according to the coordinate information of the touch point, and the input corresponding to the first operation gesture is determined based on the button value of the button
  • the event includes the button value of the button for the touch operation. If the button is a character button, the button value represents the corresponding character. If the button is a function button, the button value represents the corresponding function.
  • This input event embodies the function of the touch keyboard, that is, the user controls the electronic device coupled to the touch keyboard by touching the keyboard.
  • the electronic device can implement the function for the touch operation based on the input event. For example, after receiving the input event corresponding to the first operation gesture, the electronic device may display the character included in the input event on the display screen of the electronic device, or perform an operation such as taking a screenshot of the current display screen of the electronic device based on the input event.
  • the first operation gesture may be further divided into two operation gestures according to different touch durations of the touch points in the first operation gesture, such as a tap operation gesture and a click operation gesture, where the two operation gestures correspond to different Inputting an event, for example, when it is determined that a button "S" is clicked, the control electronic device displays the uppercase state of the character corresponding to the button on the display screen, that is, displays "S" on the display screen; when it is determined that a button is clicked At “s", the control electronics displays a lowercase "s” on the display.
  • two operation gestures correspond to different Inputting an event, for example, when it is determined that a button "S" is clicked, the control electronic device displays the uppercase state of the character corresponding to the button on the display screen, that is, displays "S" on the display screen; when it is determined that a button is clicked At “s", the control electronics displays a lowercase "s” on the display.
  • the input event corresponding to the second operation gesture may be determined as a mouse input event, that is, the user uses the touch operation to implement the mouse control function.
  • the cursor on the display screen of the electronic device may be controlled to move based on the movement trajectory of the touch operation.
  • the trajectory of the cursor movement is related to the movement trajectory of the touch operation
  • the speed at which the cursor moves is related to the moving speed of the touch operation, and the like.
  • the user can implement the function of mouse sliding by performing a touch operation on the touch keyboard.
  • FIG. 4 illustrates another specific implementation manner for identifying an operation gesture corresponding to the touch operation.
  • the method includes the following steps.
  • Step S401 if the number of touch points related to the touch operation is two, determining whether the distance between the two touch points is greater than a second length threshold;
  • Step S402 if it is determined that the distance is less than the second length threshold, determining the two touches Whether the time interval between the touch start times of the points is greater than the first time threshold;
  • Step S403 if it is determined that the time interval is greater than the first time threshold, the operation gesture corresponding to the touch operation is identified as a third operation gesture;
  • step S404 if it is determined that the distance is greater than the second length threshold, or it is determined that the time interval is less than the first time threshold, the operation gesture corresponding to the touch operation is identified as a fourth operation gesture.
  • the operation gesture corresponding to the touch operation is identified according to the touch data corresponding to the two touch points.
  • the two-finger touch operation means that two touch points can be detected on the touch keyboard at the same time.
  • the touch start time of the two touch points may be the same or different, and is not specifically limited herein.
  • the initial coordinate information of the two touch points can be used to determine whether the distance between the two touch points is less than the second length threshold; if it is determined that the distance is less than the second length threshold, the two touches can be further determined.
  • the operation gesture corresponding to the touch operation may be identified as, for example, a third click of a finger Action gestures. If it is determined that the distance between the two touch points is greater than the second length threshold, or if it is determined that the distance between the two touch points is less than the second length threshold and the time between the touch start times of the two touch points is determined The interval is less than the first time threshold, and the operation gesture corresponding to the touch operation is identified as a fourth operation gesture such as two fingers simultaneously clicking or tapping.
  • the input event corresponding to the third operation gesture may be a right mouse click event or a left mouse click event.
  • the input event corresponding to the fourth operation gesture may include a button value of the combined button.
  • the button value may represent a combined character or a function corresponding to the combined button. For example, when two touch points are detected on the button "A” and the button “D” respectively, it is determined that the distance between the button “A” and the button “D” is greater than the second length threshold, then the button "A” can be determined.
  • the operation gesture corresponding to the touch operation performed on the button "D” is the fourth operation gesture, and the input event corresponding to the fourth operation gesture may include two characters "AD” or Chinese characters corresponding to "AD”. .
  • the button can be determined.
  • the touch operation performed on the “ctrl” and the button “C” is the fourth operation gesture, and the input event corresponding to the fourth operation gesture is used to indicate that the target document displayed on the display screen of the electronic device is copied. operating.
  • the following illustrates how to distinguish between the third operation gesture and the fourth operation gesture when the distance between the two touch points is less than the second length threshold.
  • determining that the distance between the two touch points is less than the second length threshold further determining between the touch start times of the two touch points
  • the time interval for example, determining the touch start time of the first touch point as the first time point according to the touch data corresponding to the touch point, determining the touch start time of the second digital analog point as the second time point, and calculating a time difference between the second time point and the first time point.
  • determining that the operation gesture associated with the two touch points is a fourth operation gesture, that is, the user performs the fourth operation gesture, And inputting the combination button; if the time difference is greater than the first time threshold, determining that the operation gesture associated with the two touch points is a third operation gesture, that is, the user performs the third operation gesture to simulate a mouse operation. Further, the relative position of the touched touch point and the touched touch point may be determined, and the input event corresponding to the third operation gesture may be determined to be a left mouse click event or a right mouse click event.
  • the touch start time of the touch point touched earlier is earlier than the touch start time of the touch point touched later, and when the touch point touched later is detected, the previous touch point can still be detected.
  • the corresponding input event is a right mouse click event; after the touch point is located on the left side of the previous touch point, the corresponding input event is a left mouse click event.
  • the number of clicks of the backward touch point may be determined according to the touch data of the backward touch point, and based on the click number, the number of mouse clicks in the corresponding input event is determined.
  • the two-finger touch operation may further include other operation gestures, corresponding to input events of other functions, for example, the operation gesture is a one-finger swipe, two fingers in the same direction or different directions, two-finger clicks, etc., which may respectively correspond to
  • the input event can control the display function, the play function, or other functions of the electronic device, for example, adjusting the display brightness, adjusting the play volume, unlocking, opening the application, paying, etc., which is not specifically limited in the embodiment of the present application.
  • the number of touch points related to the touch operation is at least three, determining whether a distance between any two adjacent touch points of the at least three touch points is less than a third length threshold, if less than The third length threshold may identify that the operation gesture corresponding to the touch operation is a fifth operation gesture such as multi-finger sliding.
  • the input event corresponding to the fifth operation gesture may be a mouse wheel event, that is, The input event can control the content displayed on the display of the electronic device to move up or down or scroll.
  • the operation gesture corresponding to the touch operation may be identified as, for example, multi-finger sliding, and the The input event corresponding to the operation gesture is used to perform scaling processing on the display screen of the display screen of the electronic device.
  • FIG. 5 illustrates yet another specific implementation for identifying an operation gesture corresponding to the touch operation.
  • a method for recognizing a movement trajectory of a touch operation is a circle, and the recognition efficiency can be improved and the calculation amount of the system in the recognition process can be reduced.
  • the method includes the following steps.
  • step S501 if the number of the touched points related to the touch operation is at least two, preferably, the number of the touched points is three, and the at least two touched points are determined according to the touch data corresponding to the touched points. a center point and determining a movement trajectory of the center point;
  • Step S502 determining a starting point, a first point, a second point, and a ending point of the moving track according to the movement trajectory of the center point;
  • Step S503 determining whether the distance between the starting point and the ending point is less than a fourth length threshold and whether the distance between the starting point and the first point is greater than a fifth length threshold;
  • Step S504 if yes, identifying an operation gesture corresponding to the touch operation as a sixth operation gesture.
  • the coordinates of the center point of each touch point may be determined according to coordinate information of each touch point.
  • the information for example, is averaged based on the coordinate information of each touch point to determine coordinate information of the center point.
  • determining a movement trajectory of the center point, and the movement trajectory of the center point may be determined based on a movement trajectory of each touch point. According to the movement trajectory of the center point, the starting point of the movement trajectory in the center point, the first point, the second point, and the ending point can be determined.
  • the first point in the moving track may be a midpoint of the moving track or a point near the midpoint of the moving track, which is not specifically limited herein.
  • the fourth length threshold it can be determined whether the distance between the starting point and the ending point of the moving point of the center point is less than the fourth length threshold. If the threshold is greater than the fourth length, it indicates that the moving track cannot form a circle, and if it is less than the fourth length threshold, further determining The distance between the starting point and the first point is greater than the fifth length threshold. If the distance is greater than the fifth length threshold, it may be determined that the operation gesture corresponding to the touch operation is an operation gesture such as a multi-finger circle.
  • the fourth length threshold may be the same as the fifth length threshold, and the fourth length threshold may also be the same as the first length threshold. Further, the coordinate information of the second point can be further determined.
  • the operation gesture is specific to the operation direction, such as multi-finger clockwise circle or multi-finger counterclockwise circle.
  • the second point may be any point between the starting point and the first point, for example, the second point is a center point of the moving track between the starting point and the center point, by which the direction of the circle can be determined, for example, If the coordinate information of the second point is located to the left of the coordinate information of the starting point, the direction is determined to be counterclockwise; if the coordinate information of the second point is located to the right of the coordinate information of the starting point, the direction is determined to be clockwise.
  • the operation gesture can be determined as a circle and the direction of the circle of the operation gesture can be calculated by calculating 4 points, which can effectively reduce the calculation amount of the system and make the system react to the calculation of the trajectory path of the entire movement trajectory. Faster.
  • the above method is also applicable to the case of drawing a circle with a single finger, or a case where each finger of the multi-finger is drawn with a circle.
  • the input event corresponding to the sixth operation gesture may control a display function, a play function, or other functions of the electronic device, for example, adjusting the display brightness, adjusting the playback volume, unlocking, and opening the application.
  • the payment and the like are not specifically limited in the embodiment of the present application.
  • the touch keyboard includes a touch panel 601 on which a button module, a processor 602, a memory 603, and a communication interface 604 are printed.
  • Touch panel 601, processor 602, memory 603, and communication interface 604 can be coupled via a communication bus.
  • the touch panel 601 can be a capacitive touch panel.
  • the touch panel can be printed with a button module, and the module in the button module can be determined according to the touch operation.
  • the touch panel 601 is capable of detecting a touch operation.
  • Processor 602 can be a general purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the above program.
  • CPU central processing unit
  • ASIC application-specific integrated circuit
  • the memory 603 can be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type that can store information and instructions.
  • ROM read-only memory
  • RAM random access memory
  • the memory 603 can exist independently and be coupled to the processor 602 via a bus. Memory 603 can also be integrated with processor 602.
  • the communication interface 604 may include a wired communication interface, such as a USB communication interface, and may also include a wireless communication interface for implementing connection communication between the touch keyboard and other electronic devices.
  • Other electronic devices may include a display screen or a computer configured with a display screen. . When the touch keyboard is connected to other electronic devices, it can be implemented as input hardware of other electronic devices.
  • the touch panel 601 is configured to: when a touch operation is detected in a button area of the touch keyboard, determine one or more touch points related to the touch operation, and record the one or more touch points corresponding to Touching data and storing the recorded touch data into the memory 603;
  • the processor 602 is configured to identify an operation gesture corresponding to the touch operation according to the number of the one or more touch points and the touch data corresponding to the one or more touch points;
  • the processor 602 is further configured to determine an input event corresponding to the operation gesture, where the input event includes a mouse input event or a keyboard input event.
  • processor 602 is further configured to:
  • a control mode of the touch keyboard including a keyboard control mode, a mouse control mode, and a compatible control mode
  • the determining an input event corresponding to the operation gesture includes:
  • An input event corresponding to the operation gesture is determined according to a control mode of the touch keyboard.
  • processor 602 is further configured to:
  • processor 602 is further configured to:
  • the operation gesture corresponding to the touch operation is identified as the second operation gesture.
  • processor 602 is further configured to:
  • processor 602 is further configured to:
  • the operation gesture corresponding to the touch operation is identified as a third operation gesture
  • the operation gesture corresponding to the touch operation is identified as a fourth operation gesture.
  • processor 602 is further configured to:
  • the operation gesture corresponding to the touch operation is recognized as the fourth operation gesture, the combined key position corresponding to the touch position on the touch keyboard is triggered.
  • processor 602 is further configured to:
  • the operation gesture corresponding to the touch operation is identified as the fifth operation gesture.
  • processor 602 is further configured to:
  • the mouse wheel function is triggered to be executed.
  • processor 602 is further configured to:
  • the number of the touched points related to the touch operation is at least two, preferably, the number of the touched points is three, and the center points of the at least two touched points are determined according to the touch data corresponding to the touched points. And determining a movement trajectory of the center point;
  • the operation gesture corresponding to the touch operation is identified as the sixth operation gesture according to the coordinate information of the second point.
  • processor 602 is further configured to:
  • the operation gesture corresponding to the touch operation is the sixth operation gesture
  • parameter adjustment of the electronic device electrically connected to the touch keyboard is controlled.
  • the first point is a midpoint between the starting point and the ending point
  • the second point is any point between the starting point and the first point, where When the second point is located at the right side of the starting point, determining that the sixth operation gesture is a clockwise circle; and when the second point is located to the left of the starting point, determining that the sixth operation gesture is Draw a circle counterclockwise.
  • FIG. 7 is a functional block diagram of a touch keyboard provided by an embodiment of the present application.
  • the touch keyboard includes an input unit 701, a processing unit 702, an output unit 703;
  • the input unit 701 is configured to: when a touch operation is detected in a button area of the touch keyboard, determine one or more touch points related to the touch operation, and record a touch corresponding to the one or more touch points data;
  • the processing unit 702 is configured to identify an operation gesture corresponding to the touch operation according to the number of the one or more touch points and the touch data corresponding to the one or more touch points;
  • the processing unit 702 is further configured to determine an input event corresponding to the operation gesture, where the input event includes a mouse input event or a keyboard input event.
  • the output unit 703 is configured to transmit the input event to the electronic device connected by the touch keyboard.
  • processing unit 702 is further configured to:
  • the control mode includes a keyboard control mode, and a mouse control System mode and compatible control mode;
  • the determining an input event corresponding to the operation gesture includes:
  • An input event corresponding to the operation gesture is determined according to a control mode of the touch keyboard.
  • processing unit 702 is further configured to:
  • processing unit 702 is further configured to:
  • the operation gesture corresponding to the touch operation is identified as the second operation gesture.
  • processing unit 702 is further configured to:
  • processing unit 702 is further configured to:
  • the operation gesture corresponding to the touch operation is identified as a third operation gesture
  • the operation gesture corresponding to the touch operation is identified as a fourth operation gesture.
  • processing unit 702 is further configured to:
  • Triggering with the touch when the operation gesture corresponding to the touch operation is recognized as the fourth operation gesture A combination of keys on the keyboard that correspond to the touch location.
  • processing unit 702 is further configured to:
  • the operation gesture corresponding to the touch operation is identified as the fifth operation gesture.
  • processing unit 702 is further configured to:
  • the mouse wheel function is triggered to be executed.
  • processing unit 702 is further configured to:
  • the operation gesture corresponding to the touch operation is identified as the sixth operation gesture according to the coordinate information of the second point.
  • processing unit 702 is further configured to:
  • the operation gesture corresponding to the touch operation is the sixth operation gesture
  • parameter adjustment of the electronic device electrically connected to the touch keyboard is controlled.
  • the first point is a midpoint between the starting point and the ending point
  • the second point is any point between the starting point and the first point, where When the second point is located at the right side of the starting point, determining that the sixth operation gesture is a clockwise circle; and when the second point is located to the left of the starting point, determining that the sixth operation gesture is Draw a circle counterclockwise.
  • a “unit” herein may refer to an application-specific integrated circuit (ASIC), a processor and memory that executes one or more software or firmware programs, integrated logic circuits, and/or the like.
  • a device that provides the above functions.
  • the embodiment of the present application further provides a computer storage medium for storing computer software instructions for the touch keyboard, which includes a computer program for performing the foregoing method embodiments.
  • the embodiment of the present application further provides a computer program, which is stored in a computer storage medium, for performing some or all of the methods in the foregoing embodiments.
  • embodiments of the present application can be provided as a method, apparatus (device), or computer program product.
  • the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment in combination of software and hardware.
  • the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • the computer program is stored/distributed in a suitable medium, provided with other hardware or as part of the hardware, or in other distributed forms, such as over the Internet or other wired or wireless telecommunication systems.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the device is implemented in a flow or a flow chart The functions specified in a block or blocks of a flow and/or block diagram.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种触摸操作的处理方法和触摸键盘,该方法包括:当在触摸键盘的按键区域中检测到触摸操作时,确定与所述触摸操作相关的一个或多个触摸点,并记录所述一个或多个触摸点对应的触摸数据(S101);根据所述一个或多个触摸点的数量以及与所述一个或多个触摸点对应的触摸数据,识别所述触摸操作对应的操作手势(S102);确定与所述操作手势对应的输入事件,所述输入事件包括鼠标输入事件或键盘输入事件(S103)。该方法能够提高用户操作效率。

Description

触摸操作的处理方法和触摸键盘 技术领域
本申请涉及触控技术领域,具体涉及一种触摸操作的处理方法和触摸键盘。
背景技术
随着触摸技术的逐渐成熟,触摸键盘越来越广泛的被应用在电子设备上,例如,触摸键盘作为独立的物理实现的输入设备与电子设备(如计算机)连接,或者,触摸键盘以虚拟键盘的形式通过电子设备(如手机)所配置的触控显示屏实现。用户可以通过触摸键盘上的触摸按键输入字符等信息,当前如果用户想控制电子设备的显示器上所显示的光标或控件时,用户需要将手指离开触摸键盘区域以实现相应操作,例如,控制电子设备配置的鼠标等外围输入设备或者控制显示屏等来实现相应操作。然而,这种方式增加了用户的操作复杂度,用户体验度较低。
发明内容
本申请实施例公开了一种触摸操作的处理方法和触摸键盘,能够提升用户操作效率。
第一方面,本申请实施例公开了一种触摸操作的处理方法,包括:
当在触摸键盘的按键区域中检测到触摸操作时,确定与所述触摸操作相关的触摸点,并记录所述触摸点对应的触摸数据;
根据与所述触摸操作相关的触摸点的数量以及与所述触摸操作相关的触摸点中各触摸点对应的触摸数据,识别所述触摸操作对应的操作手势;
确定与所述操作手势对应的输入事件。
第二方面,本申请实施例公开了一种触摸键盘,包括功能单元,所述功能单元用于执行第一方面所示方法的部分或全部步骤。
第三方面,本申请实施例公开了一种触摸键盘,该终端包括包括处理器、存储器;所述存储器存储有可执行程序代码;所述处理器被配置为支持该触摸键盘执行第一方面提供的方法中相应的功能。存储器用于保存必要的程序指令 和数据。
第四方面,本申请实施例公开一种计算机存储介质,用于储存为上述第三方面提供的触摸键盘所用的计算机软件指令,其包含用于执行第一方面中方法所设计的程序。
本申请实施例中,当在触摸键盘的按键区域中检测到触摸操作时,确定与该触摸操作相关的一个或多个触摸点,并记录该一个或多个触摸点中各触摸点对应的触摸数据;根据所述一个或多个触摸点的数量以及与所述各触摸点对应的触摸数据,能够识别所述触摸操作对应的操作手势,进而能够确定与该操作手势对应的输入事件,其中,该输入事件包括鼠标输入事件或键盘输入事件。通过上述方式,能够使触摸键盘集成鼠标功能,从而使用户通过操作触摸键盘即可实现对与触摸键盘耦合的电子设备进行鼠标或键盘事件输入,进而提升用户操作效率,用户体验度较佳。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例公开的一种触摸操作的处理方法的流程示意图;
图2是本申请实施例涉及的一种触摸键盘的按键区域的示意图;
图3是本申请实施例公开的另一种触摸操作的处理方法的流程示意图;
图4是本申请实施例公开的又一种触摸操作的处理方法的流程示意图;
图5是本申请实施例公开的再一种触摸操作的处理方法的流程示意图;
图6是本申请实施例公开的一种触摸键盘的结构示意图;
图7是本申请实施例公开的一种触摸键盘的功能框图。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的 实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。
本申请的说明书和权利要求书及附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。首先对本申请方法实施例进行描述。
请参阅图1,图1是本申请实施例公开的一种触摸操作的处理方法的流程示意图。如图1所示,该方法至少包括以下步骤。
步骤S101,当在触摸键盘的按键区域中检测到触摸操作时,确定与所述触摸操作相关的一个或多个触摸点,并记录所述一个或多个触摸点对应的触摸数据;
在一个实施例中,当在触摸键盘的按键区域中检测到触摸操作时,确定与该触摸操作相关的一个或多个触摸点,并记录所述一个或多个触摸点对应的触摸数据。具体的,触摸键盘的按键区域可参见图2所示。其中,按键区域中可以包括功能键、字符键等。图2所示的触摸键盘的按键区域中的按键排列及包括的按键进行示例性的,本申请实施例所涉及的技术方案也适用于其他按键形式或按键排列。当然,触摸键盘上还可包括除按键区域外的其他区域,在此,本申请实施例不做具体限定。
当在触摸键盘的按键区域中检测到触摸操作时,能够确定该触摸操作相关 的一个或多个触摸点,并记录所述一个或多个触摸点中各触摸点对应的触摸数据。其中,触摸点对应的触摸数据包括但不限于:该触摸点接触触摸键盘时的时间为起始时间;该触摸点离开触摸键盘时的时间为终止时间;该触摸点的触摸时长;该触摸点的触摸次数;该触摸点在起始时间的坐标信息;该触摸点在终止时间的坐标信息;该触摸点在执行触摸操作时的实时坐标信息,并根据这些坐标信息确定该触摸点的移动轨迹,该触摸点在移动轨迹上的一点或多点的触摸压力等。
可选的,还可以在检测触摸操作之前,对当前按键区域中各按键的坐标信息进行校正,以在检测到触摸操作时,能够精准获取到与该触摸操作相关的触摸点的触摸数据。例如,可以在键盘区域内设置校正点,通过确定该校正点的坐标信息是否偏移来判断按键区域中的按键是否偏移,进而,通过该校正点的偏移量对该校正点的坐标信息进行校正,即可实现对按键区域中的按键的坐标信息进行校正。例如,可以设置校正点的坐标信息为(0,0);按键的坐标信息均是以该校正点的坐标信息为参考确定的,若校正点的坐标信息已经偏移,根据该偏移量即可校正按键的坐标信息。
步骤S102,根据所述一个或多个触摸点的数量以及与所述一个或多个触摸点对应的触摸数据,识别所述触摸操作对应的操作手势。
在一个实施例中,当记录有各触摸点对应的触摸数据后,可以根据触摸点的数量以及各触摸点对应的触摸数据,来识别该触摸操作所对应的操作手势,进而根据识别的操作手势来确定与该操作手势对应的输入事件。具体的,可以根据触摸点及其对应的触摸数据是否符合预设条件,例如,触摸数据中触摸点的移动轨迹的轨迹长度是否满足预设阈值等,来识别该触摸操作对应的操作手势,当然,识别出的操作手势仅表示触摸点的触摸数据满足预设条件的操作手势,也就是说实际的用户的操作手势与识别出的操作手势不一定相同,例如,识别出两个触摸点同时点击,用户实现中,可以用单手的两指实现,也可以用两手的各一指实现。在此不影响本申请实施例的技术方案的实施。
步骤S103,确定与所述操作手势对应的输入事件。
在一个实施例中,在识别出该触摸操作对应的操作手势后,确定与该操作手势对应的输入事件。其中,本申请实施例中所描述的输入事件可以包括键盘 输入事件,例如字符按键输入值,或者功能按键对应的功能控制事件;或者鼠标输入事件,例如针对鼠标控制光标的控制时间、鼠标点击事件等;或者,该输入事件用以控制与触摸键盘耦合的电子设备的功能,例如,控制电子设备的显示屏的显示功能或者控制电子设备的播放功能等等。在此不作具体限定。
在确定与该操作手势对应的输入事件后,可以将该输入事件传输至对应的电子设备,以实现对该电子设备进行控制。例如,如果输入事件包括按键对应的字符事件时,控制电子设备的显示屏显示该按键对应的字符;如果输入事件包括鼠标输入事件时,根据该输入事件控制电子设备的显示屏移动鼠标对应的光标,并根据输入事件中所携带的事件参数来确定光标移动的方向和距离,又或者,触摸键盘传输的输入事件用以控制电子设备的音响播放装置调节播放音量等等。
可选的,还可以根据触摸键盘当前所处的控制模式,来确定与该操作手势对应的输入事件。其中,触摸键盘的控制模式可以包括键盘控制模式、鼠标控制模式以及兼容控制模式。其中,在键盘控制模式下,触摸键盘仅输出键盘输入事件;在鼠标控制模式下,触摸键盘仅输出鼠标输入事件;在兼容模式下,触摸键盘既可以输出键盘输入事件,也可以输出鼠标输入事件,或者其他输入事件等。从而,通过控制模式的切换,能够防止用户的误操作。其中,可以通过用户的触摸操作来实现兼容控制模式切换,例如,用户连续三指点击触摸键盘三次等,进一步的,用户可以在触摸键盘的非按键区域上执行该触摸操作,以区别能够生成键盘输入事件的触摸操作。或者,可以在触摸键盘上的按键区域内设置模式切换按键等方式实现触摸键盘的模式实现,在此,本申请实施例不做具体限定。
进一步的,相同的操作手势有可能在不同的控制模式下对应的输入事件不同。例如,确定操作手势为一指点按一指点击时,在键盘控制模式下,确定该操作手势对应的输入事件包括双指分别针对的两个按键的组合按键值;在鼠标控制模式下,确定该操作手势对应的输入事件包括鼠标左键事件或鼠标右键事件等,从而通过控制模式的切换,能够防止误操作;当在兼容控制模式下,可以设置更加精细的操作手势对应不同的输入事件,例如,如操作手势为一指点按一指点击时,可以根据确定双指的起始触摸时间的时间差来区分为两个操作 手势,进而对应两个输入事件,以防止一个操作对应两个输入事件而生成的误操作。
本申请实施例中,当在触摸键盘的按键区域中检测到触摸操作时,确定与该触摸操作相关的一个或多个触摸点,并记录该一个或多个触摸点中各触摸点对应的触摸数据;根据所述一个或多个触摸点的数量以及与所述各触摸点对应的触摸数据,能够识别所述触摸操作对应的操作手势,进而能够确定与该操作手势对应的输入事件,其中,该输入事件包括鼠标输入事件或键盘输入事件。通过上述方式,能够使触摸键盘集成鼠标功能,从而使用户通过操作触摸键盘即可实现对与触摸键盘耦合的电子设备进行鼠标或键盘事件输入,进而提升用户操作效率,用户体验度较佳。
下面结合附图及上述实施例,具体说明所确定的操作手势以及确定的该操作手势对应的输入事件。
请参阅图3,图3示出了一种用于识别所述触摸操作对应的操作手势的具体实现方式。该方法包括以下步骤。
步骤S301,如果与所述触摸操作相关的触摸点的数量为一个,则根据该触摸点对应的触摸数据确定该触摸点的移动轨迹的长度,并判断该移动轨迹的长度是否大于第一长度阈值;
步骤S302,若为是,识别该触摸操作对应的操作手势为第一操作手势;
步骤S303,若为否,识别该触摸操作对应的操作手势为第二操作手势。
在一些可能的实现方式中,当在触摸键盘的按键区域检测到触摸操作,且该触摸操作相关的触摸点为一个时,可以通过判断该触摸点的移动轨迹来识别对应的操作手势。具体的,如果该触摸点的移动轨迹小于第一长度阈值,则可确定该操作手势为第一操作手势,例如,第一操作手势可以是单指点按或单指点击;如果该触摸点的移动轨迹大于第一长度,则可确定该操作手势为第二操作手势,例如,第二操作手势可以是单指滑动。进一步的,还可根据该触摸点的触摸时长来进一步判断第一操作手势为单指点按或是单指点击,具体的,若该触摸点的触摸时长大于预设时间阈值,则可确定第一操作手势为单指点按,若该触摸点的触摸时长小于预设时间阈值,则可确定第一操作手势为单指点击。
在一些可能的实现方式中,第一操作手势可以对应键盘输入事件,第二操 作手势可以对应鼠标输入事件。
具体的,当确定出该触摸操作对应的操作手势为第一操作手势时,可以根据触摸点的坐标信息确定该触摸操作针对的按键,并基于该按键的按键值确定第一操作手势对应的输入事件,该输入事件包括该触摸操作针对的按键的按键值,若该按键为字符按键,则按键值代表对应的字符,若该按键为功能按键,则按键值代表对应的功能。该输入事件体现了触摸键盘的功能,也就是说,用户通过触摸键盘来控制与触摸键盘耦合的电子设备。例如,包括了该触摸操作针对的按键的按键值的输入事件传输至电子设备后,电子设备可以基于该输入事件来实现触摸操作所针对的功能。例如,电子设备接收到第一操作手势对应的输入事件后,可以在电子设备的显示屏上显示该输入事件中包括的字符,或者,基于输入事件执行对电子设备的当前显示画面截屏等操作。
进一步的,还可以根据第一操作手势中触摸点的触摸时长的不同,将第一操作手势继续划分为两个操作手势,如点按操作手势和点击操作手势,这两个操作手势对应不同的输入事件,例如,当确定为点按一个按键“S”时,控制电子设备在显示屏上显示该按键对应的字符的大写状态,即在显示屏上显示“S”;当确定为点击一个按键“s”时,即控制电子设备在显示屏上显示小写的“s”。
当确定出该触摸操作对应的操作手势为第二操作手势时,可以确定与第二操作手势对应的输入事件为鼠标输入事件,即用户通过该触摸操作用以实现鼠标控制功能。例如,当确定该触摸操作对应的操作手势为例如单指滑动的第二操作手势时,可以基于该触摸操作的移动轨迹来控制电子设备的显示屏上的光标进行移动。例如,光标移动的轨迹与该触摸操作的移动轨迹相关,光标移动的速度与该触摸操作的移动速度相关等等。进而,用户通过在触摸键盘上执行触摸操作能够实现鼠标滑动的功能。
请参阅图4,图4示出了另一种用于识别所述触摸操作对应的操作手势的具体实现方式。该方法包括以下步骤。
步骤S401,如果与所述触摸操作相关的触摸点的数量为两个,判断所述两个触摸点之间的距离是否大于第二长度阈值;
步骤S402,若判断出所述距离小于所述第二长度阈值,判断所述两个触摸 点的触摸起始时间之间的时间间隔是否大于第一时间阈值;
步骤S403,若判断出所述时间间隔大于所述第一时间阈值,识别所述触摸操作对应的操作手势为第三操作手势;
步骤S404,若判断出所述距离大于所述第二长度阈值,或者判断出所述时间间隔小于所述第一时间阈值,识别所述触摸操作对应的操作手势为第四操作手势。
在一些可能的实现方式中,如果与该触摸操作相关的触摸点的数量为两个,则根据这两个触摸点各自对应的触摸数据,来识别该触摸操作对应的操作手势。这里,双指触摸操作是指能够在一个时间点同时在触摸键盘上检测到两个触摸点,两个触摸点的触摸起始时间可以相同,也可以不同,在此不作具体限定。具体的,可以通过两个触摸点的起始坐标信息,来判断两个触摸点之间的距离是否小于第二长度阈值;若判断出该距离小于第二长度阈值时,可以进一步判断两个触摸点的触摸起始时间之间的时间间隔是否大于第一时间阈值,若确定该时间间隔大于第一时间阈值,则可识别该触摸操作对应的操作手势为例如一指点按一指点击的第三操作手势。若判断出两个触摸点之间的距离大于第二长度阈值,或者若判断出两个触摸点之间的距离小于第二长度阈值且判断出两个触摸点的触摸起始时间之间的时间间隔小于第一时间阈值,则识别该触摸操作对应的操作手势为例如双指同时点击或点按的第四操作手势。
在一些可能的实现方式中,第三操作手势对应的输入事件可以是鼠标右键点击事件或者鼠标左键点击事件等。第四操作手势对应的输入事件可以包括组合按键的按键值。其中,该按键值可以代表组合字符,也可以代表组合按键对应的功能。例如,当分别在按键“A”和按键“D”上检测到两个触摸点时,判断按键“A”和按键“D”之间的距离大于第二长度阈值,则可确定在按键“A”和按键“D”上执行的触摸操作对应的操作手势为第四操作手势,则可以在第四操作手势对应的输入事件中包括“AD”两个字符,或者“AD”对应的汉字字符等。又例如,当分别在按键“ctrl”和按键“C”上检测到两个触摸点时,判断出按键“ctrl”和按键“C”之间的距离大于第二长度阈值,则可确定在按键“ctrl”和按键“C”上执行的触摸操作为第四操作手势,则第四操作手势对应的输入事件用以表示对电子设备的显示屏上显示的目标文档进行复制 操作。
下面举例说明当两个触摸点之间的距离小于第二长度阈值时,如何区分识别第三操作手势和第四操作手势。
当分别在按键“A”和按键“S”上检测到两个触摸点时,判断两个触摸点之间的距离小于第二长度阈值,则进一步判断两个触摸点的触摸起始时间之间的时间间隔,例如,根据触摸点对应的触摸数据确定第一个触摸点的触摸起始时间为第一时间点,确定第二个数模点的触摸起始时间为第二时间点,计算第二时间点与第一时间点之间的时间差,如果该时间差小于第一时间阈值,则确定与这两个触摸点相关的操作手势为第四操作手势,即用户执行该第四操作手势,用以输入组合按键;如果该时间差大于第一时间阈值,则确定与这两个触摸点相关的操作手势为第三操作手势,即用户执行该第三操作手势用以模拟鼠标操作。进一步的,可以判断在先触摸的触摸点与在后触摸的触摸点的相对位置,可以确定第三操作手势对应的输入事件为鼠标左键点击事件或者鼠标右键点击事件等。其中,在先触摸的触摸点的触摸起始时间早于在后触摸的触摸点的触摸起始时间,并且,在检测到在后触摸的触摸点时,仍能够检测到该在先触摸点。例如,在后触摸点位于在先触摸点的右侧,则对应的输入事件为鼠标右键点击事件;在后触摸点位于在先触摸点的左侧,则对应的输入事件为鼠标左键点击事件。进一步的,当在先触摸点处于点按状态时,可以根据在后触摸点的触摸数据确定在后触摸点的点击次数,并基于该点击次数,确定对应的输入事件中鼠标点击次数。
当然,双指触摸操作还可以包括其他操作手势,对应其他功能的输入事件,例如,操作手势为一指点按一指滑动、双指同一方向或不同方向滑动、双指点击等、其可各自对应输入事件,该输入事件可以控制电子设备的显示功能、播放功能或其他功能,例如,调节显示亮度、调节播放音量、解锁、打开应用程序、支付等,在此本申请实施例不做具体限定。
可选的,如果与该触摸操作相关的触摸点的数量为至少三个时,则判断该至少三个触摸点中任意两个相邻触摸点之间的距离是否小于第三长度阈值,如果小于第三长度阈值,则可识别该触摸操作对应的操作手势为例如多指并拢滑动的第五操作手势。该第五操作手势对应的输入事件可以是鼠标滚轮事件,即 该输入事件能够控制电子设备的显示屏显示的内容进行上下移动或滚动。当判断出该至少三个触摸点中存在至少一组相邻触摸点之间的距离大于第三长度阈值时,则可识别该触摸操作对应的操作手势为例如多指分开滑动,则可以确定该操作手势对应的输入事件用于对电子设备的显示屏的显示画面进行缩放处理等。
请参阅图5,图5示出了又一种用于识别所述触摸操作对应的操作手势的具体实现方式。具体的,识别触摸操作的移动轨迹为圆的一种方法,通过这种方法能够提高识别效率,降低识别过程中系统的计算量。该方法包括以下步骤。
步骤S501,如果与所述触摸操作相关的触摸点的数量为至少两个时,优选地,触摸点的数量为三个,根据各触摸点对应的触摸数据,确定所述至少两个触摸点的中心点,并确定所述中心点的移动轨迹;
步骤S502,根据所述中心点的移动轨迹,确定所述移动轨迹的起始点、第一点、第二点以及终止点;
步骤S503,判断所述起始点与所述终止点之间的距离是否小于第四长度阈值且所述起始点与所述第一点之间的距离是否大于第五长度阈值;
步骤S504,若为是,识别所述触摸操作对应的操作手势为第六操作手势。
在一些可能的实现方式中,如果与该触摸操作相关的触摸点的数量为至少两个时,即执行多指触摸操作时,可以根据各触摸点的坐标信息确定各触摸点的中心点的坐标信息,例如,根据各触摸点的坐标信息取平均值以确定中心点的坐标信息。并确定该中心点的移动轨迹,该中心点的移动轨迹可以基于各触摸点的移动轨迹确定。根据该中心点的移动轨迹,可以确定该中心点中移动轨迹的起始点,第一点、第二点和终止点。其中,移动轨迹中的第一点可以是移动轨迹的中点,或者移动轨迹的中点附近的某一点,在此不作具体限定。可以首先判断中心点的移动轨迹的起始点与终止点的距离是否小于第四长度阈值,如果大于第四长度阈值,则表明该移动轨迹无法构成一个圆,如果小于第四长度阈值,则进一步判断起始点与第一点之间距离是否大于第五长度阈值,如果大于第五长度阈值,则可以确定该触摸操作对应的操作手势为例如多指画圆的操作手势。第四长度阈值可与第五长度阈值相同,并且,第四长度阈值还可以与第一长度阈值相同。进一步的,可以根据第二点的坐标信息,来进一步判断 该操作手势具体的操作方向,例如多指顺时针画圆或多指逆时针画圆。其中,第二点可以是起始点至第一点之间的任意一点,例如,第二点为起始点至中心点之间的移动轨迹的中心点,通过该点可以确定画圆方向,例如,若第二点的坐标信息位于起始点的坐标信息的左侧时,则确定方向为逆时针;若第二点的坐标信息位于起始点的坐标信息的右侧时,则确定方向为顺时针。
通过上述方式,可以通过计算4个点即可确定操作手势为画圆且操作手势的画圆方向,相较于计算整个移动轨迹的轨迹路径而言,能够有效降低系统的计算量,使得系统反应更加快速。
当然,上述方法同样适用与单指画圆,或者,多指中每个手指各自画圆的情形。
当确定上述操作手势为第六操作手势时,该第六操作手势对应的输入事件可以控制电子设备的显示功能、播放功能或其他功能,例如,调节显示亮度、调节播放音量、解锁、打开应用程序、支付等,在此本申请实施例不做具体限定。
下面介绍用以执行上述方法的装置实施例。
如图6所示,该触摸键盘包括触摸面板601,在触摸面板601上印刷有按键模块,处理器602、存储器603和通信接口604。触摸面板601、处理器602、存储器603和通信接口604可以通过通信总线进行耦合。
其中,触摸面板601可以是电容式触摸面板,触摸面板上能够印刷有按键模块,能够根据触摸操作确定所针对的按键模块中的模块。触摸面板601能够检测到触摸操作。
处理器602可以是通用中央处理器(CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制以上方案程序执行的集成电路。
存储器603可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(Electrically Erasable Programmable Read-Only  Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器603可以是独立存在,通过总线与处理器602相连接。存储器603也可以和处理器602集成在一起。
通信接口604可以包括有线通信接口,如USB通信接口;也可以包括无线通信接口,用以实现触摸键盘与其他电子设备的连接通信,其他电子设备可以包括显示屏,或者配置有显示屏的计算机等。该触摸键盘连接其他电子设备后,可以作为其他电子设备的输入硬件实现。
具体的,所述触摸面板601用于当在触摸键盘的按键区域中检测到触摸操作时,确定与所述触摸操作相关的一个或多个触摸点,记录所述一个或多个触摸点对应的触摸数据,并将记录的所述触摸数据存储至所述存储器603中;
所述处理器602用于根据所述一个或多个触摸点的数量以及与所述一个或多个触摸点对应的触摸数据,识别所述触摸操作对应的操作手势;
所述处理器602还用于确定与所述操作手势对应的输入事件,所述输入事件包括鼠标输入事件或键盘输入事件。
可选的,所述处理器602还用于:
通过所述触摸键盘确定所述触摸键盘的控制模式,所述控制模式包括键盘控制模式、鼠标控制模式以及兼容控制模式;
所述确定与所述操作手势对应的输入事件,包括:
根据所述触摸键盘的控制模式,确定与所述操作手势对应的输入事件。
可选的,所述处理器602还用于:
当通过所述触摸键盘在所述触摸键盘的非按键区域中检测到模式切换操作时,根据所述模式切换操作切换所述触摸键盘的控制模式。
可选的,所述处理器602还用于:
如果与所述触摸操作相关的触摸点的数量为一个,判断所述触摸点的移动轨迹的长度是否大于第一长度阈值;
若为是,识别所述触摸操作对应的操作手势为第一操作手势;
若为否,识别所述触摸操作对应的操作手势为第二操作手势。
可选的,所述处理器602还用于:
当识别所述触摸操作对应的操作手势为第一操作手势时,控制与所述触摸键盘电连接的显示屏上的光标进行移动;
当识别所述触摸操作对应的操作手势为第二操作手势时,触发与所述触摸键盘上与触摸位置对应的键位。
可选的,所述处理器602还用于:
如果与所述触摸操作相关的触摸点的数量为两个,判断所述两个触摸点之间的距离是否大于第二长度阈值;
若判断出所述距离小于所述第二长度阈值,判断所述两个触摸点的触摸起始时间之间的时间间隔是否大于第一时间阈值;
若判断出所述时间间隔大于所述第一时间阈值,识别所述触摸操作对应的操作手势为第三操作手势;
若判断出所述距离大于所述第二长度阈值,或者判断出所述时间间隔小于所述第一时间阈值,识别所述触摸操作对应的操作手势为第四操作手势。
可选的,所述处理器602还用于:
当识别所述触摸操作对应的操作手势为第三操作手势时,触发执行鼠标按键功能;
当识别所述触摸操作对应的操作手势为第四操作手势时,触发与所述触摸键盘上与触摸位置对应的组合键位。
可选的,所述处理器602还用于:
如果与所述触摸操作相关的触摸点的数量为至少三个时,判断所述至少两个触摸点中任意两个相邻触摸点之间的距离是否小于第三长度阈值;
若判断出小于所述第三长度阈值,识别所述触摸操作对应的操作手势为第五操作手势。
可选的,所述处理器602还用于:
当别所述触摸操作对应的操作手势为第五操作手势时,触发执行鼠标滚轮功能。
可选的,所述处理器602还用于:
如果与所述触摸操作相关的触摸点的数量为至少两个时,优选地,触摸点的数量为三个,根据各触摸点对应的触摸数据,确定所述至少两个触摸点的中心点,并确定所述中心点的移动轨迹;
根据所述中心点的移动轨迹,确定所述移动轨迹的起始点、第一点、第二点以及终止点;
判断所述起始点与所述终止点之间的距离是否小于第四长度阈值且所述起始点与所述第一点之间的距离是否大于第五长度阈值;
若为是,根据所述第二点的坐标信息识别所述触摸操作对应的操作手势为第六操作手势。
可选的,所述处理器602还用于:
当识别所述触摸操作对应的操作手势为第六操作手势时,控制与所述触摸键盘电连接的电子装置的参数调节。
可选的,所述第一点为所述起始点与所述终止点之间的中点,所述第二点为所述起始点与所述第一点之间的任意一点,其中,当所述第二点位于所述起始点右侧时,判断所述第六操作手势为顺时针画圆;当所述第二点位于所述起始点左侧时,判断所述第六操作手势为逆时针画圆。
请参阅图7,图7是本申请实施例提供的一种触摸键盘的功能框图。如图7所示,该触摸键盘包括输入单元701,处理单元702,输出单元703;
其中,输入单元701,用于当在触摸键盘的按键区域中检测到触摸操作时,确定与所述触摸操作相关的一个或多个触摸点,并记录所述一个或多个触摸点对应的触摸数据;
处理单元702,用于根据所述一个或多个触摸点的数量以及与所述一个或多个触摸点对应的触摸数据,识别所述触摸操作对应的操作手势;
处理单元702,还用于确定与所述操作手势对应的输入事件,所述输入事件包括鼠标输入事件或键盘输入事件。
输出单元703,用于将所述输入事件传输至于所述触摸键盘连接的电子设备中。
可选的,所述处理单元702还用于:
确定所述触摸键盘的控制模式,所述控制模式包括键盘控制模式、鼠标控 制模式以及兼容控制模式;
所述确定与所述操作手势对应的输入事件,包括:
根据所述触摸键盘的控制模式,确定与所述操作手势对应的输入事件。
可选的,所述处理单元702还用于:
当在所述触摸键盘的非按键区域中检测到模式切换操作时,根据所述模式切换操作切换所述触摸键盘的控制模式。
可选的,所述处理单元702还用于:
如果与所述触摸操作相关的触摸点的数量为一个,判断所述触摸点的移动轨迹的长度是否大于第一长度阈值;
若为是,识别所述触摸操作对应的操作手势为第一操作手势;
若为否,识别所述触摸操作对应的操作手势为第二操作手势。
可选的,所述处理单元702还用于:
当识别所述触摸操作对应的操作手势为第一操作手势时,控制与所述触摸键盘电连接的显示屏上的光标进行移动;
当识别所述触摸操作对应的操作手势为第二操作手势时,触发与所述触摸键盘上与触摸位置对应的键位。
可选的,所述处理单元702还用于:
如果与所述触摸操作相关的触摸点的数量为两个,判断所述两个触摸点之间的距离是否大于第二长度阈值;
若判断出所述距离小于所述第二长度阈值,判断所述两个触摸点的触摸起始时间之间的时间间隔是否大于第一时间阈值;
若判断出所述时间间隔大于所述第一时间阈值,识别所述触摸操作对应的操作手势为第三操作手势;
若判断出所述距离大于所述第二长度阈值,或者判断出所述时间间隔小于所述第一时间阈值,识别所述触摸操作对应的操作手势为第四操作手势。
可选的,所述处理单元702还用于:
当识别所述触摸操作对应的操作手势为第三操作手势时,触发执行鼠标按键功能;
当识别所述触摸操作对应的操作手势为第四操作手势时,触发与所述触摸 键盘上与触摸位置对应的组合键位。
可选的,所述处理单元702还用于:
如果与所述触摸操作相关的触摸点的数量为至少两个时,判断所述至少两个触摸点中任意两个相邻触摸点之间的距离是否小于第三长度阈值;
若判断出小于所述第三长度阈值,识别所述触摸操作对应的操作手势为第五操作手势。
可选的,所述处理单元702还用于:
当别所述触摸操作对应的操作手势为第五操作手势时,触发执行鼠标滚轮功能。
可选的,所述处理单元702还用于:
如果与所述触摸操作相关的触摸点的数量为至少两个时,根据各触摸点对应的触摸数据,确定所述至少两个触摸点的中心点,并确定所述中心点的移动轨迹;
根据所述中心点的移动轨迹,确定所述移动轨迹的起始点、第一点、第二点以及终止点;
判断所述起始点与所述终止点之间的距离是否小于第四长度阈值且所述起始点与所述第一点之间的距离是否大于第五长度阈值;
若为是,根据所述第二点的坐标信息识别所述触摸操作对应的操作手势为第六操作手势。
可选的,所述处理单元702还用于:
当识别所述触摸操作对应的操作手势为第六操作手势时,控制与所述触摸键盘电连接的电子装置的参数调节。
可选的,所述第一点为所述起始点与所述终止点之间的中点,所述第二点为所述起始点与所述第一点之间的任意一点,其中,当所述第二点位于所述起始点右侧时,判断所述第六操作手势为顺时针画圆;当所述第二点位于所述起始点左侧时,判断所述第六操作手势为逆时针画圆。
参照以上实施例,终端是以单元的形式来呈现。这里的“单元”可以指特定应用集成电路(application-specific integrated circuit,ASIC),执行一个或多个软件或固件程序的处理器和存储器,集成逻辑电路,和/或其他可 以提供上述功能的器件。
本申请实施例还提供了一种计算机存储介质,用于储存为上述触摸键盘所用的计算机软件指令,其包含用于执行上述方法实施例所涉及的计算机程序。
本申请实施例还提供了一种计算机程序,其存储在计算机存储介质中,用以执行上述实施例中部分或全部方法。
尽管在此结合各实施例对本申请进行了描述,然而,在实施所要求保护的本申请过程中,本领域技术人员通过查看附图、公开内容、以及所附权利要求书,可理解并实现公开实施例的其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其他单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。
本领域技术人员应明白,本申请的实施例可提供为方法、装置(设备)、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机程序存储/分布在合适的介质中,与其它硬件一起提供或作为硬件的一部分,也可以采用其他分布形式,如通过Internet或其它有线或无线电信系统。
本申请是参照本申请实施例的方法、装置(设备)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个 流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管结合具体特征及其实施例对本申请进行了描述,显而易见的,在不脱离本申请的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本申请的示例性说明,且视为已覆盖本申请范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。

Claims (25)

  1. 一种触摸操作的处理方法,其特征在于,包括:
    当在触摸键盘的按键区域中检测到触摸操作时,确定与所述触摸操作相关的一个或多个触摸点,并记录所述一个或多个触摸点对应的触摸数据;
    根据所述一个或多个触摸点的数量以及与所述一个或多个触摸点对应的触摸数据,识别所述触摸操作对应的操作手势;
    确定与所述操作手势对应的输入事件,所述输入事件包括鼠标输入事件或键盘输入事件。
  2. 如权利要求1所述方法,其特征在于,所述确定与所述操作手势对应的控制事件之前,所述方法还包括:
    确定所述触摸键盘的控制模式,所述控制模式包括键盘控制模式、鼠标控制模式以及兼容控制模式;
    所述确定与所述操作手势对应的输入事件,包括:
    根据所述触摸键盘的控制模式,确定与所述操作手势对应的输入事件。
  3. 如权利要求2所述方法,其特征在于,所述方法还包括:
    当在所述触摸键盘的非按键区域中检测到模式切换操作时,根据所述模式切换操作切换所述触摸键盘的控制模式。
  4. 如权利要求1-3任一项所述方法,其特征在于,所述根据所述一个或多个触摸点的数量以及与所述一个或多个触摸点对应的触摸数据,识别所述触摸操作对应的操作手势,包括:
    如果与所述触摸操作相关的触摸点的数量为一个,判断所述触摸点的移动轨迹的长度是否大于第一长度阈值;
    若为是,识别所述触摸操作对应的操作手势为第一操作手势;
    若为否,识别所述触摸操作对应的操作手势为第二操作手势。
  5. 如权利要求4所述方法,其特征在于,还包括:
    当识别所述触摸操作对应的操作手势为第一操作手势时,控制与所述触摸键盘电连接的显示屏上的光标进行移动;
    当识别所述触摸操作对应的操作手势为第二操作手势时,触发与所述触摸键盘上与触摸位置对应的键位。
  6. 如权利要求1-3任一项所述方法,其特征在于,所述根据所述一个或多个触摸点的数量以及与所述一个或多个触摸点对应的触摸数据,识别所述触摸操作对应的操作手势,包括:
    如果与所述触摸操作相关的触摸点的数量为两个,判断所述两个触摸点之间的距离是否大于第二长度阈值;
    若判断出所述距离小于所述第二长度阈值,判断所述两个触摸点的触摸起始时间之间的时间间隔是否大于第一时间阈值;
    若判断出所述时间间隔大于所述第一时间阈值,识别所述触摸操作对应的操作手势为第三操作手势;
    若判断出所述距离大于所述第二长度阈值,或者判断出所述时间间隔小于所述第一时间阈值,识别所述触摸操作对应的操作手势为第四操作手势。
  7. 如权利要求6所述方法,其特征在于,还包括:
    当识别所述触摸操作对应的操作手势为第三操作手势时,触发执行鼠标按键功能;
    当识别所述触摸操作对应的操作手势为第四操作手势时,触发与所述触摸键盘上与触摸位置对应的组合键位。
  8. 如权利要求1-3任一项所述方法,其特征在于,所述根据所述一个或多个触摸点的数量以及与所述一个或多个触摸点对应的触摸数据,识别所述触摸操作对应的操作手势,包括:
    如果与所述触摸操作相关的触摸点的数量为至少三个时,判断所述至少三个触摸点中任意两个相邻触摸点之间的距离是否小于第三长度阈值;
    若判断出小于所述第三长度阈值,识别所述触摸操作对应的操作手势为第五操作手势。
  9. 如权利要求8所述方法,其特征在于,还包括:
    当别所述触摸操作对应的操作手势为第五操作手势时,触发执行鼠标滚轮功能。
  10. 如权利要求1-3任一项所述方法,其特征在于,根据所述一个或多个触摸点的数量以及与所述一个或多个触摸点对应的触摸数据,识别所述触摸操作对应的操作手势,包括:
    如果与所述触摸操作相关的触摸点的数量为至少两个时,根据各触摸点对应的触摸数据,确定所述至少两个触摸点的中心点,并确定所述中心点的移动轨迹;
    根据所述中心点的移动轨迹,确定所述移动轨迹的起始点、第一点、第二点以及终止点;
    判断所述起始点与所述终止点之间的距离是否小于第四长度阈值且所述起始点与所述第一点之间的距离是否大于第五长度阈值;
    若为是,根据所述第二点的坐标信息识别所述触摸操作对应的操作手势为第六操作手势。
  11. 如权利要求10所述方法,其特征在于,还包括:
    当识别所述触摸操作对应的操作手势为第六操作手势时,控制与所述触摸键盘电连接的电子装置的参数调节。
  12. 如权利要求10所述方法,其特征在于,所述第一点为所述起始点与所述终止点之间的中点,所述第二点为所述起始点与所述第一点之间的任意一点,其中,当所述第二点位于所述起始点右侧时,判断所述第六操作手势为顺时针画圆;当所述第二点位于所述起始点左侧时,判断所述第六操作手势为逆时针画圆。
  13. 一种触摸键盘,其特征在于,包括:触摸面板、存储器和处理器,所述触摸面板、所述存储器和所述处理器耦合;
    其中,所述触摸面板用于当在触摸键盘的按键区域中检测到触摸操作时,确定与所述触摸操作相关的一个或多个触摸点,记录所述一个或多个触摸点对应的触摸数据,并将记录的所述触摸数据存储至所述存储器中;
    所述处理器用于根据所述一个或多个触摸点的数量以及与所述一个或多个触摸点对应的触摸数据,识别所述触摸操作对应的操作手势;
    所述处理器还用于确定与所述操作手势对应的输入事件,所述输入事件包括鼠标输入事件或键盘输入事件。
  14. 如权利要求13所述触摸键盘,其特征在于,所述处理器还用于:
    通过所述触摸键盘确定所述触摸键盘的控制模式,所述控制模式包括键盘 控制模式、鼠标控制模式以及兼容控制模式;
    所述确定与所述操作手势对应的输入事件,包括:
    根据所述触摸键盘的控制模式,确定与所述操作手势对应的输入事件。
  15. 如权利要求14所述触摸键盘,其特征在于,所述处理器还用于:
    当通过所述触摸键盘在所述触摸键盘的非按键区域中检测到模式切换操作时,根据所述模式切换操作切换所述触摸键盘的控制模式。
  16. 如权利要求13-15任一项所述触摸键盘,其特征在于,所述处理器还用于:
    如果与所述触摸操作相关的触摸点的数量为一个,判断所述触摸点的移动轨迹的长度是否大于第一长度阈值;
    若为是,识别所述触摸操作对应的操作手势为第一操作手势;
    若为否,识别所述触摸操作对应的操作手势为第二操作手势。
  17. 如权利要求16所述触摸键盘,其特征在于,所述处理器还用于:
    当识别所述触摸操作对应的操作手势为第一操作手势时,控制与所述触摸键盘电连接的显示屏上的光标进行移动;
    当识别所述触摸操作对应的操作手势为第二操作手势时,触发与所述触摸键盘上与触摸位置对应的键位。
  18. 如权利要求13-15任一项所述触摸键盘,其特征在于,所述处理器还用于:
    如果与所述触摸操作相关的触摸点的数量为两个,判断所述两个触摸点之间的距离是否大于第二长度阈值;
    若判断出所述距离小于所述第二长度阈值,判断所述两个触摸点的触摸起始时间之间的时间间隔是否大于第一时间阈值;
    若判断出所述时间间隔大于所述第一时间阈值,识别所述触摸操作对应的操作手势为第三操作手势;
    若判断出所述距离大于所述第二长度阈值,或者判断出所述时间间隔小于所述第一时间阈值,识别所述触摸操作对应的操作手势为第四操作手势。
  19. 如权利要求18所述触摸键盘,其特征在于,所述处理器还用于:
    当识别所述触摸操作对应的操作手势为第三操作手势时,触发执行鼠标按 键功能;
    当识别所述触摸操作对应的操作手势为第四操作手势时,触发与所述触摸键盘上与触摸位置对应的组合键位。
  20. 如权利要求13-15任一项所述触摸键盘,其特征在于,所述处理器还用于:
    如果与所述触摸操作相关的触摸点的数量为至少两个时,判断所述至少两个触摸点中任意两个相邻触摸点之间的距离是否小于第三长度阈值;
    若判断出小于所述第三长度阈值,识别所述触摸操作对应的操作手势为第五操作手势。
  21. 如权利要求20所述触摸键盘,其特征在于,所述处理器还用于:
    当别所述触摸操作对应的操作手势为第五操作手势时,触发执行鼠标滚轮功能。
  22. 如权利要求13-15任一项所述触摸键盘,其特征在于,所述处理器还用于:
    如果与所述触摸操作相关的触摸点的数量为至少两个时,根据各触摸点对应的触摸数据,确定所述至少两个触摸点的中心点,并确定所述中心点的移动轨迹;
    根据所述中心点的移动轨迹,确定所述移动轨迹的起始点、第一点、第二点以及终止点;
    判断所述起始点与所述终止点之间的距离是否小于第四长度阈值且所述起始点与所述第一点之间的距离是否大于第五长度阈值;
    若为是,根据所述第二点的坐标信息识别所述触摸操作对应的操作手势为第六操作手势。
  23. 如权利要求22所述触摸键盘,其特征在于,所述处理器还用于:
    当识别所述触摸操作对应的操作手势为第六操作手势时,控制与所述触摸键盘电连接的电子装置的参数调节。
  24. 如权利要求22所述触摸键盘,其特征在于,所述第一点为所述起始点与所述终止点之间的中点,所述第二点为起始点与所述第一点之间的任意一点,其中,当所述第二点位于所述起始点右侧时,判断所述第六操作手势为顺时针 画圆;当所述第二点位于所述起始点左侧时,判断所述第六操作手势为逆时针画圆。
  25. 一种触摸键盘,其特征在于,所述触摸键盘包括功能单元,所述功能单元用于执行如权利要求1-12任一项所述方法。
PCT/CN2017/086241 2017-05-27 2017-05-27 触摸操作的处理方法和触摸键盘 WO2018218392A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780004628.0A CN108475126A (zh) 2017-05-27 2017-05-27 触摸操作的处理方法和触摸键盘
PCT/CN2017/086241 WO2018218392A1 (zh) 2017-05-27 2017-05-27 触摸操作的处理方法和触摸键盘

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/086241 WO2018218392A1 (zh) 2017-05-27 2017-05-27 触摸操作的处理方法和触摸键盘

Publications (1)

Publication Number Publication Date
WO2018218392A1 true WO2018218392A1 (zh) 2018-12-06

Family

ID=63265971

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/086241 WO2018218392A1 (zh) 2017-05-27 2017-05-27 触摸操作的处理方法和触摸键盘

Country Status (2)

Country Link
CN (1) CN108475126A (zh)
WO (1) WO2018218392A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109521908B (zh) * 2018-11-28 2021-12-24 广州朗国电子科技有限公司 智能白板单指与多指触摸模式的切换方法
CN109976652B (zh) * 2019-02-02 2021-07-16 联想(北京)有限公司 信息处理方法及电子设备
CN109976553A (zh) * 2019-04-26 2019-07-05 广州视源电子科技股份有限公司 基于键盘的操作处理方法、装置、设备及介质
CN114115566B (zh) * 2020-08-25 2024-06-25 苏州泛普科技股份有限公司 多功能物联网的控制方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080316183A1 (en) * 2007-06-22 2008-12-25 Apple Inc. Swipe gestures for touch screen keyboards
CN102323875A (zh) * 2011-10-26 2012-01-18 中国人民解放军国防科学技术大学 基于鼠标事件的多点触摸手势交互方法及中间件
CN102426491A (zh) * 2011-05-12 2012-04-25 北京汇冠新技术股份有限公司 一种用于触摸屏的多点触控实现方法及系统
CN104205033A (zh) * 2012-03-20 2014-12-10 株式会社劳尼克斯 基于触摸的输入控制方法

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102331872A (zh) * 2011-05-30 2012-01-25 广州视睿电子科技有限公司 在触摸屏上实现鼠标中键效果的方法及装置
CN103324348B (zh) * 2013-06-28 2016-06-29 华南理工大学 一种基于智能移动终端的Windows桌面控制方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080316183A1 (en) * 2007-06-22 2008-12-25 Apple Inc. Swipe gestures for touch screen keyboards
CN102426491A (zh) * 2011-05-12 2012-04-25 北京汇冠新技术股份有限公司 一种用于触摸屏的多点触控实现方法及系统
CN102323875A (zh) * 2011-10-26 2012-01-18 中国人民解放军国防科学技术大学 基于鼠标事件的多点触摸手势交互方法及中间件
CN104205033A (zh) * 2012-03-20 2014-12-10 株式会社劳尼克斯 基于触摸的输入控制方法

Also Published As

Publication number Publication date
CN108475126A (zh) 2018-08-31

Similar Documents

Publication Publication Date Title
US11635888B2 (en) Character recognition on a computing device
CN107193479B (zh) 信息处理方法、装置、电子设备及存储介质
CN105824559B (zh) 一种误触识别及处理方法和电子设备
EP2631766B1 (en) Method and apparatus for moving contents in terminal
TWI514248B (zh) 防止誤觸發邊緣滑動手勢之方法及手勢觸發方法
JP5730667B2 (ja) デュアルスクリーン上のユーザジェスチャのための方法及びデュアルスクリーンデバイス
US8970503B2 (en) Gestures for devices having one or more touch sensitive surfaces
EP1774429B1 (en) Gestures for touch sensitive input devices
US9696849B1 (en) Method and system for trackpad input error mitigation
WO2018196699A1 (zh) 一种指纹识别区域的显示方法和移动终端
US8164575B2 (en) Method for identifying a single tap, double taps and a drag and a controller for a touch device employing the method
US20120212438A1 (en) Methods and apparatuses for facilitating interaction with touch screen apparatuses
US20110175826A1 (en) Automatically Displaying and Hiding an On-screen Keyboard
US20120032903A1 (en) Information processing apparatus, information processing method, and computer program
WO2018218392A1 (zh) 触摸操作的处理方法和触摸键盘
WO2015131675A1 (zh) 滑动断线补偿方法、电子设备和计算机存储介质
US20090283341A1 (en) Input device and control method thereof
US9507515B2 (en) System and method for data selection by means of a touch-sensitive surface
TWI354223B (zh)
EP3283941B1 (en) Avoiding accidental cursor movement when contacting a surface of a trackpad
US20150091803A1 (en) Multi-touch input method for touch input device
TW201039199A (en) Multi-touch pad control method
US20140210732A1 (en) Control Method of Touch Control Device
US20210048937A1 (en) Mobile Device and Method for Improving the Reliability of Touches on Touchscreen
WO2018209464A1 (zh) 一种联系人列表控制方法和终端

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: 17911708

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17911708

Country of ref document: EP

Kind code of ref document: A1