WO2016155490A1 - 触摸操作区域长按操作的识别方法及装置 - Google Patents

触摸操作区域长按操作的识别方法及装置 Download PDF

Info

Publication number
WO2016155490A1
WO2016155490A1 PCT/CN2016/076392 CN2016076392W WO2016155490A1 WO 2016155490 A1 WO2016155490 A1 WO 2016155490A1 CN 2016076392 W CN2016076392 W CN 2016076392W WO 2016155490 A1 WO2016155490 A1 WO 2016155490A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch operation
location information
acquired
current location
long
Prior art date
Application number
PCT/CN2016/076392
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 努比亚技术有限公司
Publication of WO2016155490A1 publication Critical patent/WO2016155490A1/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/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

Definitions

  • the present invention relates to the field of recognition technology for long-press operation in a touch operation area, and more particularly to a method and apparatus for recognizing a long-press operation in a touch operation area.
  • mobile phones and other mobile terminals have more and more functions.
  • Most of the entertainment functions that can be realized on computers can be realized on mobile terminals. People can watch movies and play games on mobile terminals. Browse web pages, video chats, and more.
  • mobile terminals tend to be more and more large-screen development.
  • the size of mobile terminals cannot be increased indefinitely, which requires full use of the external dimensions of mobile terminals to increase The utilization of the screen, so there is a narrow border or even a borderless mobile terminal.
  • the narrow-frame or borderless mobile terminal fully utilizes the external size of the mobile terminal, greatly expands the screen size of the mobile terminal, satisfies the user's demand for a large screen, and makes the appearance of the mobile terminal more beautiful.
  • the related art narrow-border or borderless mobile terminal recognizes long-press operation recognition only according to the operation duration, and it is easy to recognize other touch operations as long-press operations, resulting in long-press operation, low recognition accuracy, and extreme Big troubles that seriously affect the user experience.
  • the main object of the present invention is to provide a method and a device for recognizing a long-press operation in a touch operation area, aiming at solving the technical problem of low recognition accuracy of long-press operation.
  • a method for identifying a long-press operation in a touch operation area comprising:
  • the current location information is used as initial location information
  • the current location information acquired each time is compared with the initial location information
  • the acquiring the current location information of the touch operation is continued until the duration of the touch operation is greater than or equal to the preset duration, and the touch is During the period during which the operation continues, all current location information acquired in real time and the initial location information are matched, and it is determined that the touch operation is a long press operation.
  • the step of acquiring the current location information of the touch operation in real time when receiving the touch operation based on the edge region of the touch operation area of the terminal includes:
  • the step of acquiring the current location information of the touch operation in real time when the number of the contacts is less than a preset threshold includes:
  • the current position information of the touch operation is acquired in real time when all the contacts are distributed only in the edge area of one side of the touch operation area of the terminal according to the position information corresponding to all the contacts.
  • the preset threshold is 2 or 3.
  • the step of comparing each acquired current location information with the initial location information includes: :
  • the current location After acquiring the current location information for the first time, each time the current location information is acquired, the current location is calculated according to the coordinate information corresponding to the current location information acquired each time and the coordinate information corresponding to the initial location information. The distance between the initial positions;
  • the method for identifying the long-press operation of the touch operation area further includes:
  • the step of continuing to obtain current location information of the touch operation includes:
  • the current location information of the touch operation is acquired once every preset time interval.
  • the method before the step of acquiring the control instruction corresponding to the long press operation of the current application scenario, the method further includes:
  • the current location information of the touch operation is:
  • the touch operation is at a position coordinate that is preset in a plane coordinate system within the touch operation area of the terminal.
  • An identification device for a long-press operation of a touch operation area wherein the recognition device for the long-press operation of the touch operation area comprises a position acquisition module, an initial position definition module, a position information comparison module and a motion recognition module, wherein:
  • the location acquiring module is configured to: acquire real-time location information of the touch operation in real time when receiving a touch operation based on an edge region of the terminal touch operation region;
  • the initial location definition module is configured to: when the location acquisition module acquires current location information of the touch operation for the first time, use the current location information as initial location information,
  • the location information comparison module is configured to: after acquiring the current location information for the first time, each time the current location information of the touch operation is acquired, the current location information acquired each time and the initial location Information comparison;
  • the motion recognition module is configured to: as long as the obtained location information is obtained once and initially acquired When the location information does not match, the current location information of the touch operation is stopped. When the location information acquired each time matches the initially acquired location information, the current location information of the touch operation is continued to be obtained until the location information is obtained. Obtaining that the duration of the touch operation is greater than or equal to the preset duration, and the current location information acquired in real time matches the initial location information during the period in which the touch operation continues, and determining that the current touch operation is a long press operation.
  • the location acquiring module includes a contact quantity acquiring unit and a location information acquiring unit, where:
  • the contact quantity acquisition unit is configured to: when receiving a touch operation based on an edge area of the terminal touch operation area, acquire a number of contacts corresponding to the touch operation;
  • the location information acquiring unit is configured to acquire current location information of the touch operation in real time when the number of contacts is less than a preset threshold.
  • the location information acquiring unit is configured to acquire current location information of the touch operation in real time when the number of contacts is less than a preset threshold as follows:
  • the current position information of the touch operation is acquired in real time when all the contacts are distributed only in the edge area of one side of the touch operation area of the terminal according to the position information corresponding to all the contacts.
  • the preset threshold is 2 or 3.
  • the location information comparison module includes a distance calculation unit and a distance determination unit, where:
  • the distance calculation unit is configured to: after the current location information is acquired for the first time, each time the current location information is acquired, the coordinate information corresponding to the current location information acquired each time and the initial location information Corresponding coordinate information calculates a distance between the current position and the initial position;
  • the distance determining unit is configured to: determine whether the calculated distance is less than a preset distance, and if the calculated distance is less than the preset distance, determine the current location information acquired and the initially acquired Location information matches.
  • it also includes:
  • the operation response module is configured to: determine a current application scenario, and obtain the current application scenario. Press and hold the corresponding control command and respond to the control command.
  • the step of continuing to obtain current location information of the touch operation includes:
  • the current location information of the touch operation is acquired once every preset time interval.
  • the current location information of the touch operation is:
  • the touch operation is at a position coordinate that is preset in a plane coordinate system within the touch operation area of the terminal.
  • a terminal comprising the above-mentioned identification device for long-press operation of any touch operation area.
  • a computer program comprising program instructions that, when executed by a terminal, cause the terminal to perform an identification method of any of the above-described touch operation area long press operations.
  • the technical solution of the present invention acquires the current location information of the touch operation in real time when the touch operation is received in the edge region of the touch operation area of the terminal, and when the current location information is acquired for the first time, the acquired current location information is used as an initial Position information; then, after obtaining the current location information for the first time, each time the current location information is acquired, the obtained current location information is compared with the initial location information, and the obtained location information is initially obtained.
  • the location information is matched, the current location information of the touch operation is continuously obtained until the duration of the touch operation is greater than or equal to the preset duration, and the current touch operation is determined to be a long press operation, so that the current location to be acquired is detected in real time within a preset duration.
  • the information is compared with the initial position information.
  • the touch operation is a long press operation, and the other touch operations are not recognized as long press operations. Improves the accuracy of long press operations.
  • FIG. 1 is a schematic structural diagram of hardware of a mobile terminal that implements various embodiments of the present invention
  • FIG. 2 is a schematic diagram of a wireless communication system of the mobile terminal shown in FIG. 1;
  • FIG. 3 is a schematic flow chart of a first embodiment of a method for recognizing a long-press operation of a touch operation area according to the present invention
  • FIG. 4 is a schematic flow chart of a second embodiment of a method for recognizing a long-press operation of a touch operation area according to the present invention.
  • FIG. 5 is a schematic flow chart of a third embodiment of a method for recognizing a long-press operation of a touch operation area according to the present invention.
  • FIG. 6 is a schematic diagram of functional modules of a first embodiment of an identification device for long-press operation of a touch operation area according to the present invention
  • FIG. 7 is a schematic diagram of functional modules of a second embodiment of an identification device for long-press operation of a touch operation area according to the present invention.
  • FIG. 8 is a schematic diagram of functional modules of a third embodiment of an apparatus for identifying a long-press operation of a touch operation area according to the present invention.
  • the mobile terminal can be implemented in various forms.
  • the terminal described in the present invention may include, for example, a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (Personal Digital Assistance) Mobile terminals, PAD (Tablet), PMP (Portable Multimedia Player), navigation devices, and the like, and fixed terminals such as digital TVs, desktop computers, and the like.
  • PDA Personal Digital Assistance
  • PAD Tablett
  • PMP Portable Multimedia Player
  • navigation devices and the like
  • fixed terminals such as digital TVs, desktop computers, and the like.
  • the terminal is a mobile terminal.
  • those skilled in the art will appreciate that configurations in accordance with embodiments of the present invention can be applied to fixed type terminals in addition to components that are specifically for mobile purposes.
  • FIG. 1 is a schematic diagram showing the hardware structure of a mobile terminal embodying various embodiments of the present invention.
  • the mobile terminal 100 may include a wireless communication unit 110, an A/V (Audio/Video) input unit 120, a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, an interface unit 170, a controller 180, and a power supply unit 190. and many more.
  • Figure 1 illustrates a mobile terminal having various components, but it should be understood that not all illustrated components are required to be implemented. More or fewer components can be implemented instead. The elements of the mobile terminal will be described in detail below.
  • Wireless communication unit 110 typically includes one or more components that permit radio communication between mobile terminal 100 and a wireless communication system or network.
  • the wireless communication unit may include at least one of a broadcast receiving module 111, a mobile communication module 112, a wireless internet module 113, a short-range communication module 114, and a location information module 115.
  • the broadcast receiving module 111 receives a broadcast signal and/or broadcast associated information from an external broadcast management server via a broadcast channel.
  • the broadcast channel can include a satellite channel and/or a terrestrial channel.
  • the broadcast management server may be a server that generates and transmits a broadcast signal and/or broadcast associated information or a server that receives a previously generated broadcast signal and/or broadcast associated information and transmits it to the terminal.
  • the broadcast signal may include a TV broadcast signal, a radio broadcast signal, a data broadcast signal, and the like.
  • the broadcast signal may further include a broadcast signal combined with a TV or radio broadcast signal.
  • the broadcast associated information may also be provided via a mobile communication network, and in this case, the broadcast associated information may be received by the mobile communication module 112.
  • the broadcast signal may exist in various forms, for example, it may exist in the form of Digital Multimedia Broadcasting (DMB) Electronic Program Guide (EPG), Digital Video Broadcasting Handheld (DVB-H) Electronic Service Guide (ESG), and the like.
  • the broadcast receiving module 111 can receive a signal broadcast by using various types of broadcast systems.
  • the broadcast receiving module 111 can use forward link media (MediaFLO) by using, for example, multimedia broadcast-terrestrial (DMB-T), digital multimedia broadcast-satellite (DMB-S), digital video broadcast-handheld (DVB-H)
  • MediaFLO forward link media
  • the digital broadcasting system of the @ ) data broadcasting system, the terrestrial digital broadcasting integrated service (ISDB-T), and the like receives digital broadcasting.
  • the broadcast receiving module 111 can be constructed as various broadcast systems suitable for providing broadcast signals as well as the above-described digital broadcast system.
  • the broadcast signal and/or broadcast associated information received via the broadcast receiving module 111 may be stored in the memory 160 (or other type of
  • the mobile communication module 112 transmits the radio signals to and/or receives radio signals from at least one of a base station (e.g., an access point, a Node B, etc.), an external terminal, and a server.
  • a base station e.g., an access point, a Node B, etc.
  • Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received in accordance with text and/or multimedia messages.
  • the wireless internet module 113 supports wireless internet access of the mobile terminal.
  • the module can be internally or externally coupled to the terminal.
  • the wireless Internet access technologies involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro (Wireless Broadband), Wimax (Worldwide Interoperability for Microwave Access), HSDPA (High Speed Downlink Packet Access), etc. .
  • the short range communication module 114 is a module for supporting short range communication.
  • Some examples of short-range communication technology include Bluetooth TM, a radio frequency identification (RFID), infrared data association (IrDA), ultra wideband (UWB), ZigBee, etc. TM.
  • the location information module 115 is a module for checking or acquiring location information of the mobile terminal.
  • a typical example of a location information module is GPS (Global Positioning System).
  • GPS Global Positioning System
  • the GPS module 115 calculates distance information and accurate time information from three or more satellites and applies triangulation to the calculated information to accurately calculate three-dimensional current position information based on longitude, latitude, and altitude.
  • the method for calculating position and time information uses three satellites and corrects the calculated position and time information errors by using another satellite.
  • the GPS module 115 is capable of calculating speed information by continuously calculating current position information in real time.
  • the A/V input unit 120 is for receiving an audio or video signal.
  • the A/V input unit 120 may include a camera 121 and a microphone 1220 that processes image data of still pictures or video obtained by the image capturing device in a video capturing mode or an image capturing mode.
  • the processed image frame can be displayed on the display unit 151.
  • the image frames processed by the camera 121 may be stored in the memory 160 (or other storage medium) or transmitted via the wireless communication unit 110, and two or more cameras 1210 may be provided according to the configuration of the mobile terminal.
  • the microphone 122 can receive sound (audio data) via a microphone in an operation mode of a telephone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound as audio data.
  • the processed audio (voice) data can be converted to a format output that can be transmitted to the mobile communication base station via the mobile communication module 112 in the case of a telephone call mode.
  • the microphone 122 can implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated during the process of receiving and transmitting audio signals.
  • the user input unit 130 may generate key input data according to a command input by the user to control various operations of the mobile terminal.
  • the user input unit 130 allows the user to input various types of information, and may include a keyboard, a pot, a touch pad (eg, a touch sensitive component that detects changes in resistance, pressure, capacitance, etc. due to contact), a scroll wheel , rocker, etc.
  • a touch screen can be formed.
  • the sensing unit 140 detects the current state of the mobile terminal 100 (eg, the open or closed state of the mobile terminal 100), the location of the mobile terminal 100, the presence or absence of contact (ie, touch input) by the user with the mobile terminal 100, and the mobile terminal.
  • the sensing unit 140 can sense whether the slide type phone is turned on or off.
  • the sensing unit 140 can detect whether the power supply unit 190 provides power or whether the interface unit 170 is coupled to an external device.
  • Sensing unit 140 may include proximity sensor 1410 which will be described below in connection with a touch screen.
  • the interface unit 170 serves as an interface through which at least one external device can connect with the mobile terminal 100.
  • the external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, and an audio input/output. (I/O) port, video I/O port, headphone port, and more.
  • the identification module may be stored to verify various information used by the user using the mobile terminal 100 and may include a User Identification Module (UIM), a Customer Identification Module (SIM), a Universal Customer Identity Module (USIM), and the like.
  • the device having the identification module may take the form of a smart card, and thus the identification device may be connected to the mobile terminal 100 via a port or other connection device.
  • the interface unit 170 can be configured to receive input from an external device (eg, data information, power, etc.) and transmit the received input to one or more components within the mobile terminal 100 or can be used at the mobile terminal and external device Transfer data between.
  • the interface unit 170 may function as a path through which power is supplied from the base to the mobile terminal 100 or may be used as a transmission of various command signals allowing input from the base to the mobile terminal 100 The path to the terminal.
  • Various command signals or power input from the base can be used as signals for identifying whether the mobile terminal is accurately mounted on the base.
  • Output unit 150 is configured to provide an output signal (eg, an audio signal, a video signal, an alarm signal, a vibration signal, etc.) in a visual, audio, and/or tactile manner.
  • the output unit 150 may include a display unit 151, Audio output module 152, alarm unit 153, and the like.
  • the display unit 151 can display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 151 can display a user interface (UI) or a graphical user interface (GUI) related to a call or other communication (eg, text messaging, multimedia file download, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 151 may display a captured image and/or a received image, a UI or GUI showing a video or image and related functions, and the like.
  • UI user interface
  • GUI graphical user interface
  • the display unit 151 can function as an input device and an output device.
  • the display unit 151 may include at least one of a liquid crystal display (LCD), a thin film transistor LCD (TFT-LCD), an organic light emitting diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like.
  • LCD liquid crystal display
  • TFT-LCD thin film transistor LCD
  • OLED organic light emitting diode
  • a flexible display a three-dimensional (3D) display, and the like.
  • 3D three-dimensional
  • Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as a transparent display, and a typical transparent display may be, for example, a TOLED (Transparent Organic Light Emitting Diode) display or the like.
  • TOLED Transparent Organic Light Emitting Diode
  • the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown) .
  • the touch screen can be used to detect touch input pressure as well as touch input position and touch input area.
  • the audio output module 152 may convert audio data received by the wireless communication unit 110 or stored in the memory 160 when the mobile terminal is in a call signal receiving mode, a call mode, a recording mode, a voice recognition mode, a broadcast receiving mode, and the like.
  • the audio signal is output as sound.
  • the audio output module 152 can provide audio output (eg, call signal reception sound, message reception sound, etc.) associated with a particular function performed by the mobile terminal 100.
  • the audio output module 152 can include a speaker, a buzzer, and the like.
  • the alarm unit 153 can provide an output to notify the mobile terminal 100 of the occurrence of an event. Typical events may include call reception, message reception, key signal input, touch input, and the like. In addition to audio or video output, the alert unit 153 can provide an output in a different manner to notify of the occurrence of an event. For example, the alarm unit 153 can provide an output in the form of vibrations, and when a call, message, or some other incoming communication is received, the alarm unit 153 can provide a tactile output (ie, vibration) to notify the user of it. By providing such a tactile output, the user is able to recognize the occurrence of various events even when the user's mobile phone is in the user's pocket. The alarm unit 153 can also provide an output of the notification event occurrence via the display unit 151 or the audio output module 152.
  • the memory 160 may store a software program or the like for processing and control operations performed by the controller 180, or may temporarily store data (for example, a phone book, a message, a still image, a video, etc.) that has been output or is to be output. Moreover, the memory 160 can store data regarding vibrations and audio signals of various manners that are output when a touch is applied to the touch screen.
  • the memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (eg, SD or DX memory, etc.), a random access memory (RAM), a static random access memory ( SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disk, optical disk, and the like.
  • the mobile terminal 100 can cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
  • the controller 180 typically controls the overall operation of the mobile terminal. For example, the controller 180 performs the control and processing associated with voice calls, data communications, video calls, and the like. Additionally, the controller 180 can include a multimedia module 1810 for reproducing (or playing back) multimedia data, which can be constructed within the controller 180 or can be configured to be separate from the controller 180. The controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
  • the power supply unit 190 receives external power or internal power under the control of the controller 180 and provides appropriate power required to operate the various components and components.
  • the various embodiments described herein can be implemented in a computer readable medium using, for example, computer software, hardware, or any combination thereof.
  • the embodiments described herein may be through the use of application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays ( An FPGA, a processor, a controller, a microcontroller, a microprocessor, at least one of the electronic units designed to perform the functions described herein, in some cases, such an embodiment may be at the controller 180 Implemented in the middle.
  • implementations such as procedures or functions may be implemented with separate software modules that permit the execution of at least one function or operation.
  • the software code can be implemented by a software application (or program) written in any suitable programming language, which can be stored in memory 160 and executed by
  • the mobile terminal has been described in terms of its function.
  • various types of mobile terminals such as a folding type, a bar type, a swing type, a slide type mobile terminal, and the like will be described.
  • the mobile terminal 100 as shown in FIG. 1 may be configured to operate using a communication system such as a wired and wireless communication system and a satellite-based communication system that transmits data via frames or packets.
  • a communication system such as a wired and wireless communication system and a satellite-based communication system that transmits data via frames or packets.
  • Such communication systems may use different air interfaces and/or physical layers.
  • air interfaces used by communication systems include, for example, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), Code Division Multiple Access (CDMA), and Universal Mobile Telecommunications System (UMTS) (in particular, Long Term Evolution (LTE)). ), Global System for Mobile Communications (GSM), etc.
  • FDMA Frequency Division Multiple Access
  • TDMA Time Division Multiple Access
  • CDMA Code Division Multiple Access
  • UMTS Universal Mobile Telecommunications System
  • LTE Long Term Evolution
  • GSM Global System for Mobile Communications
  • the following description relates to a CDMA communication system, but such teachings are equally applicable to other types of systems.
  • a CDMA wireless communication system can include a plurality of mobile terminals 100, a plurality of base stations (BS) 270, a base station controller (BSC) 275, and a mobile switching center (MSC) 280.
  • the MSC 280 is configured to interface with a public switched telephone network (PSTN) 290.
  • PSTN public switched telephone network
  • the MSC 280 is also configured to interface with a BSC 275 that can be coupled to the base station 270 via a backhaul line.
  • the backhaul line can be constructed in accordance with any of a number of well known interfaces including, for example, E1/T1, ATM, IP, PPP, Frame Relay, HDSL, ADSL, or xDSL. It will be appreciated that the system as shown in FIG. 2 may include multiple BSC 2750s.
  • Each BS 270 can serve one or more partitions (or regions), each of which is covered by a multi-directional antenna or an antenna directed to a particular direction radially away from the BS 270. Alternatively, each partition may be covered by two or more antennas for diversity reception. Each BS 270 can be configured to support multiple frequency allocations, and each frequency allocation has a particular frequency spectrum (eg, 1.25 MHz, 5 MHz, etc.).
  • BS 270 may also be referred to as a Base Transceiver Subsystem (BTS) or other equivalent terminology.
  • BTS Base Transceiver Subsystem
  • the term "base station” can be used to generally refer to a single BSC 275 and at least one BS 270.
  • a base station can also be referred to as a "cell station.”
  • each partition of a particular BS 270 may be referred to as a plurality of cellular stations.
  • a broadcast transmitter (BT) 295 transmits a broadcast signal to the mobile terminal 100 operating within the system.
  • a broadcast receiving module 111 as shown in FIG. 1 is provided at the mobile terminal 100 to receive a broadcast signal transmitted by the BT 295.
  • GPS Global Positioning System
  • the satellite 300 helps locate at least one of the plurality of mobile terminals 100.
  • a plurality of satellites 300 are depicted, but it is understood that any number of satellites can be utilized. Stars get useful positioning information.
  • the GPS module 115 as shown in Figure 1 is typically configured to cooperate with the satellite 300 to obtain desired positioning information. Instead of GPS tracking technology or in addition to GPS tracking technology, other techniques that can track the location of the mobile terminal can be used. Additionally, at least one GPS satellite 300 can selectively or additionally process satellite DMB transmissions.
  • BS 270 receives reverse link signals from various mobile terminals 100.
  • Mobile terminal 100 typically participates in calls, messaging, and other types of communications.
  • Each reverse link signal received by a particular base station 270 is processed within a particular BS 270.
  • the obtained data is forwarded to the relevant BSC 275.
  • the BSC provides call resource allocation and coordinated mobility management functions including a soft handoff procedure between the BSs 270.
  • the BSC 275 also routes the received data to the MSC 280, which provides additional routing services for interfacing with the PSTN 290.
  • PSTN 290 interfaces with MSC 280, which forms an interface with BSC 275, and BSC 275 controls BS 270 accordingly to transmit forward link signals to mobile terminal 100.
  • the method for recognizing the long-press operation of the touch operation area in the embodiment of the present invention is particularly applicable to a narrow-frame or a frameless mobile terminal.
  • the touch operation area of the mobile terminal mentioned in the embodiment of the present invention is an area for receiving a touch operation by the user.
  • the touch operation area is divided into an ordinary area of the edge area and the non-edge area.
  • the edge area is a strip-shaped area in which the touch operation area of the mobile terminal is close to the two long borders, and the size (such as width and length) and the number of the edge area can be adjusted, and the touch operation area outside the edge area is a common area;
  • the common area that is, the touch area of the touch operation area in the related art, is used for normally receiving a touch operation of the user, and executing a corresponding instruction (ie, making a corresponding response).
  • Virtualizing two input devices in the mobile terminal drives the initial input, and registers two input devices (input), such as input device 0 (input0) and input device 1 (input1), by the input_register_device() instruction. ). And an input device is allocated for each partition by the input_allocate_device() instruction, for example, the common partition corresponds to the input device 0, and the special partition corresponds to the input device 1.
  • the upper layer identifies whether the current user touch area is a normal area or an edge area according to the naming of the input device reported by the driver layer, and the upper layer has different processing manners in different areas.
  • the upper layer mentioned in this section usually refers to the framework layer and the application layer.
  • a custom system such as android or IOS usually includes an underlying layer (physical layer, driving layer) and an upper layer (frame layer, application layer), and the direction of the signal flow is: physical layer (touch panel) receiving To the user's touch operation, the physical press changes to the electrical signal TP, and the TP is transmitted to the driving layer, and the driving layer analyzes the pressed position to obtain the specific coordinates, duration, pressure and other parameters of the position point, and uploads the parameter to the frame.
  • physical layer touch panel
  • communication between the framework layer and the driver layer can be implemented through a corresponding interface, the framework layer receives an input device of the driver layer, parses the input device, thereby selecting to respond or not responding to the input device, and inputting the valid input Which application is passed up to the application layer to meet the application layer to perform different application operations according to different events.
  • the driver layer (kernel) identification is The special partition touch, the input device reported to the framework layer by the driver layer is input1, instead of reporting with input0, that is, the framework layer does not need to determine which partition the current touch point is in, nor the size and position of the partition.
  • the judging operation is completed on the driving layer, and the driving layer not only reports which input device is specifically, but also reports various parameters of the touch point to the frame layer, such as pressing time, position coordinates, pressure magnitude, and the like.
  • the frame layer reports to the application layer through a single-channel to multi-channel mechanism after receiving the reported event.
  • the channel is first registered, the reported event is transmitted through the channel, and the event is listened to by the listener, and the event is transmitted to the corresponding application module through different channels to generate different application operations, where the application
  • the module includes common applications such as camera and contacts; it generates different application operations. For example, in the camera application, when the user clicks in a special zone, it will produce different operations such as focusing, shooting, and adjusting camera parameters.
  • the report event is delivered to the listener, it is a single channel. After the listener listens, the reported event is multi-channel, and multiple channels exist at the same time. The advantage is that it can be transmitted to different application modules at the same time, and different application modules are generated. Different response operations.
  • the foregoing process is specifically implemented by: using an object-oriented manner, defining a category and an implementation manner of the common area and the edge area, and after determining the edge area, converting the coordinates of the touch points of different resolutions into the LCD by using the EventHub function.
  • the coordinates define a single channel function (such as serverchannel and clientchannel, etc.), the function of this function is, when the report event is received, the event is passed to the event manager (TouchEventManager) through the channel, through the listener of the listener, The event is transmitted to multiple response application modules simultaneously or one by one through multiple channels, or It is only passed to one of the application modules, application modules such as camera, gallery, etc., and different application modules generate corresponding operations.
  • the specific implementation of the foregoing process may also be implemented in other manners, which is not limited by the embodiment of the present invention.
  • the framework layer does not pass the single channel to multi-channel mechanism, but directly passes the multi-channel mechanism, and the listener listens.
  • the event is transmitted to the corresponding application module through different channels, and generates different application operations, wherein the application module includes common applications such as camera, contact, etc., and generates different application operations, for example, in a camera application, the user Clicking on a normal partition will result in different operations such as focusing, shooting, and adjusting camera parameters.
  • the multiple channels do not exist at the same time, but only a single channel is generated per unit time.
  • the specific implementation of the foregoing process is: after determining that it is a normal partition, converting the coordinates of the touch points of different resolutions into coordinates of the LCD through the EventHub function, and defining a single channel function (such as serverchannel and clientchannel, etc.), the function
  • the function is that after receiving the reported event, the event is transmitted to the event manager (TouchEventManager) through the channel, and the event is transmitted to the application module of multiple responses one by one through the monitoring of the listener, or only Passed to one of the application modules, application modules such as camera, gallery, etc., different application modules generate corresponding operations.
  • the specific implementation of the foregoing process may also be implemented in other manners, which is not limited by the embodiment of the present invention.
  • the method for identifying the long-press operation of the touch operation area includes:
  • Step S10 Acquire real-time location information of the touch operation in real time when receiving a touch operation based on an edge region of the touch operation area of the terminal;
  • the terminal may be a mobile terminal (for example, a smart phone), and when receiving a touch operation in an edge area of the touch operation area of the terminal, start to acquire the current position information of the touch operation in real time, and the location information is based on a preset touch operation on the mobile terminal.
  • the plane coordinate system in the area the coordinates of the position where the touch operation is obtained.
  • step S20 when the current location information is acquired for the first time, the acquired current location information is used as the initial location information, or the current location information acquired for the first time is used as the initial location information;
  • the acquired current location information is used as initial location information (for example, initial location coordinates (X 0 , Y 0 )).
  • Step S30 after the current location information is acquired for the first time, each time the current location information is acquired, the current location information acquired each time is compared with the initial location information;
  • the current location information of the touch operation is acquired once every preset time interval, and the current location information acquired after the initial location information is compared with the initial location information.
  • Step S40 if the acquired location information does not match the initially acquired location information, stop acquiring the current location information of the touch operation;
  • the obtained location information does not match the initially obtained location information, it indicates that the moving distance of the touch operation does not satisfy the preset condition. If the moving distance of the touch operation is too large, a sliding operation is formed, and the acquisition is stopped. Touch to operate the current location information.
  • step S50 when all the previously acquired location information matches the initially obtained location information, the location information of the touch operation is continuously obtained until the duration of the touch operation is greater than or equal to the preset duration, and the current touch is determined.
  • the operation is a long press operation.
  • the long press operation also needs to consider the factor of the touch duration, so the current position information of the touch operation is continuously obtained, and the obtained current position information is continuously compared with the initial position information until the duration of the touch operation is greater than or equal to the pre- The duration is set, and during the period in which the touch operation continues, the current location information acquired in real time and the initial location information are both matched, and then the current touch operation is determined to be a long press operation.
  • the current location information of the touch operation is acquired in real time, and the current location information to be acquired is obtained when the current location information is acquired for the first time.
  • the initial position information set to A0
  • the current position information of the touch operation is acquired every preset time interval T0 (eg, the preset time interval is 50 ms).
  • the obtained current location information is compared with the initial location information, for example, the current location acquired by the preset time interval T0 after the initial location information A0 is acquired.
  • A1 two pre- Let the current position information obtained by the time interval T0 be A2, and so on, and obtain A3, A4, A5, ... An, n is equal to the preset duration divided by the quotient of the preset time interval and rounded up, then A1 If A1 and A0 do not match, the current position information of the touch operation is stopped; if A1 and A0 match, A2 and A0 are continued to be matched until An and A0 also match (ie, acquire If the duration of the touch operation is greater than or equal to the preset duration and the current location information matches the initial location information, it is determined that the current touch operation is a long press operation, so that the current location information and the initial location to be acquired are detected in real time within a preset duration.
  • the location information is compared.
  • the touch operation is a long press operation, and the other touch operations (such as the sliding operation) are not recognized as long. Pressing the operation increases the accuracy of the long press operation.
  • step S10 the touch is received in the edge area based on the touch operation area of the terminal.
  • step S10 the touch is received in the edge area based on the touch operation area of the terminal.
  • the step of acquiring the current location information of the touch operation in real time includes:
  • Step S11 when receiving a touch operation based on an edge region of the touch operation area of the terminal, acquiring a number of contacts corresponding to the touch operation;
  • step S12 when the number of contacts is less than a preset threshold, the possibility of the holding operation is excluded, and the current position information of the touch operation is acquired in real time.
  • the number of contacts corresponding to the touch operation is acquired, and when the number of contacts is less than a preset threshold, the holding operation is excluded, and the real-time operation is performed.
  • the number of contacts is less than the preset threshold, the dog is excluded from the holding operation for the following reasons: for example, because the gesture of the user holding the terminal is divided into vertical holding and lateral holding, the vertical holding and the lateral holding terminal are both There are 3 and more contacts. If the preset threshold is set to 2, when the number of contacts is less than 2, it can be ruled out that the touch operation is not a touch operation generated by the user holding the terminal.
  • step S12 includes:
  • Step S121 when the number of contacts is less than a preset threshold, determining location information corresponding to each contact;
  • Step S122 When the location information does not match the preset location information, the current location information of the touch operation is acquired in real time.
  • determining location information corresponding to each contact when the number of contacts of the touch operation is less than a preset threshold, determining location information corresponding to each contact; when the location information does not match preset location information, for example, a preset location
  • preset location information for example, a preset location
  • the information is that all the contacts are not located in the edge area of the terminal side.
  • After determining the position information corresponding to each contact it is determined that the contact of the touch operation is only distributed in the edge area of one side of the touch operation area of the terminal. Only after the possibility of a long press operation is performed, the subsequent steps are continued, that is, the current position information of the touch operation is obtained in real time. For example, if two contacts hold the terminal, if the preset threshold is 3, the number of contacts 2 is less than the preset threshold 3.
  • this step is not performed, the subsequent steps will be continued, and the situation may be recognized at the end.
  • an error is caused.
  • the step is performed, since the contact of the holding operation is not located in the edge area of the terminal side, the subsequent operation is not performed, thereby avoiding the number of contacts being less than the preset threshold and The special touch operation for holding the action is recognized as a long press operation, which further improves the recognition accuracy of the long press operation.
  • a third embodiment of the present invention is directed to the third embodiment of the present invention.
  • Step S31 after acquiring the current location information for the first time, each time the current location information is acquired, the current location is calculated according to the coordinate information corresponding to the current location information and the coordinate information corresponding to the initial location information. The distance between the initial positions;
  • the coordinate information corresponding to the initial location information is used to calculate between the current location and the initial location.
  • the distance information for example, the initial position corresponding coordinate information is (X 0 , Y 0 ), and the coordinate information corresponding to the current position information acquired each time is (X 1 , Y 1 ), (X 2 , Y 2 ), etc., according to The distance between the current position and the initial position obtained by the second time is obtained, and the distance between the current position and the initial position acquired in the third and fourth times can be obtained.
  • step S32 it is determined whether the calculated distance is less than a preset distance, and when the calculated distance is less than the preset distance, determining that the acquired current location information matches the initially acquired location information.
  • the current location information After acquiring the current location information for the first time, it is determined that the current location and the initial bit are acquired each time. Whether the distance between the sets is less than a preset distance, and when the calculated distance is less than the preset distance, it is determined that the acquired position information matches the initially acquired position information.
  • the step of comparing the acquired current position information with the initial position information is implemented in a relatively simple calculation manner, and the distance between the obtained current position and the initial position is obtained. To determine whether the acquired current location information matches the initially acquired location information, improving the efficiency of the alignment recognition.
  • the method further includes:
  • Step S60 determining a current application scenario
  • the current application scenario of the terminal is obtained and determined by the built-in controller of the terminal.
  • the application scenario includes a camera application scenario and a standby screen saver scenario.
  • Step S70 Acquire a control instruction corresponding to the long press operation of the current application scenario, and respond to the control instruction.
  • the terminal has pre-stored the corresponding relationship between the long-press operation of different application scenarios and different control commands, and obtains a control instruction corresponding to the long-press operation of the current application scene according to the current application scenario, and responds to the control instruction, for example, when the camera shoots the scene, when When the long-press operation is recognized in the edge area of the touch operation area, the control instruction corresponding to the long-press operation at this time is acquired, and the long-press operation corresponding to the control instruction in the camera shooting scene is the deleted picture.
  • control commands are defined in different application scenarios by long-pressing operation of the edge area of the touch operation area of the terminal, thereby providing more interaction modes for the user, enriching the operation mode of the terminal, especially the smart phone. Improve the convenience of operation of the terminal.
  • the embodiment of the present invention further provides an identification device for long-press operation of a touch operation area.
  • an identification device for long-press operation of a touch operation area Referring to FIG. 6, in the first embodiment of the identification device for long-press operation of the touch operation area of the present invention, the long-press operation of the touch operation area is recognized.
  • the device includes:
  • the location obtaining module 10 is configured to: acquire the current location information of the touch operation in real time when receiving the touch operation based on the edge region of the touch operation area of the terminal;
  • the terminal may be a mobile terminal (for example, a smart phone), and when receiving a touch operation in an edge area of the touch operation area of the terminal, start to acquire the current location information of the touch operation in real time, and the location information is The information is based on a plane coordinate system preset in the touch operation area of the mobile terminal, and the position coordinates of the acquired touch operation.
  • a mobile terminal for example, a smart phone
  • the initial position definition module 20 is configured to: when the current location information is acquired for the first time, the obtained current location information is used as initial location information,
  • the acquired current location information is used as initial location information (for example, initial location coordinates (X 0 , Y 0 )).
  • the location information comparison module 30 is configured to: after the current location information is acquired for the first time, compare the obtained current location information with the initial location information each time the current location information is acquired Correct;
  • the current location information of the touch operation is acquired once every preset time interval, and the current location information acquired after the initial location information is compared with the initial location information.
  • the action recognition module 40 is configured to: stop acquiring the current location information of the touch operation when the acquired location information does not match the initially acquired location information; and when the acquired location information matches the initially acquired location information, And continuing to obtain the current location information of the touch operation until the duration of the touch operation is greater than or equal to the preset duration, and determining that the current touch operation is a long press operation.
  • the obtained location information does not match the initially obtained location information, it indicates that the moving distance of the touch operation does not satisfy the preset condition. If the moving distance of the touch operation is too large, a sliding operation is formed, and the acquisition is stopped. Touch to operate the current location information.
  • the long press operation also needs to consider the factor of the touch duration, so the current position information of the touch operation is continuously obtained, and the obtained current position information is continuously compared with the initial position information until the duration of the touch operation is greater than or equal to the pre- The duration is set, and during the period in which the touch operation continues, the current location information acquired in real time and the initial location information are both matched, and then the current touch operation is determined to be a long press operation.
  • the current location information of the touch operation is acquired in real time, and the current location information to be acquired is obtained when the current location information is acquired for the first time.
  • initial position information set to A0
  • the current location information of the touch operation is acquired every preset time interval T0 (eg, the preset time interval is 50 ms), and the current location will be acquired each time the current location information is acquired.
  • the information is compared with the initial position information. For example, the current position information acquired by the preset time interval T0 after the initial position information A0 is acquired is A1, and the current position information acquired by the two preset time intervals T0.
  • A2 For A2, and so on, get A3, A4, A5...An,n is equal to the preset duration divided by the quotient of the preset time interval and rounded up, then compare A1 with A0, if A1 and A0 If the matching does not match, the current position information of the touch operation is stopped. If A1 and A0 match, the matching between A2 and A0 is continued until An and A0 are also matched (that is, the duration of the touch operation is greater than or equal to the preset duration). And the current location information is matched with the initial location information, determining that the current touch operation is a long press operation, so that the current location information and the initial location information to be acquired are detected in real time within a preset duration. The information is compared.
  • the location acquisition module 10 includes:
  • the contact quantity acquisition unit 101 is configured to: when receiving a touch operation based on an edge area of the terminal touch operation area, acquire a number of contacts corresponding to the touch operation;
  • the location information obtaining unit 102 is configured to acquire the current location information of the touch operation in real time when the number of contacts is less than a preset threshold.
  • the number of contacts corresponding to the touch operation is acquired, when the number of contacts is less than a preset threshold, for example, a preset threshold is 2.
  • a preset threshold for example, a preset threshold is 2.
  • the touch operation is probably not the touch operation generated by the user holding the terminal at this time because the gesture of the user holding the terminal is divided into vertical holding and lateral holding, vertical holding and horizontal
  • the holding terminal has three or more contacts), and the current position information of the touch operation is obtained in real time, thereby avoiding the mistake of recognizing the gripping action of the user holding the terminal as a long press operation, further improving the long press operation The accuracy of recognition.
  • the location information obtaining unit 102 is further configured to:
  • the current location information of the touch operation is acquired in real time.
  • determining location information corresponding to each contact when the number of contacts of the touch operation is less than a preset threshold, determining location information corresponding to each contact; when the location information does not match preset location information, for example, a preset location
  • preset location information for example, a preset location
  • the information is that all the contacts are not located in the edge area of the terminal side, and when the contact of the touch operation is only distributed in the edge area of the one-side touch operation area of the terminal, the current position information of the touch operation is acquired in real time, thereby avoiding
  • a special touch operation for example, two contact holding terminals
  • the number of contacts is smaller than a preset threshold and is also a holding action is recognized as a long press operation, which further improves the recognition accuracy of the long press operation.
  • the position information comparison module 30 includes:
  • the distance calculation unit 301 is configured to: after the current location information is acquired for the first time, each time the current location information is acquired, the coordinates corresponding to the initial location information according to the coordinate information corresponding to the current location information The information calculates the distance between the current position and the initial position;
  • the coordinate information corresponding to the initial location information is used to calculate between the current location and the initial location.
  • the distance information for example, the initial position corresponding coordinate information is (X 0 , Y 0 ), and the coordinate information corresponding to the current position information acquired each time is (X 1 , Y 1 ), (X 2 , Y 2 ), etc., according to The distance between the current position and the initial position obtained by the second time is obtained, and the distance between the current position and the initial position acquired in the third and fourth times can be obtained.
  • the distance determining unit 302 is configured to: determine whether the calculated distance is less than a preset distance, and when the calculated distance is less than the preset distance, determine the acquired current location information and initially obtain The location information matches.
  • the step of comparing the obtained current location information with the initial location information is implemented in a relatively simple calculation manner, and the obtained current location and the initial position are obtained.
  • the distance between the start positions determines whether the acquired current position information matches the initially acquired position information, thereby improving the efficiency of the comparison recognition.
  • the apparatus further includes:
  • the operation response module 50 is configured to: determine a current application scenario, and obtain a control instruction corresponding to the long-press operation of the current application scenario, and respond to the control instruction.
  • the current application scenario of the terminal is obtained and determined by the built-in controller of the terminal.
  • the application scenario includes a camera application scenario and a standby screen saver scenario.
  • the terminal has pre-stored the corresponding relationship between the long-press operation of different application scenarios and different control commands, and obtains a control instruction corresponding to the long-press operation of the current application scene according to the current application scenario, and responds to the control instruction, for example, when the camera shoots the scene, when When the long-press operation is recognized in the edge area of the touch operation area, the control instruction corresponding to the long-press operation at this time is acquired, and the long-press operation corresponding to the control instruction in the camera shooting scene is the deleted picture.
  • control commands are defined in different application scenarios by long-pressing operation of the edge area of the touch operation area of the terminal, thereby providing more interaction modes for the user, enriching the operation mode of the terminal, especially the smart phone. Improve the convenience of operation of the terminal.
  • the embodiment of the invention further discloses a computer program, comprising program instructions, when the program instruction is executed by the terminal, so that the terminal can perform the identification method of any long touch operation of the touch operation area.
  • the embodiment of the invention also discloses a carrier carrying the computer program.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve. Thus, the invention is not limited to any specific combination of hardware and software.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • each device/function module/functional unit in the above embodiment When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the technical solution of the present invention acquires the current location information of the touch operation in real time when the touch operation is received in the edge region of the touch operation area of the terminal, and when the current location information is acquired for the first time, the acquired current location information is used as an initial Position information; then, after obtaining the current location information for the first time, each time the current location information is acquired, the obtained current location information is compared with the initial location information, and the obtained location information is initially obtained.
  • the location information is matched, the current location information of the touch operation is continuously obtained until the duration of the touch operation is greater than or equal to the preset duration, and the current touch operation is determined to be a long press operation, so that the current location to be acquired is detected in real time within a preset duration.
  • the information is compared with the initial position information.
  • the touch operation is a long press operation, and the other touch operations are not recognized as long press operations.
  • the present invention has strong industrial applicability.

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)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种触摸操作区域长按操作的识别方法和装置,该方法包括:在基于终端触摸操作区域的边缘区域接收到触摸操作时,实时获取触摸操作当前位置信息;在第一次获取到当前位置信息时,将获取到的当前位置信息作为初始位置信息;在每次获取到当前位置信息时,将获取到的当前位置信息与初始位置信息进行比对;在获取到的位置信息与初始获取到的位置信息不匹配时,停止获取触摸操作当前位置信息;在获取到的位置信息与初始获取到的位置信息匹配时,继续获取触摸操作当前位置信息,直至获取触摸操作持续时长大于等于预设时长,确定当前的触摸操作为长按操作。提高了长按操作的准确率。

