CN107678662B - Control method and device based on keys and intelligent terminal - Google Patents

Control method and device based on keys and intelligent terminal Download PDF

Info

Publication number
CN107678662B
CN107678662B CN201610624250.1A CN201610624250A CN107678662B CN 107678662 B CN107678662 B CN 107678662B CN 201610624250 A CN201610624250 A CN 201610624250A CN 107678662 B CN107678662 B CN 107678662B
Authority
CN
China
Prior art keywords
key
control
keys
target object
moving
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201610624250.1A
Other languages
Chinese (zh)
Other versions
CN107678662A (en
Inventor
杨宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610624250.1A priority Critical patent/CN107678662B/en
Publication of CN107678662A publication Critical patent/CN107678662A/en
Application granted granted Critical
Publication of CN107678662B publication Critical patent/CN107678662B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/042Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means
    • G06F3/0421Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means by interrupting or reflecting a light beam, e.g. optical touch-screen
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
    • 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

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

Abstract

The embodiment of the invention discloses a control method and device based on keys and an intelligent terminal, wherein the method comprises the following steps: when touch operation on a key in a terminal is detected, acquiring a moving parameter of the key after the key moves under the control of the touch operation, wherein the moving parameter of the key is detected by calling a moving detection module preset in the terminal; determining the moving direction of the key after the key is moved, and determining the touch type of the touch operation according to the moving direction; and generating a first control signal for the target object according to the acquired movement parameters and the determined touch type to control the target object.

Description

Control method and device based on keys and intelligent terminal
Technical Field
The invention relates to the technical field of computer control, in particular to a control method and device based on keys and an intelligent terminal.
Background
With the development of electronic technology and computer technology, various intelligent terminals have come into play. These intelligent terminals provide a wide variety of functions and services to users, particularly game entertainment services. There is a demand for smart devices that can provide more and more powerful functions.
Currently, most smart devices also include physical buttons, as well as a touch screen to receive partial input from a user. How to better utilize physical keys and virtual keys implemented based on a touch screen to implement more control functions in an intelligent terminal becomes a hot point of research.
Disclosure of Invention
The embodiment of the invention provides a control method and device based on keys, which can provide more key control functions.
In one aspect, an embodiment of the present invention provides a key-based control method, including:
when touch operation on a key in a terminal is detected, acquiring a moving parameter of the key after the key moves under the control of the touch operation, wherein the moving parameter of the key is detected by calling a moving detection module preset in the terminal;
determining the moving direction of the key after the key is moved, and determining the touch type of the touch operation according to the moving direction;
and generating a first control signal for the target object according to the acquired movement parameters and the determined touch type to control the target object.
Correspondingly, the embodiment of the invention also provides a control device based on the key, which comprises:
a movement detection module;
the mobile terminal comprises an acquisition module, a motion detection module and a control module, wherein the acquisition module is used for acquiring a mobile parameter of a key after the key moves under the control of touch operation when the touch operation of the key in the terminal is detected, and the mobile parameter of the key is detected by calling the motion detection module;
the determining module is used for determining the moving direction of the key after the key is moved and determining the touch type of the touch operation according to the moving direction;
and the control module is used for generating a first control signal for the target object according to the acquired movement parameters and the determined touch type so as to control the target object.
Correspondingly, the embodiment of the invention also provides an intelligent terminal, which comprises keys and a processor, wherein the keys comprise physical keys and/or virtual keys, the processor is used for acquiring the moving parameters of the keys after the keys move under the control of the touch operation when the touch operation on the keys is detected, and the moving parameters of the keys are detected by calling a moving detection module preset in the terminal; determining the moving direction of the key after the key is moved, and determining the touch type of the touch operation according to the moving direction; and generating a first control signal for the target object according to the acquired movement parameters and the determined touch type to control the target object.
The embodiment of the invention can analyze and process the touch operation directly acting on the key to determine the moving parameter of the key so as to complete the subsequent control of the target object, and increases the control mode of the key on the basis that the existing key only has two control states of pressing and lifting, so that the key has more diversity in key control. Meanwhile, the combination of the mobile parameters and the touch types is combined, more control modes can be combined, the control diversity of the keys is better ensured, and the requirements of simplifying the keys and facilitating the control of a user are met.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart illustrating a key-based control method according to an embodiment of the present invention;
FIG. 2 is a schematic illustration of an infrared sensor based determination of movement parameters in accordance with an embodiment of the present invention;
FIG. 3 is a schematic illustration of a capacitive sensor based determination of a movement parameter in accordance with an embodiment of the present invention;
FIG. 4 is a flow chart illustrating another exemplary key-based control method according to the present invention;
FIG. 5 is a schematic structural diagram of a control device based on a key according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an intelligent terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention can determine the movement parameters of the keys by sensing the physical keys or the virtual keys on the touch screen and other keys, wherein the movement parameters comprise parameters such as speed, displacement and the like in the process of pressing the keys or in the process from pressing to releasing. And then generating a control signal according to the movement parameters and the touch type and a preset control rule so as to control the corresponding target object. Wherein, touching type mainly includes: the first touch type is used for pressing the key, and the second touch type is used for releasing the pressed key. Controlling the corresponding target object includes: under certain game scenes, a certain game role is controlled to move, special actions are executed and the like; and the method also can control the camera lens to move rapidly under certain camera control scenes so as to shoot different scenes. Of course, the method can also be applied to other scenes to realize control.
Referring to fig. 1, which is a flowchart illustrating a key-based control method according to an embodiment of the present invention, the method according to the embodiment of the present invention may be implemented by various intelligent terminals, including intelligent terminals such as a mobile phone, a tablet computer, an intelligent wearable device, and a VR (Virtual Reality) device, which have physical keys or Virtual keys based on a touch screen. The method may particularly be implemented by one or more processors provided in the devices. The method specifically comprises the following steps.
S101: when the touch operation of a key in the terminal is detected, the moving parameters of the key after moving under the control of the touch operation are obtained, and the moving parameters of the key are detected by calling a moving detection module preset in the terminal.
When a control signal is required to be sent to the target object through a specific key for control, a user can perform touch operation on the key, including pressing the key and releasing the key. The key in the embodiment of the invention is set as a key capable of generating certain deformation in the pressing direction, and the specific deformation quantity of the deformation is set according to the related data (namely, the movement parameters) of the deformation of the key, which can be sensed by the infrared sensor and the capacitance sensor.
The acquired movement parameters comprise parameters such as displacement or movement speed generated in the process of pressing or releasing the key. So that the corresponding control signals for the target object can be generated respectively based on the magnitude of the displacement and the magnitude of the moving speed or the displacement and the speed are combined together to generate the corresponding control signals for the target object comprehensively according to the control rule.
The movement detection module may detect the movement parameter by invoking an infrared sensor and/or a capacitive sensor of the terminal. The infrared sensor may directly sense a distance that the key is pressed or released, the infrared sensor may calculate a displacement or a moving speed of the key by emitting infrared light to a top portion of the key (i.e., a planar portion exposed and provided for a user to press), and receiving the infrared light returned from the top portion, and the infrared sensor may be specifically referred to as fig. 2, where the infrared sensor 202 is located below the key 201, the key 201 is hollow, and a moving parameter h, that is, a moving displacement h, may be calculated by emitting and receiving a time difference and a propagation speed of the infrared light.
The capacitance sensor is mainly a capacitance displacement sensor, the capacitance sensor can detect the process that the key is pressed or released, the movement corresponding to the key is realized, the relative distance between two pole pieces of the capacitance sensor can be changed, further, the voltage can be changed, the relative distance changed between the two pole pieces can be correspondingly obtained through the changed voltage, the relative distance can be used as the displacement that the key is pressed or released, the related movement parameters of the key are measured by utilizing the capacitance sensor, the schematic diagram of figure 3 can be specifically referred, the capacitance sensor 302 is attached to the key 301, when the key is pressed or released, the distance h between the upper electrode and the lower electrode of the capacitance sensor can be changed, according to the relation between the distance change value and the voltage, the distance change value of the key 301, namely, the movement parameters can be determined.
S102: and determining the moving direction of the key after the key is moved, and determining the touch type of the touch operation according to the moving direction. Specifically, in order to implement the diversity of control, after the movement parameters are determined, different movement parameters may be further distinguished by classification, and further more control signals are obtained based on the control rules. In the embodiment of the invention, the touch type can be determined based on the motion direction of the key, the key is pressed into the first touch type, and the second touch type is released after the key is pressed. The pressing direction can be determined based on the change of the displacement, wherein the displacement is larger to be the direction of releasing the key, and the displacement is smaller to be the direction of pressing the key.
S103: and generating a first control signal for the target object according to the acquired movement parameters and the determined touch type to control the target object. The control of the target object based on the first control signal may be configured according to the actual situation, for example, by a control rule configured according to the actual situation, the control of the target game object flying downward at a velocity of V11 in the flying game scene may be generated based on the first touch type and velocity V1 in the pressing direction, and the control of the target game object flying upward at a velocity of V22 in the flying game scene may be generated based on the second touch type and velocity V2 in the releasing (including key-up) direction. In other embodiments, other touch types are also included, for example, a third touch type that the user presses the key to a certain extent, stops pressing the key to keep the key at the current position, and generates a third control signal in combination with the kept position (movement parameter) in the third touch type, for example, based on the third control signal, a control object for controlling the target game object to fly horizontally in the flying game scene is generated.
The embodiment of the invention can analyze and process the touch operation directly acting on the key to determine the moving parameter of the key so as to complete the subsequent control of the target object, and increases the control mode of the key on the basis that the existing key only has two control states of pressing and lifting, so that the key has more diversity in key control. Meanwhile, the combination of the mobile parameters and the touch types is combined, more control modes can be combined, the control diversity of the keys is better ensured, and the requirements of simplifying the keys and facilitating the control of a user are met.
Referring to fig. 4 again, the flowchart of another key-based control method according to an embodiment of the present invention is shown, and the method according to the embodiment of the present invention may be implemented by various intelligent terminals, including intelligent terminals such as a mobile phone, a tablet computer, an intelligent wearable device, and a VR device, which have physical keys or virtual keys based on a touch screen. The method may particularly be implemented by one or more processors provided in the devices. The method specifically comprises the following steps.
S401: and detecting touch operation on a key in the terminal. When a user touches a physical key or a region where a virtual key on a touch screen through a finger or other objects, whether touch operation on the key exists can be determined by detecting fine deformation of a plane provided for the user to touch on the key and/or light brightness on the plane, and the touch operation on the key can be determined by calling an infrared sensor, a capacitance sensor and a sensor for sensing light. And after the touch operation is detected, further continuously acquiring the touch related data, thereby determining the movement parameters of the key or the translation related parameters of the object such as the finger of the user. If it is detected that the user presses or releases the key, S402 to S404 described below are performed. If a panning operation of an object such as a user' S finger on a key is detected, S405 described below is performed.
S402: and acquiring the moving parameters of the key after the key moves under the control of the touch operation, wherein the moving parameters of the key are detected by calling a moving detection module preset in the terminal.
S403: and determining the moving direction of the key after the key is moved, and determining the touch type of the touch operation according to the moving direction.
S404: and generating a first control signal for the target object according to the acquired movement parameters and the determined touch type to control the target object.
S405: and if the translation touch operation on one key or a plurality of adjacent keys in the terminal is detected, generating a third control signal for the target object so as to control the target object. The key or the combination of keys with a larger surface area can be used for sensing the translation touch operation of a user, acquiring the movement track of the user on the corresponding surface, and generating a third control signal according to the movement track, wherein the third control signal can be a control signal for controlling the target object to move on a certain plane, or the third control signal is a control signal for realizing the function equivalent to that of a computer mouse.
It should be added that, a pressure sensor may also be applied to sense the pressure of the user pressing the key, so as to perform the control of the target object. Specifically, when a touch operation on a key in a terminal is detected, acquiring a pressure parameter of the key under the touch operation; and generating a second control signal for the target object according to the acquired force parameter. Two control modes may be provided, in the first control mode, simply employing a pressure sensor to sense the relevant data and then generating a second control signal to control the target object. In the second control mode, the related control steps from S401 to S405 described above are included, and the first control signal and/or the third control signal may be generated to control the target object.
The embodiment of the invention can analyze and process the touch operation directly acting on the key to determine the moving parameter of the key so as to complete the subsequent control of the target object, and increases the control mode of the key on the basis that the existing key only has two control states of pressing and lifting, so that the key has more diversity in key control. Meanwhile, the combination of the mobile parameters and the touch types is combined, more control modes can be combined, the control diversity of the keys is better ensured, and the requirements of simplifying the keys and facilitating the control of a user are met. And a mode of realizing control based on key pressure and realizing control based on horizontal movement on a key plane is introduced, so that the diversity of key control is further ensured.
The following describes the key-based control device and the intelligent terminal in detail according to the embodiment of the present invention.
Please refer to fig. 5, which is a schematic structural diagram of a control device based on a key according to an embodiment of the present invention, and the control device according to the embodiment of the present invention may be disposed in an intelligent terminal, such as a mobile phone, a tablet computer, an intelligent wearable device, and a VR device, that includes a physical key or a virtual key based on a touch screen. The device of the embodiment of the invention comprises the following modules.
The mobile detection module 501, the mobile detection module 501 includes an infrared processing module that calls an infrared sensor to sense user data to calculate a mobile parameter of the key; or, transfer the electric capacity sensor to sense the electric capacity processing module of the movement parameter of the said key set of user data to calculate; the infrared processing module is used for calling an infrared sensor to sense the movement data of the key in the pressing or releasing process; the capacitance processing module is used for calling a capacitance sensor to sense the voltage value of the capacitance sensor when an object in contact with the key is pressed or released.
The device further comprises: an obtaining module 502, configured to, when a touch operation on a key in a terminal is detected, obtain a moving parameter of the key after moving under the control of the touch operation, where the moving parameter of the key is detected by invoking the movement detecting module 501. The determining module 503 is configured to determine a moving direction of the key after the key moves, and determine a touch type of the touch operation according to the moving direction. And a control module 504, configured to generate a first control signal for a target object according to the acquired movement parameter and the determined touch type to control the target object.
Further optionally, the obtaining module 502 is further configured to, when a touch operation on a key in a terminal is detected, obtain a pressure parameter of the key under the touch operation; the control module 504 is further configured to generate a second control signal for the target object according to the pressure parameter.
Further optionally, the control module 504 is further configured to generate a third control signal for the target object to control the target object if a translation touch operation on one key or a plurality of adjacent keys in the terminal is detected.
Further optionally, the touch type of the touch operation determined according to the moving direction includes: the first touch type is used for pressing the key, and the second touch type is used for releasing the pressed key; and the control signals generated corresponding to the first touch type and the second touch type complete different controls on the target object.
Specifically, for specific implementation of each module in the embodiment of the present invention, reference may be made to specific implementation of relevant steps in the method embodiment corresponding to fig. 1 or fig. 4, which is not described herein again.
The embodiment of the invention can analyze and process the touch operation directly acting on the key to determine the moving parameter of the key so as to complete the subsequent control of the target object, and increases the control mode of the key on the basis that the existing key only has two control states of pressing and lifting, so that the key has more diversity in key control. Meanwhile, the combination of the mobile parameters and the touch types is combined, more control modes can be combined, the control diversity of the keys is better ensured, and the requirements of simplifying the keys and facilitating the control of a user are met. And a mode of realizing control based on key pressure and realizing control based on horizontal movement on a key plane is introduced, so that the diversity of key control is further ensured.
Referring to fig. 6 again, it is a schematic structural diagram of an intelligent terminal according to an embodiment of the present invention, where the intelligent terminal includes: the terminal comprises a mobile phone, a tablet computer, intelligent wearable equipment, VR equipment and the like, wherein the mobile phone is provided with physical keys or virtual keys based on a touch screen. The intelligent terminal comprises: power module, communication module, display screen isotructure still include: a user interface 601, a processor 602, and a memory 603. The user interface 601, the processor 602 and the memory 603 may be connected via a bus 604.
The user interface 601 may specifically include the physical keys, the touch screen, and the virtual keys on the touch screen.
The bus 604 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus 604 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 6, but this is not intended to represent only one bus or type of bus.
The memory 603 may include a volatile memory (volatile memory), such as a random-access memory (RAM); the memory 603 may also include a non-volatile memory (non-volatile memory), such as a flash memory (flash memory), a Hard Disk Drive (HDD) or a solid-state drive (SSD); the memory 603 may also comprise a combination of memories of the kind described above.
The processor 602 may be a Central Processing Unit (CPU). The processor 602 may further include a hardware chip. The hardware chip may refer to an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), a General Array Logic (GAL), or any combination thereof.
Optionally, the memory 603 stores an operating system and program instructions. The processor 602 may invoke the program instructions to implement the key-based control method as shown in the embodiments corresponding to fig. 1 and 4 of the present application.
Specifically, the processor 602 calls a program instruction related to key-based control stored in the memory 603, so as to obtain a movement parameter of the key after movement under control of a touch operation when the touch operation on the key in the terminal is detected, where the movement parameter of the key is detected by calling a sensor preset in the terminal; determining the moving direction of the key after the key is moved, and determining the touch type of the touch operation according to the moving direction; and generating a first control signal for the target object according to the acquired movement parameters and the determined touch type to control the target object. The sensor comprises an infrared sensor and a capacitance sensor, and can also comprise a pressure sensor and the like.
Further optionally, the processor 602 is further configured to, when a touch operation on a key in the terminal is detected, obtain a pressure parameter of the key under the touch operation; and generating a second control signal for the target object according to the pressure parameter.
Further optionally, the processor 602 is further configured to generate a third control signal for the target object to control the target object if a panning touch operation on one key or a plurality of adjacent keys in the terminal is detected.
Further optionally, the touch type of the touch operation determined according to the moving direction includes: the first touch type is used for pressing the key, and the second touch type is used for releasing the pressed key; and the control signals generated corresponding to the first touch type and the second touch type complete different controls on the target object.
The embodiment of the invention can analyze and process the touch operation directly acting on the key to determine the moving parameter of the key so as to complete the subsequent control of the target object, and increases the control mode of the key on the basis that the existing key only has two control states of pressing and lifting, so that the key has more diversity in key control. Meanwhile, the combination of the mobile parameters and the touch types is combined, more control modes can be combined, the control diversity of the keys is better ensured, and the requirements of simplifying the keys and facilitating the control of a user are met. And a mode of realizing control based on key pressure and realizing control based on horizontal movement on a key plane is introduced, so that the diversity of key control is further ensured.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A key-based control method, characterized in that the method generates a control signal according to the movement of a key, the key cooperating with an infrared sensor, the infrared sensor being located below the key, the key being hollow, the method comprising:
when detecting a touch operation on a key in a terminal, acquiring a moving parameter of the key after the key moves under the control of the touch operation, wherein the moving parameter of the key is detected by calling a moving detection module preset in the terminal, and the moving detection module comprises: an infrared processing module for calculating the movement parameters of the key by calling the infrared sensor to sense the user data, wherein the movement parameters are obtained according to the displacement values sensed and output by the infrared sensor, and the movement parameters comprise: displacement or moving speed calculated by time difference and propagation speed obtained from the emitting time and receiving time of infrared rays emitted to the side where the key is pressed;
determining the moving direction of the key after moving, and determining the touch type of the touch operation according to the moving direction, wherein the touch type comprises: the first touch type is used for pressing the key, and the second touch type is used for releasing the pressed key; the control signals generated corresponding to the first touch type and the second touch type complete different controls on the target object;
and generating a first control signal for the target object according to the acquired movement parameters and the determined touch type to control the target object.
2. The method of claim 1, further comprising:
when touch operation on a key in a terminal is detected, acquiring a pressure parameter of the key under the touch operation;
and generating a second control signal for the target object according to the pressure parameter.
3. The method of claim 1 or 2, further comprising:
and if the translation touch operation on one key or a plurality of adjacent keys in the terminal is detected, generating a third control signal for the target object so as to control the target object.
4. The method of claim 3,
the infrared processing module is used for calling an infrared sensor to sense the movement data of the key in the pressing or releasing process.
5. A key-based control device, said device generating control signals in response to movement of a key, said key cooperating with an infrared sensor, said infrared sensor being located below said key, said key being hollow, said device comprising:
a movement detection module, the movement detection module comprising: the infrared processing module is used for calling the infrared sensor to sense user data to calculate the moving parameters of the keys;
an obtaining module, configured to, when a touch operation on a key in a terminal is detected, obtain a movement parameter of the key after movement under control of the touch operation, where the movement parameter of the key is detected by calling the movement detecting module, and the movement parameter is obtained according to a displacement value sensed and output by the infrared sensor, where the movement parameter includes: displacement or moving speed calculated by time difference and propagation speed obtained from the emitting time and receiving time of infrared rays emitted to the side where the key is pressed;
a determining module, configured to determine a moving direction of the key after moving, and determine a touch type of the touch operation according to the moving direction, where the touch type includes: the first touch type is used for pressing the key, and the second touch type is used for releasing the pressed key; the control signals generated corresponding to the first touch type and the second touch type complete different controls on the target object;
and the control module is used for generating a first control signal for the target object according to the acquired movement parameters and the determined touch type so as to control the target object.
6. The apparatus of claim 5,
the acquisition module is further used for acquiring pressure parameters of the keys under touch operation when the touch operation of the keys in the terminal is detected;
the control module is further used for generating a second control signal for the target object according to the pressure parameter.
7. The apparatus of claim 5 or 6,
the control module is further configured to generate a third control signal for the target object to control the target object if a translation touch operation on one key or a plurality of adjacent keys in the terminal is detected.
8. The apparatus of claim 5, wherein the infrared processing module is configured to invoke an infrared sensor to sense movement data of the key during pressing or releasing.
9. An intelligent terminal is characterized by comprising keys and a processor, wherein the keys comprise physical keys, and control signals are generated according to the movement of the keys, the keys are matched with an infrared sensor, the infrared sensor is positioned below the keys, the keys are hollow, the processor is used for acquiring moving parameters of the keys after the keys move under the control of touch operation when the touch operation of the keys is detected, the moving parameters of the keys are detected by calling a movement detection module preset in the terminal, the moving parameters are acquired according to displacement values sensed and output by the infrared sensor, and the moving parameters comprise: displacement or moving speed calculated by time difference and propagation speed obtained from the emitting time and receiving time of infrared rays emitted to the side where the key is pressed; determining the moving direction of the key after moving, and determining the touch type of the touch operation according to the moving direction, wherein the touch type comprises: the first touch type is used for pressing the key, and the second touch type is used for releasing the pressed key; the control signals generated corresponding to the first touch type and the second touch type complete different controls on the target object; and generating a first control signal for the target object according to the acquired movement parameters and the determined touch type to control the target object.
10. A computer-readable storage medium, in which a computer program is stored which, when executed, causes the method of any one of claims 1-4 to be carried out.
CN201610624250.1A 2016-08-01 2016-08-01 Control method and device based on keys and intelligent terminal Active CN107678662B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610624250.1A CN107678662B (en) 2016-08-01 2016-08-01 Control method and device based on keys and intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610624250.1A CN107678662B (en) 2016-08-01 2016-08-01 Control method and device based on keys and intelligent terminal

