CN110755840A - Game control method, key structure, mobile terminal and readable storage medium - Google Patents

Game control method, key structure, mobile terminal and readable storage medium Download PDF

Info

Publication number
CN110755840A
CN110755840A CN201911049397.2A CN201911049397A CN110755840A CN 110755840 A CN110755840 A CN 110755840A CN 201911049397 A CN201911049397 A CN 201911049397A CN 110755840 A CN110755840 A CN 110755840A
Authority
CN
China
Prior art keywords
capacitance
detection assembly
operation instruction
pressure
mobile terminal
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.)
Pending
Application number
CN201911049397.2A
Other languages
Chinese (zh)
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.)
Nubia Technology Co Ltd
Nanchang Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Nanchang Nubia Technology 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 Nubia Technology Co Ltd, Nanchang Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201911049397.2A priority Critical patent/CN110755840A/en
Publication of CN110755840A publication Critical patent/CN110755840A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/214Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads
    • A63F13/2145Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads the surface being also a display device, e.g. touch screens
    • 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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The application provides a key structure, wherein a key body comprises a first surface and a second surface arranged opposite to the first surface, and a capacitance detection assembly is arranged adjacent to the second surface and used for detecting capacitance change at the first surface of the key body to generate a capacitance signal; the pressure detection assembly is arranged adjacent to the capacitance detection assembly and is far away from the second surface, and is used for detecting the pressing operation acting on the first surface of the key body and generating a pressure signal; the capacitance detection assembly and the pressure detection assembly are electrically connected with the circuit board; when the operation medium acts on the first surface of the key body, a capacitance instruction and a pressure instruction corresponding to the operation medium are generated through the capacitance detection assembly and the pressure detection assembly. The application also provides a game control method, a mobile terminal and a computer readable storage medium. Through the scheme, the operation modes of games can be enriched, and meanwhile, the space can be saved on the premise of enriching the game control modes through the key structure.

Description