Description

触摸操作区域长按操作的识别方法及装置 技术领域
本文涉及触摸操作区域长按操作的识别技术领域,尤其涉及一种触摸操作区域长按操作的识别方法及装置。
背景技术
随着通信技术的迅速发展,手机等移动终端的功能越来越多,电脑上能实现的娱乐功能,大部分都已经能在移动终端上实现,人们可以在移动终端上看电影、玩游戏、浏览网页、视频聊天等。为了提高移动终端的视觉效果,移动终端越来越趋向于大屏化发展,但鉴于移动终端的便携性特点,其尺寸不可能无限增大,这就需要充分利用移动终端的外形尺寸来增大屏幕的利用率,因此出现了窄边框甚至无边框的移动终端。
窄边框或无边框移动终端充分利用移动终端的外形尺寸,极大的扩展了移动终端的屏幕尺寸,满足了用户对大屏幕的需求,同时使得移动终端的外形更加美观。然而,相关技术的窄边框或无边框移动终端仅根据操作持续时间来识别长按操作识别,很容易将其它触摸操作识别为长按操作,导致长按操作识别准确率低,给用户造成了极大的困扰,严重影响用户体验。
发明内容
本发明的主要目的在于提出一种触摸操作区域长按操作的识别方法及装置,旨在解决长按操作识别准确率低的技术问题。
为实现上述目的,采用如下技术方案:
一种触摸操作区域长按操作的识别方法,包括:
在基于终端触摸操作区域的边缘区域接收到触摸操作时,实时获取所述触摸操作的当前位置信息;
在第一次获取到当前位置信息时,将该当前位置信息作为初始位置信息;
在第一次获取到当前位置信息之后,继续获取所述触摸操作的当前位置 信息;
在后续每次获取到当前位置信息时,将每次获取到的当前位置信息与所述初始位置信息进行比对;
只要有一次获取到的位置信息与初始获取到的位置信息不匹配,则停止获取所述触摸操作当前位置信息;
如果之前每次获取到的位置信息都与初始获取到的位置信息相匹配,则继续获取所述触摸操作当前位置信息,直至获取所述触摸操作的持续时长大于等于预设时长,且在该触摸操作持续的这段时间内,实时获取的所有当前位置信息与初始位置信息都是匹配的,则确定所述触摸操作为长按操作。
可选地,所述在基于终端触摸操作区域的边缘区域接收到触摸操作时,实时获取所述触摸操作的当前位置信息的步骤包括:
在基于终端触摸操作区域的边缘区域接收到所述触摸操作时,获取所述触摸操作对应的触点数量;
在所述触点数量小于预设阈值时,实时获取所述触摸操作的当前位置信息。
可选地,所述在所述触点数量小于预设阈值时,实时获取所述触摸操作的当前位置信息的步骤包括:
在所述触点数量小于所述预设阈值时,确定所有触点对应的位置信息;
根据所有触点对应的位置信息确定所有触点只分布于终端触摸操作区域中单侧的边缘区域中时,实时获取所述触摸操作的当前位置信息。
可选地,所述预设阈值为2或3。
可选地,所述在第一次获取到当前位置信息之后,在每次获取到所述当前位置信息时,将每次获取到的当前位置信息与所述初始位置信息进行比对的步骤包括:
在第一次获取到当前位置信息之后,在每次获取到所述当前位置信息时,根据每次获取到的当前位置信息对应的坐标信息与所述初始位置信息对应的坐标信息计算当前位置与初始位置之间的距离;
判断计算得到的所述距离是否小于预设距离;
若计算得到的所述距离小于所述预设距离,则判定此次获取到的当前位置信息与初始获取到的位置信息匹配。
可选地,所述确定当前的触摸操作为长按操作的步骤之后,所述触摸操作区域长按操作的识别方法还包括:
确定当前应用场景;
获取当前应用场景所述长按操作对应的控制指令,并响应所述控制指令。
可选地,所述继续获取所述触摸操作的当前位置信息的步骤包括:
每隔预设时间间隔获取一次所述触摸操作的当前位置信息。
可选地,所述获取当前应用场景所述长按操作对应的控制指令的步骤之前,该方法还包括:
预存不同应用场景长按操作与不同控制指令的对应关系。
可选地,所述触摸操作当前位置信息为:
所述触摸操作在预设于所述终端触摸操作区域内的平面坐标系中所处的位置坐标。
一种触摸操作区域长按操作的识别装置,其中,所述触摸操作区域长按操作的识别装置包括位置获取模块、初始位置定义模块、位置信息比对模块和动作识别模块,其中:
所述位置获取模块设置成:在基于终端触摸操作区域的边缘区域接收到触摸操作时,实时获取所述触摸操作的当前位置信息;
所述初始位置定义模块设置成:在所述位置获取模块第一次获取到所述触摸操作的当前位置信息时,将该当前位置信息作为初始位置信息,
所述位置信息比对模块设置成:在第一次获取到当前位置信息之后,在每次获取到所述触摸操作的当前位置信息时,将每次获取到的当前位置信息与所述初始位置信息进行比对;
所述动作识别模块设置成:只要有一次获取到的位置信息与初始获取到 的位置信息不匹配时,则停止获取所述触摸操作的当前位置信息;之前每次获取到的位置信息都与初始获取到的位置信息匹配时,继续获取所述触摸操作的当前位置信息,直至获取所述触摸操作持续时长大于等于预设时长,且在该触摸操作持续的这段时间内,实时获取的当前位置信息与初始位置信息都是匹配的,确定当前的触摸操作为长按操作。
可选地,所述位置获取模块包括触点数量获取单元和位置信息获取单元,其中:
所述触点数量获取单元设置成:在基于终端触摸操作区域的边缘区域接收到触摸操作时,获取所述触摸操作对应的触点数量;
所述位置信息获取单元设置成:在所述触点数量小于预设阈值时,实时获取所述触摸操作的当前位置信息。
可选地,所述位置信息获取单元设置成按照如下方式在所述触点数量小于预设阈值时,实时获取所述触摸操作的当前位置信息:
在所述触点数量小于预设阈值时,确定所有触点对应的位置信息;
根据所有触点对应的位置信息确定所有触点只分布于终端触摸操作区域中单侧的边缘区域中时,实时获取所述触摸操作当前位置信息。
可选地,所述预设阈值为2或3。
可选地,所述位置信息比对模块包括距离计算单元和距离判断单元,其中:
所述距离计算单元设置成:在第一次获取到当前位置信息之后,在每次获取到所述当前位置信息时,根据每次获取到的当前位置信息对应的坐标信息与所述初始位置信息对应的坐标信息计算当前位置与初始位置之间的距离;
所述距离判断单元设置成:判断计算得到的所述距离是否小于预设距离,若计算得到的所述距离小于所述预设距离时,判定此次获取到的当前位置信息与初始获取到的位置信息匹配。
可选地,还包括:
操作响应模块,设置成:确定当前应用场景,并获取当前应用场景所述 长按操作对应的控制指令,并响应所述控制指令。
可选地,所述继续获取所述触摸操作的当前位置信息的步骤包括:
每隔预设时间间隔获取一次所述触摸操作的当前位置信息。
可选地,所述触摸操作当前位置信息为:
所述触摸操作在预设于所述终端触摸操作区域内的平面坐标系中所处的位置坐标。
一种终端,包括上述任意的触摸操作区域长按操作的识别装置。
一种计算机程序,包括程序指令,当该程序指令被终端执行时,使得该终端可执行上述任意的触摸操作区域长按操作的识别方法。
一种载有所述的计算机程序的载体。
本发明技术方案通过在终端触摸操作区域的边缘区内接收到触摸操作时,实时获取该触摸操作的当前位置信息,并在第一次获取到当前位置信息时,将获取的当前位置信息作为初始位置信息;然后在第一次获取到当前位置信息之后,在每次获取到当前位置信息时,将获取到的当前位置信息与初始位置信息进行比对,在获取到的位置信息与初始获取到的位置信息匹配时,继续获取触摸操作当前位置信息,直至获取触摸操作持续时长大于等于预设时长,确定当前的触摸操作为长按操作,这样通过在预设时长内实时检测将获取的当前位置信息与初始位置信息进行比对,当在预设时长内采获取的当前位置信息与初始位置信息全部匹配时,才确定此次触摸操作为长按操作,避免将其它触摸操作识别为长按操作,提高了长按操作的准确率。
附图概述
图1为实现本发明各个实施例的移动终端的硬件结构示意图;
图2为如图1所示的移动终端的无线通信系统示意图;
图3为本发明触摸操作区域长按操作的识别方法第一实施例的流程示意图;
图4为本发明触摸操作区域长按操作的识别方法第二实施例的流程示意图;
图5为本发明触摸操作区域长按操作的识别方法第三实施例的流程示意图;
图6为本发明触摸操作区域长按操作的识别装置第一实施例的功能模块示意图;
图7为本发明触摸操作区域长按操作的识别装置第二实施例的功能模块示意图;
图8为本发明触摸操作区域长按操作的识别装置第三实施例的功能模块示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
本发明的较佳实施方式
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
现在将参考附图描述实现本发明各个实施例的移动终端。在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明的说明,其本身并没有特定的意义。因此,"模块"与"部件"可以混合地使用。
移动终端可以以各种形式来实施。例如,本发明中描述的终端可以包括诸如移动电话、智能电话、笔记本电脑、数字广播接收器、PDA(个人数字助 理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、导航装置等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。下面,假设终端是移动终端。然而,本领域技术人员将理解的是,除了特别用于移动目的的元件之外,根据本发明的实施方式的构造也能够应用于固定类型的终端。
图1为实现本发明各个实施例的移动终端的硬件结构示意。
移动终端100可以包括无线通信单元110、A/V(音频/视频)输入单元120、用户输入单元130、感测单元140、输出单元150、存储器160、接口单元170、控制器180和电源单元190等等。图1示出了具有各种组件的移动终端,但是应理解的是,并不要求实施所有示出的组件。可以替代地实施更多或更少的组件。将在下面详细描述移动终端的元件。
无线通信单元110通常包括一个或多个组件,其允许移动终端100与无线通信系统或网络之间的无线电通信。例如,无线通信单元可以包括广播接收模块111、移动通信模块112、无线互联网模块113、短程通信模块114和位置信息模块115中的至少一个。
广播接收模块111经由广播信道从外部广播管理服务器接收广播信号和/或广播相关信息。广播信道可以包括卫星信道和/或地面信道。广播管理服务器可以是生成并发送广播信号和/或广播相关信息的服务器或者接收之前生成的广播信号和/或广播相关信息并且将其发送给终端的服务器。广播信号可以包括TV广播信号、无线电广播信号、数据广播信号等等。而且,广播信号可以进一步包括与TV或无线电广播信号组合的广播信号。广播相关信息也可以经由移动通信网络提供,并且在该情况下,广播相关信息可以由移动通信模块112来接收。广播信号可以以各种形式存在,例如,其可以以数字多媒体广播(DMB)的电子节目指南(EPG)、数字视频广播手持(DVB-H)的电子服务指南(ESG)等等的形式而存在。广播接收模块111可以通过使用各种类型的广播系统接收信号广播。特别地,广播接收模块111可以通过使用诸如多媒体广播-地面(DMB-T)、数字多媒体广播-卫星(DMB-S)、数字视频广播-手持(DVB-H),前向链路媒体(MediaFLO@)的数据广播系统、地面数字广播综合服务(ISDB-T)等等的数字广播系统接收数字广播。广播接收模块111可以被构造为适合提供广播信号的各种广播系统以及上述数字广播系统。经由广播接收模块111接收的广播信号和/或广播相关信息可以存储在存储器160(或者其它类型的存储介 质)中。
移动通信模块112将无线电信号发送到基站(例如,接入点、节点B等等)、外部终端以及服务器中的至少一个和/或从其接收无线电信号。这样的无线电信号可以包括语音通话信号、视频通话信号、或者根据文本和/或多媒体消息发送和/或接收的各种类型的数据。
无线互联网模块113支持移动终端的无线互联网接入。该模块可以内部或外部地耦接到终端。该模块所涉及的无线互联网接入技术可以包括WLAN(无线LAN)(Wi-Fi)、Wibro(无线宽带)、Wimax(全球微波互联接入)、HSDPA(高速下行链路分组接入)等等。
短程通信模块114是用于支持短程通信的模块。短程通信技术的一些示例包括蓝牙TM、射频识别(RFID)、红外数据协会(IrDA)、超宽带(UWB)、紫蜂TM等等。
位置信息模块115是用于检查或获取移动终端的位置信息的模块。位置信息模块的典型示例是GPS(全球定位系统)。根据当前的技术,GPS模块115计算来自三个或更多卫星的距离信息和准确的时间信息并且对于计算的信息应用三角测量法,从而根据经度、纬度和高度准确地计算三维当前位置信息。当前,用于计算位置和时间信息的方法使用三颗卫星并且通过使用另外的一颗卫星校正计算出的位置和时间信息的误差。此外,GPS模块115能够通过实时地连续计算当前位置信息来计算速度信息。
A/V输入单元120用于接收音频或视频信号。A/V输入单元120可以包括相机121和麦克风1220,相机121对在视频捕获模式或图像捕获模式中由图像捕获装置获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元151上。经相机121处理后的图像帧可以存储在存储器160(或其它存储介质)中或者经由无线通信单元110进行发送,可以根据移动终端的构造提供两个或更多相机1210。麦克风122可以在电话通话模式、记录模式、语音识别模式等等运行模式中经由麦克风接收声音(音频数据),并且能够将这样的声音处理为音频数据。处理后的音频(语音)数据可以在电话通话模式的情况下转换为可经由移动通信模块112发送到移动通信基站的格式输出。麦克风122可以实施各种类型的噪声消除(或抑制)算法以消除(或抑制)在接收和发送音频信号的过程中产生的噪声或者干扰。
用户输入单元130可以根据用户输入的命令生成键输入数据以控制移动终端的各种操作。用户输入单元130允许用户输入各种类型的信息,并且可以包括键盘、锅仔片、触摸板(例如,检测由于被接触而导致的电阻、压力、电容等等的变化的触敏组件)、滚轮、摇杆等等。特别地,当触摸板以层的形式叠加在显示单元151上时,可以形成触摸屏。
感测单元140检测移动终端100的当前状态,(例如,移动终端100的打开或关闭状态)、移动终端100的位置、用户对于移动终端100的接触(即,触摸输入)的有无、移动终端100的取向、移动终端100的加速或减速移动和方向等等,并且生成用于控制移动终端100的操作的命令或信号。例如,当移动终端100实施为滑动型移动电话时,感测单元140可以感测该滑动型电话是打开还是关闭。另外,感测单元140能够检测电源单元190是否提供电力或者接口单元170是否与外部装置耦接。感测单元140可以包括接近传感器1410将在下面结合触摸屏来对此进行描述。
接口单元170用作至少一个外部装置与移动终端100连接可以通过的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。识别模块可以是存储用于验证用户使用移动终端100的各种信息并且可以包括用户识别模块(UIM)、客户识别模块(SIM)、通用客户识别模块(USIM)等等。另外,具有识别模块的装置(下面称为"识别装置")可以采取智能卡的形式,因此,识别装置可以经由端口或其它连接装置与移动终端100连接。接口单元170可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端100内的一个或多个元件或者可以用于在移动终端和外部装置之间传输数据。
另外,当移动终端100与外部底座连接时,接口单元170可以用作允许通过其将电力从底座提供到移动终端100的路径或者可以用作允许从底座输入的各种命令信号通过其传输到移动终端的路径。从底座输入的各种命令信号或电力可以用作用于识别移动终端是否准确地安装在底座上的信号。输出单元150被构造为以视觉、音频和/或触觉方式提供输出信号(例如,音频信号、视频信号、警报信号、振动信号等等)。输出单元150可以包括显示单元151、 音频输出模块152、警报单元153等等。
显示单元151可以显示在移动终端100中处理的信息。例如,当移动终端100处于电话通话模式时,显示单元151可以显示与通话或其它通信(例如,文本消息收发、多媒体文件下载等等)相关的用户界面(UI)或图形用户界面(GUI)。当移动终端100处于视频通话模式或者图像捕获模式时,显示单元151可以显示捕获的图像和/或接收的图像、示出视频或图像以及相关功能的UI或GUI等等。
同时,当显示单元151和触摸板以层的形式彼此叠加以形成触摸屏时,显示单元151可以用作输入装置和输出装置。显示单元151可以包括液晶显示器(LCD)、薄膜晶体管LCD(TFT-LCD)、有机发光二极管(OLED)显示器、柔性显示器、三维(3D)显示器等等中的至少一种。这些显示器中的一些可以被构造为透明状以允许用户从外部观看,这可以称为透明显示器,典型的透明显示器可以例如为TOLED(透明有机发光二极管)显示器等等。根据特定想要的实施方式,移动终端100可以包括两个或更多显示单元(或其它显示装置),例如,移动终端可以包括外部显示单元(未示出)和内部显示单元(未示出)。触摸屏可用于检测触摸输入压力以及触摸输入位置和触摸输入面积。
音频输出模块152可以在移动终端处于呼叫信号接收模式、通话模式、记录模式、语音识别模式、广播接收模式等等模式下时,将无线通信单元110接收的或者在存储器160中存储的音频数据转换音频信号并且输出为声音。而且,音频输出模块152可以提供与移动终端100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出模块152可以包括扬声器、蜂鸣器等等。
警报单元153可以提供输出以将事件的发生通知给移动终端100。典型的事件可以包括呼叫接收、消息接收、键信号输入、触摸输入等等。除了音频或视频输出之外,警报单元153可以以不同的方式提供输出以通知事件的发生。例如,警报单元153可以以振动的形式提供输出,当接收到呼叫、消息或一些其它进入通信(incomingcommunication)时,警报单元153可以提供触觉输出(即,振动)以将其通知给用户。通过提供这样的触觉输出,即使在用户的移动电话处于用户的口袋中时,用户也能够识别出各种事件的发生。警报单元153也可以经由显示单元151或音频输出模块152提供通知事件的发生的输出。
存储器160可以存储由控制器180执行的处理和控制操作的软件程序等等,或者可以暂时地存储己经输出或将要输出的数据(例如,电话簿、消息、静态图像、视频等等)。而且,存储器160可以存储关于当触摸施加到触摸屏时输出的各种方式的振动和音频信号的数据。
存储器160可以包括至少一种类型的存储介质,所述存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等等。而且,移动终端100可以与通过网络连接执行存储器160的存储功能的网络存储装置协作。
控制器180通常控制移动终端的总体操作。例如,控制器180执行与语音通话、数据通信、视频通话等等相关的控制和处理。另外,控制器180可以包括用于再现(或回放)多媒体数据的多媒体模块1810,多媒体模块1810可以构造在控制器180内,或者可以构造为与控制器180分离。控制器180可以执行模式识别处理,以将在触摸屏上执行的手写输入或者图片绘制输入识别为字符或图像。
电源单元190在控制器180的控制下接收外部电力或内部电力并且提供操作各元件和组件所需的适当的电力。
这里描述的各种实施方式可以以使用例如计算机软件、硬件或其任何组合的计算机可读介质来实施。对于硬件实施,这里描述的实施方式可以通过使用特定用途集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理装置(DSPD)、可编程逻辑装置(PLD)、现场可编程门阵列(FPGA)、处理器、控制器、微控制器、微处理器、被设计为执行这里描述的功能的电子单元中的至少一种来实施,在一些情况下,这样的实施方式可以在控制器180中实施。对于软件实施,诸如过程或功能的实施方式可以与允许执行至少一种功能或操作的单独的软件模块来实施。软件代码可以由以任何适当的编程语言编写的软件应用程序(或程序)来实施,软件代码可以存储在存储器160中并且由控制器180执行。
至此,己经按照其功能描述了移动终端。下面,为了简要起见,将描述诸如折叠型、直板型、摆动型、滑动型移动终端等等的各种类型的移动终端 中的滑动型移动终端作为示例。因此,本发明能够应用于任何类型的移动终端,并且不限于滑动型移动终端。
如图1中所示的移动终端100可以被构造为利用经由帧或分组发送数据的诸如有线和无线通信系统以及基于卫星的通信系统来操作。
现在将参考图2描述其中根据本发明的移动终端能够操作的通信系统。
这样的通信系统可以使用不同的空中接口和/或物理层。例如,由通信系统使用的空中接口包括例如频分多址(FDMA)、时分多址(TDMA)、码分多址(CDMA)和通用移动通信系统(UMTS)(特别地,长期演进(LTE))、全球移动通信系统(GSM)等等。作为非限制性示例,下面的描述涉及CDMA通信系统,但是这样的教导同样适用于其它类型的系统。
参考图2,CDMA无线通信系统可以包括多个移动终端100、多个基站(BS)270、基站控制器(BSC)275和移动交换中心(MSC)280。MSC280被构造为与公共电话交换网络(PSTN)290形成接口。MSC280还被构造为与可以经由回程线路耦接到基站270的BSC275形成接口。回程线路可以根据若干己知的接口中的任一种来构造,所述接口包括例如E1/T1、ATM,IP、PPP、帧中继、HDSL、ADSL或xDSL。将理解的是,如图2中所示的系统可以包括多个BSC2750。
每个BS270可以服务一个或多个分区(或区域),由多向天线或指向特定方向的天线覆盖的每个分区放射状地远离BS270。或者,每个分区可以由用于分集接收的两个或更多天线覆盖。每个BS270可以被构造为支持多个频率分配,并且每个频率分配具有特定频谱(例如,1.25MHz,5MHz等等)。
分区与频率分配的交叉可以被称为CDMA信道。BS270也可以被称为基站收发器子系统(BTS)或者其它等效术语。在这样的情况下,术语"基站"可以用于笼统地表示单个BSC275和至少一个BS270。基站也可以被称为"蜂窝站"。或者,特定BS270的各分区可以被称为多个蜂窝站。
如图2中所示,广播发射器(BT)295将广播信号发送给在系统内操作的移动终端100。如图1中所示的广播接收模块111被设置在移动终端100处以接收由BT295发送的广播信号。在图2中,示出了几个全球定位系统(GPS)卫星300。卫星300帮助定位多个移动终端100中的至少一个。
在图2中,描绘了多个卫星300,但是理解的是,可以利用任何数目的卫 星获得有用的定位信息。如图1中所示的GPS模块115通常被构造为与卫星300配合以获得想要的定位信息。替代GPS跟踪技术或者在GPS跟踪技术之外,可以使用可以跟踪移动终端的位置的其它技术。另外,至少一个GPS卫星300可以选择性地或者额外地处理卫星DMB传输。
作为无线通信系统的一个典型操作,BS270接收来自各种移动终端100的反向链路信号。移动终端100通常参与通话、消息收发和其它类型的通信。特定基站270接收的每个反向链路信号被在特定BS270内进行处理。获得的数据被转发给相关的BSC275。BSC提供通话资源分配和包括BS270之间的软切换过程的协调的移动管理功能。BSC275还将接收到的数据路由到MSC280,其提供用于与PSTN290形成接口的额外的路由服务。类似地,PSTN290与MSC280形成接口,MSC与BSC275形成接口,并且BSC275相应地控制BS270以将正向链路信号发送到移动终端100。
基于上述移动终端硬件结构以及通信系统,提出本发明触摸操作区域长按操作的识别方法各个实施例。
本发明实施例的触摸操作区域长按操作的识别方法,特别适用于窄边框或无边框移动终端,本发明实施例所提及的移动终端触摸操作区域是用来接收用户触摸操作的区域,可选地,将该触摸操作区域分为边缘区域和非边缘区域的普通区域。其中,边缘区域是移动终端触摸操作区域靠近两较长边框的条形区域,边缘区域的大小(如宽度和长度)和个数均可调整,该边缘区域之外的触摸操作区域为普通区域;普通区域即相关技术中触摸操作区域的触摸区域,用于正常接收用户的触摸操作,并执行相应的指令(即做出相应的响应)。
在移动终端中虚拟两个输入设备,具体地,移动终端的触摸操作区域驱动始化时通过input_register_device()指令注册两个输入设备(input),如输入设备0(input0)和输入设备1(input1)。并通过input_allocate_device()指令为每一个分区分配一个输入设备,如普通分区对应输入设备0,特殊分区对应输入设备1。在注册好该两个输入设备后,上层根据驱动层上报的输入设备的命名,识别出当前用户触摸区域是普通区域还是边缘区域,不同的区域,上层处理方式不同。该处所提及的上层通常指框架(Framework)层、应用层 等,在移动终端的系统中,例如android、IOS等定制系统,通常包括底层(物理层,驱动层)以及上层(框架层,应用层),信号流的走向为:物理层(触摸面板)接收到用户的触摸操作,物理按压转变为电信号TP,将TP传递至驱动层,驱动层对按压的位置进行解析,得到位置点的具体坐标,持续时间,压力等参数,将该参数上传至框架层,框架层与驱动层的通信可通过相应的接口来实现,框架层接收到驱动层的输入设备(input),解析该输入设备,从而选择响应或不响应该输入设备,并将有效的输入向上传递给具体哪一个应用,以满足应用层根据不同的事件执行不同的应用操作。
在框架(Framework)层接收到上报事件(上报事件包括输入设备以及触摸点或触摸操作各项参数等)后,首先根据输入设备的命名,识别是哪一个区域,驱动层(kernel)识别是在特殊分区触摸,则驱动层上报到框架层的输入设备是input1,而不是用input0来上报,即,框架层不需要判断当前触摸点在哪一个分区,也不需要判断分区的大小和位置,这些判断操作在驱动层上完成,并且,驱动层除了上报具体是哪一个输入设备,还会上报该触摸点的各项参数至框架层,例如按压时间,位置坐标,压力大小等等。
需要说明的是,在上报事件是边缘区域对应输入设备上报的时候,框架层在接收到上报事件后,通过单通道转多通道的机制,上报到应用层。具体为:先注册一个通道,通过该通道传递该上报事件,通过监听器(listener)监听该事件,将该事件通过不同的通道,传递至对应的应用模块,产生不同的应用操作,其中,应用模块包括摄像、联系人等常用应用;产生不同的应用操作,例如在摄像应用下,用户在特殊分区点击,则会产生调焦,拍摄,调摄像参数等不同操作。要注意,上报事件传递到监听器之前,是单通道,监听器监听之后,上报事件走的是多通道,且多通道同时存在,其好处在于可同时传递至不同的应用模块,不同应用模块产生不同的响应操作。
可选地,上述过程具体实现为:利用面向对象化的方式,定义普通区域和边缘区域的类别以及实现方式,在判断是边缘区域后,通过EventHub函数将不同分辨率的触摸点坐标转化为LCD的坐标,定义单通道函数(例如serverchannel和clientchannel等),该函数的作用是,当收到上报事件后,将该事件通过该通道传递至事件管理器(TouchEventManager),通过监听器的监听,将该事件通过多通道同时或逐一传递至多个响应的应用模块下,也可以 只传递给其中的一个应用模块,应用模块如camera,gallery等,不同应用模块产生相应的操作。当然,上述过程的具体实现也可以为其他方式实现,本发明实施例对此不做限制。
此外,在上报事件是边缘区域对应输入设备上报的时候,框架层在接收到上报事件后,不再通过单通道转多通道的机制,而是直接通过多通道的机制,监听器(listener)监听该事件,将该事件通过不同的通道,传递至对应的应用模块,产生不同的应用操作,其中,应用模块包括摄像,联系人等常用应用;产生不同的应用操作,例如在摄像应用下,用户在普通分区点击,则会产生调焦,拍摄,调摄像参数等不同操作。需要注意的是,该多通道并非同时存在,而是单位时间只产生单个通道。
可选地,上述过程的具体实现为:在判断是普通分区后,通过EventHub函数将不同分辨率的触摸点坐标转化为LCD的坐标,定义单通道函数(例如serverchannel和clientchannel等),该函数的作用是,当收到上报事件后,将该事件通过该通道传递至事件管理器(TouchEventManager),通过监听器的监听,将该事件通过多通道逐一传递至多个响应的应用模块下,也可以只传递给其中的一个应用模块,应用模块如camera,gallery等,不同应用模块产生相应的操作。当然,上述过程的具体实现也可以为其他方式实现,本发明实施例对此不做限制。
如图3所示,在本发明触摸操作区域长按操作的识别方法的第一实施例中,该触摸操作区域长按操作的识别方法包括:
步骤S10,在基于终端触摸操作区域的边缘区域接收到触摸操作时,实时获取所述触摸操作当前位置信息;
此处终端可为移动终端(例如智能手机),在终端触摸操作区域的边缘区域中接收到触摸操作时,开始实时获取该触摸操作当前位置信息,该位置信息是基于预设在移动终端触摸操作区域内的平面坐标系,获取的触摸操作所在的位置坐标。
步骤S20,在第一次获取到当前位置信息时,将获取到的当前位置信息作为初始位置信息,或者说将第一次获取到的当前位置信息作为初始位置信息;
在第一次获取到当前位置信息时,将获取到的当前位置信息作为初始位置信息(例如初始位置坐标(X0,Y0))。
步骤S30,在第一次获取到当前位置信息之后,在每次获取到所述当前位置信息时,将每次获取到的所述当前位置信息与所述初始位置信息进行比对;
在第一次获取到当前位置信息之后,每过预设时间间隔获取一次所述触摸操作的当前位置信息,将在初始位置信息之后获取到的当前位置信息与所述初始位置信息进行比对。
步骤S40,只要有一次获取到的位置信息与初始获取到的位置信息不匹配时,则停止获取所述触摸操作当前位置信息;
在获取到的位置信息与初始获取到的位置信息不匹配时,表明此次触摸操作的移动距离不满足预设条件,如该次触摸操作的移动距离过大,形成了滑动操作,则停止获取触摸操作当前位置信息。
步骤S50,在之前获取到的所有位置信息都与初始获取到的位置信息匹配时,继续获取所述触摸操作当前位置信息,直至获取所述触摸操作持续时长大于等于预设时长,确定当前的触摸操作为长按操作。
在获取到的位置信息与初始获取到的位置信息匹配时,如当前位置与初始位置之间的距离小于预设值,表明此次触摸操作移动距离小,符合长按操作在移动距离上的要求,但是长按操作还需要考虑触摸时长的因素,故继续获取该触摸操作当前位置信息,继续将获取到的当前位置信息与初始位置信息进行比对,直至在所述触摸操作持续时长大于等于预设时长,且在该触摸操作持续的这段时间内,实时获取的当前位置信息与初始位置信息都是匹配的,则确定当前的触摸操作为长按操作。
在本实施例中,通过在终端触摸操作区域的边缘区内接收到触摸操作时,实时获取该触摸操作的当前位置信息,并在第一次获取到当前位置信息时,将获取的当前位置信息作为初始位置信息(设为A0);然后在第一次获取到当前位置信息之后,每隔预设时间间隔T0(如,预设时间间隔为50ms)获取一次触摸操作当前位置信息,在每次获取到所述当前位置信息时,将获取到的所述当前位置信息与所述初始位置信息进行比对,例如,设距离获取到初始位置信息A0之后一个预设时间间隔T0所获取的当前位置信息为A1,二个预 设时间间隔T0所获取的当前位置信息为A2,依次类推,获取A3、A4、A5……An,n等于预设时长除以预设时间间隔的商并取整后的得数,然后将A1与A0进行比对,若A1与A0不匹配,则停止获取所述触摸操作的当前位置信息;若A1与A0匹配,则继续将A2与A0进行匹配,直至An与A0也匹配(即获取所述触摸操作持续时长大于等于预设时长且当前位置信息都与初始位置信息匹配),则确定当前的触摸操作为长按操作,这样通过在预设时长内实时检测将获取的当前位置信息与初始位置信息进行比对,当在预设时长内采获取的当前位置信息与初始位置信息全部匹配时,才确定此次触摸操作为长按操作,避免将其它触摸操作(如滑动操作)识别为长按操作,提高了长按操作的准确率。
进一步地,基于第一实施例提出本发明触摸操作区域长按操作的识别方法第二实施例,参照图4,在本实施例中,步骤S10,在基于终端触摸操作区域的边缘区域接收到触摸操作时,实时获取所述触摸操作当前位置信息的步骤包括:
步骤S11,在基于终端触摸操作区域的边缘区域接收到触摸操作时,获取所述触摸操作对应的触点数量;
步骤S12,在所述触点数量小于预设阈值时,排除握持操作的可能,实时获取所述触摸操作当前位置信息。
在本实施例中,在基于终端触摸操作区域的边缘区域接收到触摸操作时,获取所述触摸操作对应的触点数量,在所述触点数量小于预设阈值时,排除握持操作,实时获取所述触摸操作当前位置信息,从而避免将用户握持终端的握持动作错误地识别为长按操作,进一步提高了长按操作的识别准确率。为何触点数量小于预设阈值时讷讷狗狗排除握持操作呢,原因如下:例如因为用户握持终端的手势分为竖向握持和横向握持,竖向握持和横向握持终端均有3个及3个以上触点,如果将预设阈值设置为2,在触点数量小于2时,就能排除该触摸操作不是用户握持终端所产生的触摸操作。
可选地,步骤S12包括:
步骤S121,在所述触点数量小于预设阈值时,确定各个触点对应的位置信息;
步骤S122,在所述位置信息与预设的位置信息不匹配时,实时获取所述触摸操作当前位置信息。
在本实施例中,在所述触摸操作的触点数量小于预设阈值时,确定各个触点对应的位置信息;在所述位置信息与预设的位置信息不匹配时,例如预设的位置信息为所有的触点不位于终端一侧的边缘区域内,在确定各个触点对应的位置信息后,确定出该触摸操作的触点只分布于终端触摸操作区域中单侧的边缘区域中时,才说明有长按操作的可能,才继续后续步骤,即实时获取该触摸操作当前位置信息。例如,2个触点握持终端的情况下,如果预设阈值为3,触点数量2虽然小于预设阈值3,如果不执行该步骤,则会继续后续步骤,最后可能会将该情况识别为长按操作,造成错误,而执行该步骤后,因为握持操作的触点不位于终端一侧的边缘区域内,所以不执行后续操作,这样就避免了将触点数小于预设阈值且又为握持动作的特殊触摸操作识别为长按操作,进一步提高了长按操作的识别准确率。
进一步地,基于第一实施例提出本发明触摸操作区域长按操作的识别方法第三实施例,参照图5,在本实施例中,步骤S30包括:
步骤S31,在第一次获取到当前位置信息之后,在每次获取到所述当前位置信息时,根据所述当前位置信息对应的坐标信息与所述初始位置信息对应的坐标信息计算当前位置与初始位置之间的距离;
在第一次获取到当前位置信息之后,在每次获取到当前位置信息时,根据根据所述当前位置信息对应的坐标信息与所述初始位置信息对应的坐标信息计算当前位置与初始位置之间的距离,例如初始位置对应坐标信息为(X0,Y0),每次获取到的当前位置信息对应的坐标信息为(X1,Y1)、(X2,Y2)等,根据
Figure PCTCN2016076392-appb-000001
得出第二次获取到的当前位置与初始位置之间的距离,同理可得出第三次、第四次获取到的当前位置与初始位置之间的距离。
步骤S32,判断计算得到的所述距离是否小于预设距离,其中,计算得到的所述距离小于所述预设距离时,判定所述获取到的当前位置信息与初始获取到的位置信息匹配。
在第一次获取当前位置信息之后,判断每次获取到的当前位置与初始位 置之间的距离是否小于预设距离,其中,计算得到的所述距离小于所述预设距离时,判定所述获取到的位置信息与初始获取到的位置信息匹配。
在本实施例中,以一种较为简单的计算方式实现了将获取到的所述当前位置信息与所述初始位置信息进行比对的步骤,通过获取到的当前位置与初始位置之间的距离,来判定获取到的当前位置信息是否与初始获取到的位置信息匹配,提高了比对识别的效率。
进一步地,在本发明触摸操作区域长按操作的识别方法第一至第三实施例中,在确定当前的触摸操作为长按操作之后,还包括:
步骤S60,确定当前应用场景;
通过终端的内置控制器获取并确定终端的当前应用场景,例如,应用场景包括相机应用场景、待机屏保场景。
步骤S70,获取当前应用场景所述长按操作对应的控制指令,并响应所述控制指令。
终端中预存有不同应用场景长按操作与不同控制指令的对应关系,根据当前应用场景,获取当前应用场景长按操作对应的控制指令,并响应该控制指令,例如,在相机拍摄场景时,当在触摸操作区域的边缘区域识别到长按操作时,获取此时长按操作对应的控制指令,此时相机拍摄场景下的长按操作对应控制指令为删除照片。
在本实施例中,通过对终端触摸操作区域的边缘区域长按操作在不同应用场景定义不同的控制指令,为用户提供了更多的交互方式,丰富了终端,特别是智能手机,的操作方式,提高了终端的操作便捷性。
本发明实施例进一步提供一种触摸操作区域长按操作的识别装置,参照图6,在本发明触摸操作区域长按操作的识别装置的第一实施例中,该触摸操作区域长按操作的识别装置包括:
位置获取模块10,设置成:在基于终端触摸操作区域的边缘区域接收到触摸操作时,实时获取所述触摸操作当前位置信息;
此处终端可为移动终端(例如智能手机),在终端触摸操作区域的边缘区域中接收到触摸操作时,开始实时获取该触摸操作当前位置信息,该位置信 息是基于预设在移动终端触摸操作区域内的平面坐标系,获取的触摸操作所在的位置坐标。
初始位置定义模块20,设置成:在第一次获取到当前位置信息时,将获取到的当前位置信息作为初始位置信息,
在第一次获取到当前位置信息时,将获取到的当前位置信息作为初始位置信息(例如初始位置坐标(X0,Y0))。
位置信息比对模块30,设置成:在第一次获取到当前位置信息之后,在每次获取到所述当前位置信息时,将获取到的所述当前位置信息与所述初始位置信息进行比对;
在第一获取到当前位置信息之后,每过预设时间间隔获取一次所述触摸操作的当前位置信息,将在初始位置信息之后获取到的当前位置信息与所述初始位置信息进行比对。
动作识别模块40,设置成:在获取到的位置信息与初始获取到的位置信息不匹配时,停止获取所述触摸操作当前位置信息;在获取到的位置信息与初始获取到的位置信息匹配时,继续获取所述触摸操作当前位置信息,直至获取所述触摸操作持续时长大于等于预设时长,确定当前的触摸操作为长按操作。
在获取到的位置信息与初始获取到的位置信息不匹配时,表明此次触摸操作的移动距离不满足预设条件,如该次触摸操作的移动距离过大,形成了滑动操作,则停止获取触摸操作当前位置信息。
在获取到的位置信息与初始获取到的位置信息匹配时,如当前位置与初始位置之间的距离小于预设值,表明此次触摸操作移动距离小,符合长按操作在移动距离上的要求,但是长按操作还需要考虑触摸时长的因素,故继续获取该触摸操作当前位置信息,继续将获取到的当前位置信息与初始位置信息进行比对,直至在所述触摸操作持续时长大于等于预设时长,且在该触摸操作持续的这段时间内,实时获取的当前位置信息与初始位置信息都是匹配的,则确定当前的触摸操作为长按操作。
在本实施例中,通过在终端触摸操作区域的边缘区内接收到触摸操作时,实时获取该触摸操作的当前位置信息,并在第一次获取到当前位置信息时,将获取的当前位置信息作为初始位置信息(设为A0);然后在第一次获取到 当前位置信息之后,每隔预设时间间隔T0(如,预设时间间隔为50ms)获取一次触摸操作当前位置信息,在每次获取到所述当前位置信息时,将获取到的所述当前位置信息与所述初始位置信息进行比对,例如,设距离获取到初始位置信息A0之后一个预设时间间隔T0所获取的当前位置信息为A1,二个预设时间间隔T0所获取的当前位置信息为A2,依次类推,获取A3、A4、A5……An,n等于预设时长除以预设时间间隔的商并取整后的得数,然后将A1与A0进行比对,若A1与A0不匹配,则停止获取所述触摸操作的当前位置信息;若A1与A0匹配,则继续将A2与A0进行匹配,直至An与A0也匹配(即获取所述触摸操作持续时长大于等于预设时长且当前位置信息都与初始位置信息匹配),则确定当前的触摸操作为长按操作,这样通过在预设时长内实时检测将获取的当前位置信息与初始位置信息进行比对,当在预设时长内采获取的当前位置信息与初始位置信息全部匹配时,才确定此次触摸操作为长按操作,避免将其它触摸操作(如滑动操作)识别为长按操作,提高了长按操作的准确率。
进一步地,基于第一实施例提出本发明触摸操作区域长按操作的识别装置第二实施例,参照图7,在本实施例中,位置获取模块10包括:
触点数量获取单元101,设置成:在基于终端触摸操作区域的边缘区域接收到触摸操作时,获取所述触摸操作对应的触点数量;
位置信息获取单元102,设置成:在所述触点数量小于预设阈值时,实时获取所述触摸操作当前位置信息。
在本实施例中,在基于终端触摸操作区域的边缘区域接收到触摸操作时,获取所述触摸操作对应的触点数量,在所述触点数量小于预设阈值时,(例如预设阈值为2,在触点数量小于2时,此时触摸操作很可能不是用户握持终端所产生的触摸操作因为用户握持终端的手势分为竖向握持和横向握持,竖向握持和横向握持终端均有3个及3个以上触点),实时获取所述触摸操作当前位置信息,从而避免将用户握持终端的握持动作错误地识别为长按操作,进一步提高了长按操作的识别准确率。
可选地,位置信息获取单元102还设置成:
在所述触点数量小于预设阈值时,确定各个触点对应的位置信息;
在所述位置信息与预设的位置信息不匹配时,实时获取所述触摸操作当前位置信息。
在本实施例中,在所述触摸操作的触点数量小于预设阈值时,确定各个触点对应的位置信息;在所述位置信息与预设的位置信息不匹配时,例如预设的位置信息为所有的触点不位于终端一侧的边缘区域内,在该触摸操作的触点只分布于终端触摸操作区域中单侧的边缘区域中时,实时获取该触摸操作当前位置信息,从而避免将触点数小于预设阈值且又为握持动作的特殊触摸操作(例如2个触点握持终端)识别为长按操作,进一步提高了长按操作的识别准确率。
进一步地,基于第一实施例提出本发明触摸操作区域长按操作的识别装置第三实施例,参照图8,在本实施例中,位置信息比对模块30包括:
距离计算单元301,设置成:在第一次获取到当前位置信息之后,在每次获取到所述当前位置信息时,根据所述当前位置信息对应的坐标信息与所述初始位置信息对应的坐标信息计算当前位置与初始位置之间的距离;
在第一次获取到当前位置信息之后,在每次获取到当前位置信息时,根据根据所述当前位置信息对应的坐标信息与所述初始位置信息对应的坐标信息计算当前位置与初始位置之间的距离,例如初始位置对应坐标信息为(X0,Y0),每次获取到的当前位置信息对应的坐标信息为(X1,Y1)、(X2,Y2)等,根据
Figure PCTCN2016076392-appb-000002
得出第二次获取到的当前位置与初始位置之间的距离,同理可得出第三次、第四次获取到的当前位置与初始位置之间的距离。
距离判断单元302,设置成:判断计算得到的所述距离是否小于预设距离,其中,计算得到的所述距离小于所述预设距离时,判定所述获取到的当前位置信息与初始获取到的位置信息匹配。
在第一次获取当前位置信息之后,判断每次获取到的当前位置与初始位置之间的距离是否小于预设距离,其中,计算得到的所述距离小于所述预设距离时,判定所述获取到的位置信息与初始获取到的位置信息匹配。
在本实施例中,以一种较为简单的计算方式实现了将获取到的所述当前位置信息与所述初始位置信息进行比对的步骤,通过获取到的当前位置与初 始位置之间的距离,来判定获取到的当前位置信息是否与初始获取到的位置信息匹配,提高了比对识别的效率。
进一步地,在本发明触摸操作区域长按操作的识别装置第一、第二、第三实施例中,该装置还包括:
操作响应模块50,设置成:确定当前应用场景,并获取当前应用场景所述长按操作对应的控制指令,并响应所述控制指令。
通过终端的内置控制器获取并确定终端的当前应用场景,例如,应用场景包括相机应用场景、待机屏保场景。
终端中预存有不同应用场景长按操作与不同控制指令的对应关系,根据当前应用场景,获取当前应用场景长按操作对应的控制指令,并响应该控制指令,例如,在相机拍摄场景时,当在触摸操作区域的边缘区域识别到长按操作时,获取此时长按操作对应的控制指令,此时相机拍摄场景下的长按操作对应控制指令为删除照片。
在本实施例中,通过对终端触摸操作区域的边缘区域长按操作在不同应用场景定义不同的控制指令,为用户提供了更多的交互方式,丰富了终端,特别是智能手机,的操作方式,提高了终端的操作便捷性。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
本发明实施例还公开了一种计算机程序,包括程序指令,当该程序指令被终端执行时,使得该终端可执行上述任意的触摸操作区域长按操作的识别方法。
本发明实施例还公开了一种载有所述的计算机程序的载体。
在阅读并理解了附图和详细描述后,可以明白其他方面。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。
上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。
任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求所述的保护范围为准。
工业实用性
本发明技术方案通过在终端触摸操作区域的边缘区内接收到触摸操作时,实时获取该触摸操作的当前位置信息,并在第一次获取到当前位置信息时,将获取的当前位置信息作为初始位置信息;然后在第一次获取到当前位置信息之后,在每次获取到当前位置信息时,将获取到的当前位置信息与初始位置信息进行比对,在获取到的位置信息与初始获取到的位置信息匹配时,继续获取触摸操作当前位置信息,直至获取触摸操作持续时长大于等于预设时长,确定当前的触摸操作为长按操作,这样通过在预设时长内实时检测将获取的当前位置信息与初始位置信息进行比对,当在预设时长内采获取的当前位置信息与初始位置信息全部匹配时,才确定此次触摸操作为长按操作,避免将其它触摸操作识别为长按操作,提高了长按操作的准确率。因此本发明具有很强的工业实用性。

Claims (20)

  1. 一种触摸操作区域长按操作的识别方法,包括:
    在基于终端触摸操作区域的边缘区域接收到触摸操作时,实时获取所述触摸操作的当前位置信息;
    在第一次获取到当前位置信息时,将该当前位置信息作为初始位置信息;
    在第一次获取到当前位置信息之后,继续获取所述触摸操作的当前位置信息;
    在后续每次获取到当前位置信息时,将每次获取到的当前位置信息与所述初始位置信息进行比对;
    只要有一次获取到的位置信息与初始获取到的位置信息不匹配,则停止获取所述触摸操作当前位置信息;
    如果之前每次获取到的位置信息都与初始获取到的位置信息相匹配,则继续获取所述触摸操作当前位置信息,直至获取所述触摸操作的持续时长大于等于预设时长,且在该触摸操作持续的这段时间内,实时获取的所有当前位置信息与初始位置信息都是匹配的,则确定所述触摸操作为长按操作。
  2. 如权利要求1所述的触摸操作区域长按操作的识别方法,其中,所述在基于终端触摸操作区域的边缘区域接收到触摸操作时,实时获取所述触摸操作的当前位置信息的步骤包括:
    在基于终端触摸操作区域的边缘区域接收到所述触摸操作时,获取所述触摸操作对应的触点数量;
    在所述触点数量小于预设阈值时,实时获取所述触摸操作的当前位置信息。
  3. 如权利要求2所述的触摸操作区域长按操作的识别方法,其中,所述在所述触点数量小于预设阈值时,实时获取所述触摸操作的当前位置信息的步骤包括:
    在所述触点数量小于所述预设阈值时,确定所有触点对应的位置信息;
    根据所有触点对应的位置信息确定所有触点只分布于终端触摸操作区域中单侧的边缘区域中时,实时获取所述触摸操作的当前位置信息。
  4. 如权利要求2所述的触摸操作区域长按操作的识别方法,其中,所述预设阈值为2或3。
  5. 如权利要求1所述的触摸操作区域长按操作的识别方法,其中,所述在第一次获取到当前位置信息之后,在每次获取到所述当前位置信息时,将每次获取到的当前位置信息与所述初始位置信息进行比对的步骤包括:
    在第一次获取到当前位置信息之后,在每次获取到所述当前位置信息时,根据每次获取到的当前位置信息对应的坐标信息与所述初始位置信息对应的坐标信息计算当前位置与初始位置之间的距离;
    判断计算得到的所述距离是否小于预设距离;
    若计算得到的所述距离小于所述预设距离,则判定此次获取到的当前位置信息与初始获取到的位置信息匹配。
  6. 如权利要求1-5中任一项所述的触摸操作区域长按操作的识别方法,其中,所述确定当前的触摸操作为长按操作的步骤之后,所述触摸操作区域长按操作的识别方法还包括:
    确定当前应用场景;
    获取当前应用场景所述长按操作对应的控制指令,并响应所述控制指令。
  7. 如权利要求1所述的触摸操作区域长按操作的识别方法,其中,所述继续获取所述触摸操作的当前位置信息的步骤包括:
    每隔预设时间间隔获取一次所述触摸操作的当前位置信息。
  8. 如权利要求6所述的触摸操作区域长按操作的识别方法,其中,所述获取当前应用场景所述长按操作对应的控制指令的步骤之前,该方法还包括:
    预存不同应用场景长按操作与不同控制指令的对应关系。
  9. 如权利要求1所述的触摸操作区域长按操作的识别方法,其中,所述触摸操作当前位置信息为:
    所述触摸操作在预设于所述终端触摸操作区域内的平面坐标系中所处的 位置坐标。
  10. 一种触摸操作区域长按操作的识别装置,其中,所述触摸操作区域长按操作的识别装置包括位置获取模块、初始位置定义模块、位置信息比对模块和动作识别模块,其中:
    所述位置获取模块设置成:在基于终端触摸操作区域的边缘区域接收到触摸操作时,实时获取所述触摸操作的当前位置信息;
    所述初始位置定义模块设置成:在所述位置获取模块第一次获取到所述触摸操作的当前位置信息时,将该当前位置信息作为初始位置信息,
    所述位置信息比对模块设置成:在第一次获取到当前位置信息之后,在每次获取到所述触摸操作的当前位置信息时,将每次获取到的当前位置信息与所述初始位置信息进行比对;
    所述动作识别模块设置成:只要有一次获取到的位置信息与初始获取到的位置信息不匹配时,则停止获取所述触摸操作的当前位置信息;之前每次获取到的位置信息都与初始获取到的位置信息匹配时,继续获取所述触摸操作的当前位置信息,直至获取所述触摸操作持续时长大于等于预设时长,且在该触摸操作持续的这段时间内,实时获取的当前位置信息与初始位置信息都是匹配的,确定当前的触摸操作为长按操作。
  11. 如权利要求10所述的触摸操作区域长按操作的识别装置,其中,所述位置获取模块包括触点数量获取单元和位置信息获取单元,其中:
    所述触点数量获取单元设置成:在基于终端触摸操作区域的边缘区域接收到触摸操作时,获取所述触摸操作对应的触点数量;
    所述位置信息获取单元设置成:在所述触点数量小于预设阈值时,实时获取所述触摸操作的当前位置信息。
  12. 如权利要求11所述的触摸操作区域长按操作的识别装置,其中,所述位置信息获取单元设置成按照如下方式在所述触点数量小于预设阈值时,实时获取所述触摸操作的当前位置信息:
    在所述触点数量小于预设阈值时,确定所有触点对应的位置信息;
    根据所有触点对应的位置信息确定所有触点只分布于终端触摸操作区域中单侧的边缘区域中时,实时获取所述触摸操作当前位置信息。
  13. 如权利要求12所述的触摸操作区域长按操作的识别装置,其中,所述预设阈值为2或3。
  14. 如权利要求10所述的触摸操作区域长按操作的识别装置,其中,所述位置信息比对模块包括距离计算单元和距离判断单元,其中:
    所述距离计算单元设置成:在第一次获取到当前位置信息之后,在每次获取到所述当前位置信息时,根据每次获取到的当前位置信息对应的坐标信息与所述初始位置信息对应的坐标信息计算当前位置与初始位置之间的距离;
    所述距离判断单元设置成:判断计算得到的所述距离是否小于预设距离,若计算得到的所述距离小于所述预设距离时,判定此次获取到的当前位置信息与初始获取到的位置信息匹配。
  15. 如权利要求10至14中任意一项所述的触摸操作区域长按操作的识别装置,还包括:
    操作响应模块,设置成:确定当前应用场景,并获取当前应用场景所述长按操作对应的控制指令,并响应所述控制指令。
  16. 如权利要求10所述的触摸操作区域长按操作的识别装置,其中,所述继续获取所述触摸操作的当前位置信息的步骤包括:
    每隔预设时间间隔获取一次所述触摸操作的当前位置信息。
  17. 如权利要求10所述的触摸操作区域长按操作的识别装置,其中,所述触摸操作当前位置信息为:
    所述触摸操作在预设于所述终端触摸操作区域内的平面坐标系中所处的位置坐标。
  18. 一种终端,包括如权利要求10-17中任一项所述的触摸操作区域长按操作的识别装置。
  19. 一种计算机程序,包括程序指令,当该程序指令被终端执行时,使得该终端可执行如权利要求1-9中任一项所述的触摸操作区域长按操作的识别方法。
  20. 一种载有如权利要求19所述的计算机程序的载体。
PCT/CN2016/076392 2015-03-30 2016-03-15 触摸操作区域长按操作的识别方法及装置 WO2016155490A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510145383.6A CN104750418B (zh) 2015-03-30 2015-03-30 触摸操作区域长按操作的识别方法及装置
CN201510145383.6 2015-03-30

Publications (1)

Publication Number Publication Date
WO2016155490A1 true WO2016155490A1 (zh) 2016-10-06

Family

ID=53590185

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/076392 WO2016155490A1 (zh) 2015-03-30 2016-03-15 触摸操作区域长按操作的识别方法及装置

Country Status (2)

Country Link
CN (1) CN104750418B (zh)
WO (1) WO2016155490A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2699392C1 (ru) * 2018-10-18 2019-09-05 Данил Игоревич Симонов Распознавание одно- и двухмерных штрихкодов операцией "потяни-для-сканирования (pull-to-scan)"

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104750418B (zh) * 2015-03-30 2017-03-15 努比亚技术有限公司 触摸操作区域长按操作的识别方法及装置
CN109101132A (zh) * 2018-08-07 2018-12-28 锐达互动科技股份有限公司 一种传统教学与电子白板投影教学快速切换的方法
CN110058755A (zh) * 2019-04-15 2019-07-26 广州视源电子科技股份有限公司 一种演示文稿交互的方法、装置、终端设备和存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101963863A (zh) * 2010-09-30 2011-02-02 华为终端有限公司 用户触摸操作模式自适应的方法和装置
US20130044062A1 (en) * 2011-08-16 2013-02-21 Nokia Corporation Method and apparatus for translating between force inputs and temporal inputs
EP2660702A2 (en) * 2012-05-02 2013-11-06 Sony Mobile Communications AB Technique for displaying on the basis of duration of operation of an input device
CN103869940A (zh) * 2012-12-13 2014-06-18 富泰华工业(深圳)有限公司 触感反馈系统、电子装置及其提供触感反馈的方法
CN104020878A (zh) * 2014-05-22 2014-09-03 小米科技有限责任公司 触摸输入控制方法及装置
CN104281339A (zh) * 2013-07-11 2015-01-14 原相科技股份有限公司 触控面板的目标定位方法
CN104750418A (zh) * 2015-03-30 2015-07-01 努比亚技术有限公司 触摸操作区域长按操作的识别方法及装置

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101963863A (zh) * 2010-09-30 2011-02-02 华为终端有限公司 用户触摸操作模式自适应的方法和装置
US20130044062A1 (en) * 2011-08-16 2013-02-21 Nokia Corporation Method and apparatus for translating between force inputs and temporal inputs
EP2660702A2 (en) * 2012-05-02 2013-11-06 Sony Mobile Communications AB Technique for displaying on the basis of duration of operation of an input device
CN103869940A (zh) * 2012-12-13 2014-06-18 富泰华工业(深圳)有限公司 触感反馈系统、电子装置及其提供触感反馈的方法
CN104281339A (zh) * 2013-07-11 2015-01-14 原相科技股份有限公司 触控面板的目标定位方法
CN104020878A (zh) * 2014-05-22 2014-09-03 小米科技有限责任公司 触摸输入控制方法及装置
CN104750418A (zh) * 2015-03-30 2015-07-01 努比亚技术有限公司 触摸操作区域长按操作的识别方法及装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2699392C1 (ru) * 2018-10-18 2019-09-05 Данил Игоревич Симонов Распознавание одно- и двухмерных штрихкодов операцией "потяни-для-сканирования (pull-to-scan)"

Also Published As

Publication number Publication date
CN104750418B (zh) 2017-03-15
CN104750418A (zh) 2015-07-01

Similar Documents

Publication Publication Date Title
WO2016029766A1 (zh) 移动终端及其操作方法和计算机存储介质
WO2016173468A1 (zh) 组合操作方法和装置、触摸屏操作方法及电子设备
WO2016169483A1 (zh) 移动终端及其利用虚拟边框区域实现功能调节的方法
WO2016155550A1 (zh) 无边框终端的应用切换方法及无边框终端
WO2017143847A1 (zh) 关联应用分屏显示装置、方法及终端
WO2016155424A1 (zh) 移动终端的应用切换方法及移动终端及计算机存储介质
WO2016155423A1 (zh) 调节设置参数的方法及终端、计算机存储介质
WO2016169480A1 (zh) 移动终端控制方法、装置及计算机存储介质
WO2016161986A1 (zh) 操作识别方法、装置、移动终端及计算机存储介质
WO2016155509A1 (zh) 移动终端的握持方式判断方法及装置
WO2017071481A1 (zh) 一种移动终端及其实现分屏的方法
WO2017020771A1 (zh) 终端控制装置及方法
WO2016169524A1 (zh) 快速调节屏幕亮度的方法和装置、移动终端、存储介质
WO2016058458A1 (zh) 电池电量的管理方法、移动终端和计算机存储介质
WO2016034055A1 (zh) 移动终端及其操作方法、计算机存储介质
WO2016155434A1 (zh) 移动终端的握持识别方法及装置、存储介质和终端
WO2016173498A1 (zh) 利用触屏边框输入数字符号的方法及装置、终端、介质
WO2017012385A1 (zh) 快速启动应用的方法、装置和终端
WO2016155597A1 (zh) 基于无边框终端的应用控制方法及装置
WO2017143855A1 (zh) 具有截屏功能的装置和截屏方法
WO2017071456A1 (zh) 一种终端的处理方法、终端及存储介质
WO2016155454A1 (zh) 移动终端及其虚拟边框区域的滑动识别方法
WO2017088631A1 (zh) 一种移动终端及其增减调节方法及装置、存储介质
WO2016173414A1 (zh) 移动终端及其应用程序的快速启动方法和装置
WO2016155427A1 (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: 16771245

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 150318)

122 Ep: pct application non-entry in european phase

Ref document number: 16771245

Country of ref document: EP

Kind code of ref document: A1