Publications (2)

Publication Number Publication Date
CN107678662A CN107678662A (en) 2018-02-09
CN107678662B true CN107678662B (en) 2020-12-29

Family

ID=61133995

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610624250.1A Active CN107678662B (en) 2016-08-01 2016-08-01 Control method and device based on keys and intelligent terminal

Country Status (1)

Country Link
CN (1) CN107678662B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110740207B (en) * 2019-09-20 2021-03-05 华为技术有限公司 Electronic equipment
CN111245419B (en) * 2020-01-14 2023-06-27 宇龙计算机通信科技(深圳)有限公司 Key circuit
CN114543285B (en) * 2022-03-02 2023-02-17 Tcl空调器(中山)有限公司 Remote controller, control method and air conditioning system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523402A (en) * 2011-12-29 2012-06-27 深圳Tcl新技术有限公司 Intelligent television remote controller and power-saving method thereof
CN103098011A (en) * 2010-09-02 2013-05-08 三星电子株式会社 Item display method and apparatus
CN105278855A (en) * 2014-06-25 2016-01-27 Lg电子株式会社 Mobile terminal and method for controlling the same

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9411509B2 (en) * 2010-12-29 2016-08-09 Microsoft Technology Licensing, Llc Virtual controller for touch display
US9561432B2 (en) * 2014-03-12 2017-02-07 Wargaming.Net Limited Touch control with dynamic zones
CN105183348A (en) * 2015-08-27 2015-12-23 广东欧珀移动通信有限公司 Application role control method and apparatus
CN105335065A (en) * 2015-10-10 2016-02-17 腾讯科技(深圳)有限公司 Information processing method and terminal, and computer storage medium
CN105446525B (en) * 2015-11-10 2018-06-29 网易(杭州)网络有限公司 A kind of control method of game role behavior
CN105786392B (en) * 2016-03-24 2019-03-22 宇龙计算机通信科技(深圳)有限公司 Touch control display method, touch control display system and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103098011A (en) * 2010-09-02 2013-05-08 三星电子株式会社 Item display method and apparatus
CN102523402A (en) * 2011-12-29 2012-06-27 深圳Tcl新技术有限公司 Intelligent television remote controller and power-saving method thereof
CN105278855A (en) * 2014-06-25 2016-01-27 Lg电子株式会社 Mobile terminal and method for controlling the same