Game control method, key structure, mobile terminal and readable storage medium
Technical Field
The present application relates to the field of network communication technologies, and in particular, to a game control method, a key structure, a mobile terminal, and a readable storage medium.
Background
The current smart phones with the electric competition game themes are all provided with special electric competition game keys, so that a game user can conveniently operate the game with multiple fingers. However, the game keys have single function, for example, the game keys can only realize the functions of lightly touching and lightly punching a fist and heavily pressing a large number of fingers in a fighting game, so that the number of the keys of the mobile terminal is large, the operation of a user is inconvenient, and the strength of the mobile terminal and the integrity of the appearance of the mobile terminal are reduced.
Disclosure of Invention
The application mainly aims to provide a game control method, a key structure, a mobile terminal and a readable storage medium, and aims to enrich the functions of game keys, realize that one key can also identify various operations, and further perform different operation control on games.
In order to achieve the above object, the present application provides a key structure applied to a mobile terminal, where the key structure includes a key body, a capacitance detection component, a pressure detection component, and a circuit board; the key body comprises a first surface and a second surface arranged opposite to the first surface, and the capacitance detection assembly is arranged adjacent to the second surface and used for detecting capacitance change at the first surface of the key body to generate a capacitance signal; the pressure detection assembly is arranged adjacent to the capacitance detection assembly and is far away from the second surface, and is used for detecting the pressing operation acting on the first surface of the key body and generating a pressure signal; the capacitance detection assembly and the pressure detection assembly are electrically connected with the circuit board; when an operation medium acts on the first surface of the key body, a capacitance instruction and a pressure instruction corresponding to the operation medium are generated through the capacitance detection assembly and the pressure detection assembly.
Optionally, the key structure further includes a transmission pad, the transmission pad is adjacently disposed between the capacitance detection assembly and the pressure detection assembly, and is configured to transmit the pressure acting on the key body to the pressure detection assembly.
Optionally, the area of the transfer pad is larger than the area of the pressure detection assembly.
Optionally, the capacitance detection assembly includes a static capacitance and a capacitance detection circuit, the capacitance detection circuit is configured to detect a change in a variable capacitance of the static capacitance and generate a capacitance signal, wherein the capacitance detection assembly is disposed adjacent to the second surface and the static capacitance is disposed adjacent to the second surface.
Optionally, the pressure detection assembly comprises a pressure sensor.
The application also provides a game control method, a graphical user interface is generated through a mobile terminal, the graphical user interface at least comprises a game scene and a virtual role, the mobile terminal comprises the key structure, and the method comprises the following steps: receiving an operation acting on the key body; generating a capacitance signal through the capacitance detection assembly in response to the control operation, and triggering and generating a first operation instruction according to the capacitance signal; controlling the virtual character to execute a first game function according to the first operation instruction; responding to the control operation through the pressure detection assembly to generate a pressure signal, and triggering and generating a second operation instruction according to the pressure signal; and controlling the virtual character to execute a second game function according to the second operation instruction.
Optionally, the method further comprises: determining a first time point of generating the first operation instruction; determining a second time point of generating the second operation instruction: and when the interval between the first time point and the second time point is determined to accord with a first interval threshold value, controlling the virtual character to execute a third game function according to the combination of the first operation instruction and the second operation instruction.
Optionally, the method further comprises: determining a first time point of generating the first operation instruction; determining a second time point of generating the second operation instruction: when the interval between the first time point and the second time point is determined to accord with a first interval threshold value, acquiring instruction priority information; and controlling to respond to the first operation instruction or the second operation instruction according to the instruction priority information.
The present application further provides a mobile terminal, the mobile terminal including: a touch screen; a processor; and the memory is connected with the processor and comprises a control instruction, and when the processor reads the control instruction, the mobile terminal is controlled to realize any game control method.
The present application also provides a computer-readable storage medium having one or more programs, which are executed by one or more processors to implement the control method of the wearable device described above.
According to the game control method, the key structure, the mobile terminal and the readable storage medium, the key structure comprises a key body, a capacitance detection assembly, a pressure detection assembly and a circuit board; the key body comprises a first surface and a second surface arranged opposite to the first surface, and the capacitance detection assembly is arranged adjacent to the second surface and used for detecting capacitance change at the first surface of the key body to generate a capacitance signal; the pressure detection assembly is arranged adjacent to the capacitance detection assembly and is far away from the second surface, and is used for detecting the pressing operation acting on the first surface of the key body and generating a pressure signal; the capacitance detection assembly and the pressure detection assembly are electrically connected with the circuit board; when an operation medium acts on the first surface of the key body, a capacitance instruction and a pressure instruction corresponding to the operation medium are generated through the capacitance detection assembly and the pressure detection assembly. Through above-mentioned button structure for the user can trigger different signals when controlling this button structure, and then makes the treater of the mobile terminal who disposes this button structure receive different signals when, can trigger different operation modes according to predetermined settlement, with richened to the operation mode of recreation, simultaneously, can save the space under the prerequisite of richening the recreation control mode through above-mentioned button structure.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of an optional mobile terminal for implementing various embodiments of the present application;
FIG. 2 is a schematic diagram of a communication network system of the mobile terminal shown in FIG. 1;
fig. 3 is a schematic structural diagram of a key structure according to an embodiment of the present application;
fig. 4 is a schematic circuit diagram of a key structure according to an embodiment of the present application;
FIG. 5 is a flowchart of a game control method according to an embodiment of the present application;
FIG. 6 is a flow chart of a game control method according to an embodiment of the present application;
FIG. 7 is a flowchart of a game control method according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex-Long Term Evolution), and TDD-LTE (Time Division duplex-Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and charging functions Entity) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
Fig. 3 is a key structure provided in the present application, where the key structure includes a key body, a capacitance detection assembly, a pressure detection assembly, and a circuit board, and the key body, the capacitance detection assembly, the pressure detection assembly, and the circuit board are stacked and assembled together. In this embodiment, the key structure is applied to the mobile terminal and disposed at an edge of the mobile terminal, and a user can operate the key structure with fingers when holding the mobile terminal.
The key body is a structure for receiving the operation of a user. The key body is assembled on the shell of the mobile terminal to provide waterproof protection. In this embodiment, the key body is rectangular in shape, and in other embodiments, the key body may be circular in shape. The shape of the key body can be set according to actual needs. In this embodiment, the button body is a part of the mobile terminal housing, that is, the partial structure of the mobile terminal housing is used as the button body of the button structure, and through this embodiment, a waterproof protection effect can be provided, and the capacitor is prevented from being mistakenly touched due to the influence of the environment. In other embodiments, the key body is a separate component from the mobile terminal housing, and in this embodiment, the mobile terminal housing is provided with a slot adapted to the shape of the key body, and the key body is mounted in the slot when assembled. In this embodiment, the key body includes a first surface and a second surface, wherein the first surface is exposed to the outside of the mobile terminal, that is, the first surface is a surface for receiving a user operation, and the second surface faces the inside of the mobile terminal housing.
The capacitance detection assembly detects the touch operation of a user on the key body to generate a corresponding capacitance signal, and sends the capacitance signal to the processor for the processor to generate a corresponding operation instruction according to the capacitance signal. The capacitance detection assembly part is arranged on the second surface of the key body. In this embodiment, as shown in fig. 4, the capacitance detecting assembly includes a static capacitor and a capacitance detecting circuit, the static capacitor is disposed on the second surface of the key body, the static capacitor is electrically connected to the capacitance detecting circuit, and the capacitance detecting circuit is connected to the main control unit through an I2C bus. When the fingers of the user are not placed on the first surface of the key body, the static capacitor can provide a reference value of the capacitor, when the fingers of the user are placed on the first surface of the key body, the human body of the user has a certain capacitor and can influence the static capacitor, so that the capacitor of the static capacitor changes, at the moment, the capacitor detection circuit can detect a capacitor change value and send the capacitor change value to the processor, whether the capacitor change value is responded or not is judged through the processor, and then response to the detected operation is realized. In order to prevent the occurrence of the false touch, a capacitance change threshold of the capacitance change value is preset, when the processor receives the current capacitance change value detected by the capacitance detection circuit, the processor compares the current capacitance change value with the capacitance change threshold, and when the current capacitance change value meets the capacitance change threshold, a response operation instruction is generated.
The pressure detection assembly is used for detecting local pressing operation of a user on the key to generate a response pressure signal, and sending the pressure signal to the processor for the processor to generate a corresponding operation instruction according to the pressure signal. The pressure detection assembly and the capacitance detection assembly are arranged adjacently and far away from the second surface, and are used for detecting pressing operation acting on the first surface of the key body and generating pressure signals. In the embodiment, the pressure detection subassembly includes pressure sensor and pressure detection chip, and the pressure detection chip carries out electric connection through I2C bus and main control unit, and the pressure detection chip passes through pressure sensor and detects the pressure value to send this pressure value to the treater, judge through the treater whether to respond to the pressure value, and then realized responding to the operation of controlling that detects. In order to prevent the occurrence of the false touch, a pressure threshold value of a pressure value is preset, when the processor receives the pressure value detected by the pressure detection chip, the processor compares the pressure threshold value with the pressure threshold value, and when the current pressure value meets the pressure threshold value, a response operation instruction is generated. Through the above embodiment, the button body, the capacitance detection assembly and the pressure detection assembly are stacked, so that one button can also generate multiple independent control signals, that is, from the perspective of a user, the button body is only subjected to one operation (for example, the user presses a finger on the button body), but from the perspective of the button, the button body can generate different control signals for one operation, so that the purposes of increasing the button detection dimensionality and increasing the user interaction modes are achieved.
Furthermore, in order to improve the sensitivity of the key structure to the pressing operation, the key structure further comprises a transmission pad, and the transmission pad is adjacently arranged between the capacitance detection assembly and the pressure detection assembly and is used for transmitting the pressure acting on the key body to the pressure detection assembly. In the present embodiment, the area of the transmission pad is larger than the area of the pressure detection unit. Through above-mentioned embodiment for when the user pressed the button body, after the pressure transmitted the electric capacity detection subassembly from the button body, further transmitted the transmission pad with pressure, because the area of transmission pad is greater than the area of pressure detection subassembly, make originally and have the pressure of skew to transmit the pressure detection subassembly through the transmission pad with the pressure detection subassembly. In this embodiment, the transfer pad is a silica gel sleeve, and the silica gel sleeve is sleeved between the pressure detection assembly and the capacitance detection assembly.
Through the embodiment, the user can trigger different signals when controlling the key structure, and then the processor of the mobile terminal provided with the key structure can trigger different operation modes according to preset setting when receiving different signals, so that the operation modes of games are enriched, and meanwhile, the space is saved on the premise of enriching the game control modes through the key structure.
FIG. 5 is a flowchart of an embodiment of a game control method provided in the present application. Once the method of this embodiment is triggered, the process in this embodiment is automatically executed by the mobile terminal, where each step may be executed sequentially according to the sequence in the flowchart, or multiple steps may be executed simultaneously according to the actual situation, which is not limited herein.
The game control method provided by the application comprises the following steps:
step S510, receiving a manipulation operation applied to the key body;
step S520, responding to the control operation through the capacitance detection assembly to generate a capacitance signal, and triggering and generating a first operation instruction according to the capacitance signal;
step S530, controlling the virtual character to execute a first game function according to the first operation instruction;
step S540, responding to the control operation through the pressure detection assembly to generate a pressure signal, and triggering and generating a second operation instruction according to the pressure signal;
and step S550, controlling the virtual character to execute a second game function according to the second operation instruction.
Through the embodiment, a user applies one control operation through one key to trigger different operation instructions, so that different game functions in the game are triggered, the user experience is improved, and the user can trigger different functions in the game conveniently.
The above steps will be specifically described with reference to specific examples.
In step S510, the mobile terminal includes a display screen and the key structure in the foregoing embodiment, where the display screen provides a graphical user interface, the graphical user interface includes a game scene and a virtual character, and the user inputs an operation instruction through an input device of the mobile terminal. In the present embodiment, the manipulation operation is a click operation, a press operation, a tap operation, or the like for the case body.
In step S520, a capacitance signal is generated by the capacitance detection component in response to the manipulation operation, and a first operation instruction is generated according to the capacitance signal. The first operation instruction is generated by the capacitance detection component of the mobile terminal in response to the operation of a user. To prevent the false touch, step S520 may include the following steps:
step S5201, receiving a capacitance signal sent by the capacitance detection component detecting the manipulation operation;
step S5202, determining that the capacitance signal meets a capacitance instruction triggering condition;
in step S5203, a first operation instruction is generated according to the capacitance signal.
In this embodiment, the capacitance instruction triggering condition is a capacitance change threshold, and when the capacitance change value corresponding to the capacitance signal reaches the capacitance change threshold, it is determined that the capacitance signal satisfies the capacitance instruction triggering condition.
In step S530, the virtual character is controlled to execute a first game function according to the first operation instruction. The first game function corresponding to the first operation instruction is preset, and the first game function can be shooting. It should be noted that the game function corresponding to the first operation instruction may be any function. In this embodiment, as long as the capacitance detection component detects the capacitance signal, the mobile terminal is controlled to execute the corresponding first operation instruction, regardless of whether the second operation instruction generated based on the pressure signal in step S540 is detected, that is, if the manipulation operation applied by the user is only detected by the capacitance detection component and generates the first operation instruction, but does not cause the pressure detection component to detect that the generation of the second operation instruction can be triggered, the mobile terminal still responds to the first operation instruction.
In step S540, a pressure signal is generated by the pressure detection component in response to the manipulation operation, and a second operation instruction is triggered and generated according to the pressure signal. The second operation instruction is generated by the voltage detection component of the mobile terminal in response to the operation of the user. To prevent the false touch, step S540 may include the following steps:
step S5401, receiving a pressure signal sent by the pressure detection component for detecting the control operation;
step S5402, determining that the pressure signal meets a pressure instruction triggering condition;
step S5403, a second operation instruction is generated according to the pressure signal.
In this embodiment, the pressure instruction triggering condition is a pressure threshold, and when a pressure value corresponding to the pressure signal reaches the pressure threshold, it is determined that the pressure signal satisfies the pressure instruction triggering condition.
In step S550, the virtual character is controlled to execute a second game function according to the second operation instruction. In the present embodiment, the second game function corresponding to the second operation command is preset, and the second game function is logically associated with the first game function in the game operation, for example, when the first game function is shooting, the second game function is open mirror. Likewise, in the present embodiment, as long as the pressure detection component detects the pressure signal, the mobile terminal is controlled to execute the corresponding second operation instruction, regardless of whether the first operation instruction generated based on the capacitance signal in the step S520 is detected, that is, if the manipulation operation applied by the user is only detected by the pressure detection component and generates the second operation instruction, but does not cause the capacitance detection component to detect that the generation of the first operation instruction can be triggered, the mobile terminal still responds to the second operation instruction.
The steps S520 to S530 are independent from the steps S540 to S550, and do not affect each other. That is, only step S20 to step S30 may be executed, or only step S540 to step S550 may be executed, and the steps of the group are not in the order of priority. It is also based on this working principle that the user can trigger different operation commands by means of one key structure.
Further, in order to further enrich the operation instructions and improve the operation of the game function in the game, as shown in fig. 6, the game control method provided by the present application further includes the following steps:
step S610, determining a first time point for generating the first operation instruction;
step S620, determining a second time point for generating the second operation instruction:
step S630, when it is determined that the interval between the first time point and the second time point meets the first interval threshold, controlling the virtual character to execute a third game function according to the combination of the first operation instruction and the second operation instruction.
Specifically, the step of determining the first time point and the second time point may simultaneously determine the first time point corresponding to the first operation instruction and the second time point corresponding to the second operation instruction when the step S520 and the step S540 are performed, respectively. In this embodiment, meeting the first interval threshold means that the first time point and the second time point are less than the first interval threshold. Through the embodiment, the control operation that the user wants to trigger two operation instructions simultaneously can be identified, for example, the user touches the key body and applies a certain pressure, so that the system determines that a first time point of generating the first operation instruction and a second time point of generating the second operation instruction are less than a first interval threshold, that is, the user is considered to be a third game function corresponding to the combination of the first operation instruction and the second operation instruction, for example, the third game function may be a bring up game, especially in a street tyrant game, the skill of part of the virtual character needs a plurality of combinations to be triggered, however, in the existing solutions, the user is required to press a different key quickly to trigger, however, through the embodiment, the user can realize the purpose of triggering different instructions only by executing one operation.
Further, in order to prevent the occurrence of a false touch condition between the first operation instruction and the second operation instruction, as shown in fig. 7, the game control method provided by the present application further includes the following steps:
step S710, determining a first time point for generating the first operation instruction;
step S720, determining a second time point for generating the second operation instruction:
step S730, when the interval between the first time point and the second time point is determined to accord with a first interval threshold value, acquiring instruction priority information;
step S740, controlling and responding to the first operation instruction or the second operation instruction according to the instruction priority information.
Specifically, the contents of step S710 to step S720 are the same as those of step S610 to step S620, and therefore, the details thereof are not repeated. The content of the first interval threshold in step S730 is the same as that described above, and therefore, the description thereof is omitted. The priority information predefines the priority levels of the operation instructions detected and generated by different detection components, and when the first operation instruction and the second operation instruction are triggered by the operation and control applied by the user at the preset time interval, the operation instructions are controlled and responded according to the priority information. For example, when a user applies a pressing operation to the key body, the touch behavior of the pressing operation may also be sensed by the capacitance detection element, but since a first time point at which the first operation instruction is generated based on the capacitance detection element and a second time point at which the second operation instruction is generated based on the pressure detection element meet the first interval threshold, at this time, since the priority of the second operation instruction is higher than the priority of the first operation instruction, only the second operation instruction is responded, that is, only the pressure operation is responded.
Fig. 8 is a schematic structural component diagram of a mobile terminal according to an embodiment of the present application, where the mobile terminal 800 includes: a processor 810; a memory 820 coupled to the processor 820; the memory 820 contains control instructions, and when the processor 810 reads the control instructions, the mobile terminal 800 is controlled to implement the following steps: receiving an operation acting on the key body; generating a capacitance signal through the capacitance detection assembly in response to the control operation, and triggering and generating a first operation instruction according to the capacitance signal; controlling the virtual character to execute a first game function according to the first operation instruction; responding to the control operation through the pressure detection assembly to generate a pressure signal, and triggering and generating a second operation instruction according to the pressure signal; and controlling the virtual character to execute a second game function according to the second operation instruction.
Optionally, the method further comprises: determining a first time point of generating the first operation instruction; determining a second time point of generating the second operation instruction: and when the interval between the first time point and the second time point is determined to accord with a first interval threshold value, controlling the virtual character to execute a third game function according to the combination of the first operation instruction and the second operation instruction.
Optionally, the method further comprises: determining a first time point of generating the first operation instruction; determining a second time point of generating the second operation instruction: when the interval between the first time point and the second time point is determined to accord with a first interval threshold value, acquiring instruction priority information; and controlling to respond to the first operation instruction or the second operation instruction according to the instruction priority information.
Through the mobile terminal, the user can trigger different signals when controlling the key structure, and then when the processor of the mobile terminal provided with the key structure receives different signals, different operation modes can be triggered according to preset setting, so that operation modes of games are enriched, and meanwhile, the space is saved on the premise of enriching game control modes through the key structure.
Embodiments of the present application also provide a computer-readable storage medium having one or more programs, where the one or more programs are executed by one or more processors to implement the following steps:
receiving an operation acting on the key body; generating a capacitance signal through the capacitance detection assembly in response to the control operation, and triggering and generating a first operation instruction according to the capacitance signal; controlling the virtual character to execute a first game function according to the first operation instruction; responding to the control operation through the pressure detection assembly to generate a pressure signal, and triggering and generating a second operation instruction according to the pressure signal; and controlling the virtual character to execute a second game function according to the second operation instruction.
Optionally, the method further comprises: determining a first time point of generating the first operation instruction; determining a second time point of generating the second operation instruction: and when the interval between the first time point and the second time point is determined to accord with a first interval threshold value, controlling the virtual character to execute a third game function according to the combination of the first operation instruction and the second operation instruction.
Optionally, the method further comprises: determining a first time point of generating the first operation instruction; determining a second time point of generating the second operation instruction: when the interval between the first time point and the second time point is determined to accord with a first interval threshold value, acquiring instruction priority information; and controlling to respond to the first operation instruction or the second operation instruction according to the instruction priority information.
Through the computer readable storage medium, a user can trigger different signals when controlling the key structure, and then when a processor of the mobile terminal configured with the key structure receives different signals, different operation modes can be triggered according to preset setting, so that operation modes of games are enriched, and meanwhile, the space is saved on the premise of enriching game control modes through the key structure.
The embodiment of the application also provides a computer readable storage medium. The computer-readable storage medium herein stores one or more programs. Among other things, computer-readable storage media may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
The corresponding technical features in the above embodiments may be used with each other without causing contradiction in the schemes or without being implementable.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A key structure is characterized by being applied to a mobile terminal and comprising a key body, a capacitance detection assembly, a pressure detection assembly and a circuit board; the key body comprises a first surface and a second surface arranged opposite to the first surface, and the capacitance detection assembly is arranged adjacent to the second surface and used for detecting capacitance change at the first surface of the key body to generate a capacitance signal; the pressure detection assembly is arranged adjacent to the capacitance detection assembly and is far away from the second surface, and is used for detecting the pressing operation acting on the first surface of the key body and generating a pressure signal; the capacitance detection assembly and the pressure detection assembly are electrically connected with the circuit board; when an operation medium acts on the first surface of the key body, a capacitance instruction and a pressure instruction corresponding to the operation medium are generated through the capacitance detection assembly and the pressure detection assembly.
2. The key structure of claim 1, further comprising a transmission pad disposed adjacent to and between the capacitance detection assembly and the pressure detection assembly for transmitting pressure applied to the key body to the pressure detection assembly.
3. The key structure of claim 2, wherein the area of the transmission pad is larger than the area of the pressure detection assembly.
4. The key structure of claim 1, wherein the capacitance detection assembly comprises a static capacitance and a capacitance detection circuit for detecting a change in a variable capacitance of the static capacitance and generating a capacitance signal, wherein the capacitance detection assembly is disposed adjacent the second surface such that the static capacitance is disposed adjacent the second surface.
5. The key structure of claim 1, wherein the pressure detection component comprises a pressure sensor.
6. A game control method, characterized in that a graphical user interface is generated by a mobile terminal, the graphical user interface comprising at least a game scene and a virtual character, the mobile terminal comprising a key structure according to claims 1-5, the method comprising:
receiving an operation acting on the key body;
generating a capacitance signal through the capacitance detection assembly in response to the control operation, and triggering and generating a first operation instruction according to the capacitance signal;
controlling the virtual character to execute a first game function according to the first operation instruction;
responding to the control operation through the pressure detection assembly to generate a pressure signal, and triggering and generating a second operation instruction according to the pressure signal;
and controlling the virtual character to execute a second game function according to the second operation instruction.
7. The game control method of claim 6, wherein the method further comprises:
determining a first time point of generating the first operation instruction;
determining a second time point of generating the second operation instruction:
and when the interval between the first time point and the second time point is determined to accord with a first interval threshold value, controlling the virtual character to execute a third game function according to the combination of the first operation instruction and the second operation instruction.
8. The game control method of claim 6, wherein the method further comprises:
determining a first time point of generating the first operation instruction;
determining a second time point of generating the second operation instruction:
when the interval between the first time point and the second time point is determined to accord with a first interval threshold value, acquiring instruction priority information;
and controlling to respond to the first operation instruction or the second operation instruction according to the instruction priority information.
9. A mobile terminal, characterized in that the mobile terminal comprises:
a touch screen;
a processor;
a memory connected to the processor, the memory containing control instructions, when the processor reads the control instructions, the memory controlling the mobile terminal to implement the game control method according to any one of claims 6 to 8.
10. A computer-readable storage medium having one or more programs thereon, the one or more programs being executable by one or more processors to implement the game control method of any one of claims 6 to 8.
CN201911049397.2A 2019-10-31 2019-10-31 Game control method, key structure, mobile terminal and readable storage medium Pending CN110755840A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911049397.2A CN110755840A (en) 2019-10-31 2019-10-31 Game control method, key structure, mobile terminal and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911049397.2A CN110755840A (en) 2019-10-31 2019-10-31 Game control method, key structure, mobile terminal and readable storage medium

Publications (1)

Publication Number Publication Date
CN110755840A true CN110755840A (en) 2020-02-07

Family

ID=69334479

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911049397.2A Pending CN110755840A (en) 2019-10-31 2019-10-31 Game control method, key structure, mobile terminal and readable storage medium

Country Status (1)

Country Link
CN (1) CN110755840A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113411452A (en) * 2021-06-25 2021-09-17 努比亚技术有限公司 Key control method and device based on mobile terminal and terminal equipment
CN113633965A (en) * 2021-08-26 2021-11-12 Oppo广东移动通信有限公司 Touch screen adjusting method, communication device, electronic device and readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113411452A (en) * 2021-06-25 2021-09-17 努比亚技术有限公司 Key control method and device based on mobile terminal and terminal equipment
CN113411452B (en) * 2021-06-25 2024-03-19 努比亚技术有限公司 Key control method and device based on mobile terminal and terminal equipment
CN113633965A (en) * 2021-08-26 2021-11-12 Oppo广东移动通信有限公司 Touch screen adjusting method, communication device, electronic device and readable storage medium

Similar Documents

Publication Publication Date Title
CN109701266B (en) Game vibration method, device, mobile terminal and computer readable storage medium
CN112799577B (en) Method, terminal and storage medium for projecting small window
CN107463243B (en) Screen control method, mobile terminal and computer readable storage medium
CN112667181A (en) Screen projection method, screen projection equipment, screen projection control system and storage medium
CN107979667B (en) Dual-screen display method, mobile terminal and computer-readable storage medium
CN110187808B (en) Dynamic wallpaper setting method and device and computer-readable storage medium
CN112637410B (en) Method, terminal and storage medium for displaying message notification
CN109271227B (en) False touch prevention method and device and computer readable storage medium
CN107729104B (en) Display method, mobile terminal and computer storage medium
CN108563388B (en) Screen operation method, mobile terminal and computer-readable storage medium
CN108322602B (en) Method, terminal and computer readable storage medium for processing application no response
CN108334266B (en) Control method of flexible terminal, flexible terminal and computer readable storage medium
CN112306366A (en) Operation method, mobile terminal and storage medium
CN109491577B (en) Holding interaction method and device and computer readable storage medium
CN108810262B (en) Application configuration method, terminal and computer readable storage medium
CN110755840A (en) Game control method, key structure, mobile terminal and readable storage medium
CN107239208B (en) Method, apparatus, and computer-readable storage medium for processing screenshot
CN112817491A (en) Touch key control method and device based on mobile terminal and terminal equipment
CN109683796B (en) Interaction control method, equipment and computer readable storage medium
CN108897451B (en) Main and auxiliary display screen identification method, mobile terminal and computer readable storage medium
CN109710168B (en) Screen touch method and device and computer readable storage medium
CN109151201B (en) Anti-addiction method, mobile terminal and computer storage medium
CN111530067A (en) Method for controlling game by multiple keys, mobile terminal and computer readable storage medium
CN108897417B (en) Working mode adjusting method, mobile terminal and computer readable storage medium
CN111443850A (en) Terminal operation method, terminal and storage medium

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