Also Published As

Publication number Publication date
CN107678662A (en) 2018-02-09

Similar Documents

Publication Publication Date Title
CN107493495B (en) Interactive position determining method, system, storage medium and intelligent terminal
US9635267B2 (en) Method and mobile terminal for implementing preview control
CN105183284A (en) Short message viewing method and user terminal
US9250790B2 (en) Information processing device, method of processing information, and computer program storage device
KR20200101207A (en) Electronic device and method for modifying magnification of image using multiple cameras
TWI695311B (en) Method, device and terminal for simulating mouse operation using gestures
CN103324433B (en) Display control unit and control method thereof
WO2013000381A1 (en) Method for controlling state of mobile terminal and mobile terminal
KR20100054274A (en) Touch-input device for acquiring location and intensity of force and method thereof
CN104035555A (en) System, Information Processing Apparatus, And Information Processing Method
CN107678662B (en) Control method and device based on keys and intelligent terminal
CN109062464B (en) Touch operation method and device, storage medium and electronic equipment
CN112068698A (en) Interaction method and device, electronic equipment and computer storage medium
WO2021057654A1 (en) Screen touch management method, smart terminal, device, and readable storage medium
US20230179856A1 (en) Electronic device including plurality of cameras and method of operating the same
CN103744542A (en) Hybrid pointing device
CN103809895B (en) It is a kind of can dynamic generation button mobile terminal and method
CN105940672B (en) Detect the pattern described on the screen of user equipment
CN105867822B (en) Information processing method and electronic equipment
WO2015131590A1 (en) Method for controlling blank screen gesture processing and terminal
US11455071B2 (en) Layout method, device and equipment for window control bars
CN103761086A (en) Screen control method and terminal
CN107577404B (en) Information processing method and device and electronic equipment
TWI684909B (en) User interface switching method, device and equipment
US20170242498A1 (en) Passive Chopsticks Stylus System for Capacitive Touch Screens

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant