Method, device and controller for realizing dual joystick control of game controller based on gyroscope

By integrating the joystick control data using the gyroscope data in the game controller, the problem of controlling two joysticks at the same time in the prior art is solved, and the game control with lower difficulty is achieved and the gaming experience is improved.

CN114681912BActive Publication Date: 2025-04-08SHENZHEN QIXIONG TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210351641.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-02
Publication Date
2025-04-08
Estimated Expiration
2042-04-02

AI Technical Summary

Technical Problem

The existing gamepad requires two joysticks to be controlled at the same time, which is difficult to control and is not conducive to use.

Method used

By obtaining the motion data of the gyroscope preset in the gamepad, integrating the control data of the first joystick using acceleration data, integrating the control data of the second joystick using angular velocity data, and transmitting it to the game host through the data interface to control the motion direction and viewing angle of the game virtual character.

Benefits of technology

It reduces the difficulty of control, reduces the coordination requirements for players, lowers the control threshold of the gamepad, and improves the gaming experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114681912B_ABST
    Figure CN114681912B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, handle and medium for realizing dual joystick control of a game controller based on a gyroscope. The method is realized by: obtaining motion data of a gyroscope preset in the game controller, wherein the motion data includes acceleration data and angular velocity data; integrating data of a first joystick through the acceleration data to generate first control data, and transmitting the first control data to a game console through a data interface to control the motion direction of a virtual character in the game console accordingly; integrating data of a second joystick through the angular velocity data to generate second control data, and transmitting the second control data to the game console through a data interface to control the game perspective in the game console accordingly. The simultaneous operation of the left joystick and the right joystick of the game controller is realized through the gyroscope, which reduces the control difficulty, reduces the coordination requirements for the player, reduces the control threshold, and improves the game experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of remote control equipment, and in particular to a method, device, handle and medium for realizing dual-joystick control of a game controller based on a gyroscope. Background Art

[0002] With the continuous development of science and technology and the increasing popularity of electronic products, the game market has gradually shifted from being dominated by traditional console games to mobile games and new micro-console games. Game controllers have gradually grown along with the development of game consoles. As a common component of electronic game consoles, game controllers occupy a very important position in the game industry, especially in some large-scale games, which basically require the use of game controllers to control the virtual characters in the game.

[0003] At present, when using the joystick of a game controller to control the direction and perspective of the game, one joystick is often required to control the direction and the other joystick is required to control the perspective. In other words, the player usually needs to control two joysticks with both hands at the same time, and the movements are different, which requires very good coordination from the player, has high requirements for the threshold of the player, is difficult to control, and is not conducive to use. Summary of the invention

[0004] Based on this, it is necessary to provide a method, device, handle and medium for realizing dual joystick control of a game controller based on a gyroscope to address the above technical problems, so as to solve the problems in the prior art that two joysticks need to be controlled simultaneously, which makes the control difficult and is not conducive to use.

[0005] In a first aspect, a method for realizing dual-stick control of a game controller based on a gyroscope is provided, comprising:

[0006] Acquire motion data of a gyroscope preset in the game controller, wherein the motion data includes acceleration data and angular velocity data;

[0007] The first joystick is integrated with the acceleration data to generate first control data, and the first control data is transmitted to the game console through the data interface to control the movement direction of the game virtual character in the game console accordingly;

[0008] The angular velocity data is used to integrate data of the second joystick to generate second control data, and the second control data is transmitted to the game console through the data interface to perform corresponding control on the game viewing angle in the game console.

[0009] In one embodiment, integrating the acceleration data of the first joystick to generate the first control data includes:

[0010] Determining the movement direction and movement distance of the gyroscope according to the acceleration data;

[0011] The movement direction and the movement distance are integrated into the first joystick to generate the first control data.

[0012] In one embodiment, integrating the data of the second joystick through the angular velocity data to generate the second control data includes:

[0013] Determining the rotational movement direction of the gyroscope and the angular velocity of the gyroscope according to the angular velocity data;

[0014] The rotational movement direction and the angular velocity of the gyroscope are integrated into the second joystick to generate the second control data.

[0015] In one embodiment, the method further includes:

[0016] When the joystick of the game controller is in motion, shielding the first control data and the second control data;

[0017] Generate joystick control data according to the motion state;

[0018] The joystick control data is sent to the game console through the data interface, so that the movement direction of the game virtual character and the game viewing angle in the game console are correspondingly controlled through the joystick control data.

[0019] In one embodiment, after the movement direction of the game virtual character in the game console and the game viewing angle are controlled accordingly by the joystick control data, the following steps are included:

[0020] Unshielding the first control data and the second control data;

[0021] The movement direction of the game virtual character and the game viewing angle are calibrated through the first control data and the second control data.

[0022] In a second aspect, a device for realizing dual joystick control of a game controller based on a gyroscope is provided, comprising:

[0023] A data acquisition unit, used to obtain motion data through a gyroscope preset in the game controller, wherein the motion data includes acceleration data and angular velocity data;

[0024] A first control unit is used to integrate the data of the first joystick through the acceleration data to generate first control data, and transmit the first control data to the game console through the data interface to correspondingly control the movement direction of the game virtual character in the game console;

[0025] The second control unit is used to integrate the data of the second joystick through the angular velocity data to generate second control data, and transmit the second control data to the game console through the data interface to perform corresponding control on the game viewing angle in the game console.

[0026] In one embodiment, the first control unit is further configured to:

[0027] Determining the movement direction and movement distance of the gyroscope according to the acceleration data;

[0028] The movement direction and the movement distance are integrated into the first joystick to generate the first control data.

[0029] In one embodiment, the second control unit is further configured to:

[0030] Determining the rotational movement direction of the gyroscope and the angular velocity of the gyroscope according to the angular velocity data;

[0031] The rotational movement direction and the angular velocity of the gyroscope are integrated into the second joystick to generate the second control data.

[0032] In a third aspect, a game controller is provided, comprising a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, wherein when the processor executes the computer-readable instructions, the method for realizing dual-stick control of a game controller based on a gyroscope as described above is implemented.

[0033] In a fourth aspect, a readable storage medium of computer-readable instructions is provided. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the method of realizing dual-stick control of a game controller based on a gyroscope as described above.

[0034] The above-mentioned method, device, handle and medium for realizing dual joystick control of a game controller based on a gyroscope, and its method implementation includes: obtaining motion data of a gyroscope preset in the game controller, and the motion data includes acceleration data and angular velocity data; integrating data of the first joystick through the acceleration data to generate first control data, and transmitting the first control data to the game console through the data interface to perform corresponding control on the motion direction of the virtual character in the game in the game console; integrating data of the second joystick through the angular velocity data to generate second control data, and transmitting the second control data to the game console through the data interface to perform corresponding control on the game viewing angle in the game console. In the present application, the game can be controlled by the cooperation of the gyroscope and the joystick. The acceleration data of the gyroscope replaces the left joystick of the game controller to control the movement direction of the virtual character in the game, and the angular velocity data of the gyroscope replaces the right joystick of the game controller to control the game viewing angle. Only the gyroscope is needed to realize the simultaneous operation of the left and right joysticks of the game controller, which reduces the control difficulty, reduces the coordination requirements for the player, lowers the control threshold of the game controller, and improves the gaming experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0036] Figure 1 is a schematic diagram of an application environment of a method for realizing dual joystick control of a game controller based on a gyroscope in one embodiment of the present invention;

[0037] Figure 2 It is a structural schematic diagram of a device for realizing dual joystick control of a game controller based on a gyroscope in one embodiment of the present invention;

[0038] Figure 3 is a schematic diagram of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION

[0039] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0040] In one embodiment, if Figure 1 As shown, a method for realizing dual joystick control of a game controller based on a gyroscope is provided, comprising the following steps:

[0041] In step S110, motion data of a gyroscope preset in the game controller is obtained, wherein the motion data includes acceleration data and angular velocity data;

[0042] In the embodiment of the present application, the gyroscope may be a six-axis gyroscope, and the six-axis gyroscope may include three-axis acceleration and three-axis angular velocity.

[0043] In an embodiment of the present application, the gyroscope may be preset in the game controller in advance, and the motion state of the game controller may be collected in real time to obtain the motion data of the gyroscope.

[0044] In step S120, the first joystick is integrated with the acceleration data to generate first control data, and the first control data is transmitted to the game console through the data interface to control the movement direction of the game virtual character in the game console accordingly;

[0045] In one embodiment of the present application, the first joystick may be a left joystick, and the left joystick may control the movement direction of the game virtual character.

[0046] In the embodiment of the present application, the movement direction and movement distance of the gyroscope are determined by the acceleration data of the gyroscope, and the data of the first joystick are integrated by the movement direction and movement distance of the gyroscope to generate first control data, and the first control data is sent to the game console through the data interface to control the movement direction of the game virtual character in the game console accordingly. The combination of the gyroscope and the joystick achieves convenient control and precise control.

[0047] In one embodiment of the present application, the data interface is a data interface for connecting the game controller to the game console. Through the data interface, the operation signal of the game controller can be sent to the game console so as to control the virtual character of the game in the game console.

[0048] In the embodiment of the present application, data integration is performed on the first joystick through the acceleration data to generate first control data, including:

[0049] Determining the movement direction and movement distance of the gyroscope according to the acceleration data;

[0050] The movement direction and the movement distance are integrated into the first joystick to generate the first control data.

[0051] In the embodiment of the present application, when the first joystick is stationary, the first joystick is at the center value, and the center value is 0X80. At this time, when the first joystick moves to the left, the data of the first joystick changes from 0X80 to 0X00, and when the first joystick moves to the right, the data of the first joystick changes from 0X80 to 0XFF. It can be understood that different data may correspond to different displacements in the game. For example, in a racing game, when the first joystick data sent by the game controller through the data interface is 0X70, the racing car in the game will move to the left, and when the first joystick data sent by the game controller through the data interface is 0X90, the racing car in the game will move to the right. It can be seen that the more the data of the first joystick deviates from the center value 0X80, the more the virtual character in the game will deviate.

[0052] In the embodiment of the present application, the acceleration data of the X-axis and Y-axis of the gyroscope are obtained, and the movement direction and movement distance of the gyroscope can be determined according to the acceleration data. For example, if the gyroscope tilts to the left, and the tilt data is 3, then when the movement data of the gyroscope is integrated into the first joystick, the first control data 0X80-3=0X7D can be obtained. The first control data 0X7D is sent to the game console through the data interface, and in the game, the game virtual character will move to the left.

[0053] In step S130, the angular velocity data is used to integrate the data of the second joystick to generate second control data, and the second control data is transmitted to the game console through the data interface to perform corresponding control on the game viewing angle in the game console.

[0054] In the embodiment of the present application, the second joystick may be a right joystick, and the right joystick may control the game viewing angle.

[0055] In the embodiment of the present application, the rotational movement direction and angular velocity of the gyroscope are determined by the angular velocity data of the gyroscope, and the second joystick data is integrated by the rotational movement direction and angular velocity of the gyroscope to generate second control data, which is sent to the game console through the data interface to control the game perspective in the game console accordingly. Convenient control and precise control are achieved by combining the gyroscope and the joystick.

[0056] In an embodiment of the present application, data integration is performed on the second joystick through the angular velocity data to generate second control data, including:

[0057] Determining the rotational movement direction of the gyroscope and the angular velocity of the gyroscope according to the angular velocity data;

[0058] The rotational movement direction and the angular velocity of the gyroscope are integrated into the second joystick to generate the second control data.

[0059] In the embodiment of the present application, when the second joystick is not moving, the second joystick is at the center value, and the center value is 0X80. At this time, when the second joystick rotates to the left, the data of the second joystick changes from 0X80 to 0X00, and when the second joystick rotates to the right, the data of the second joystick changes from 0X80 to 0XFF. It can be understood that different data may correspond to different rotation speeds in the game. For example, in a shooting game, when the second control data sent by the game controller through the data interface is 0X70, the game perspective will rotate to the left in the game, and when the second control data sent by the game controller through the data interface is 0X90, the game perspective will rotate to the right in the game. It can be seen that the more the data of the second joystick deviates from the center value 0X80, the faster the rotation speed of the perspective in the game will be.

[0060] In an embodiment of the present application, the rotational movement direction of the gyroscope and the angular velocity of the gyroscope can be determined through the X-axis rotation angular velocity data and the Z-axis rotation angular velocity data of the gyroscope. For example, when the movement direction of the gyroscope is to the left and the angular velocity is 9, the angular velocity data of the gyroscope is integrated with the second joystick data to obtain the second control data. The second control data may be 0X80-9=0X77. The 0X77 is sent to the game console through the data interface, and a left-rotating perspective will appear on the game interface. When the rotational movement direction of the gyroscope is to the right and the angular velocity is 9, the angular velocity data of the gyroscope is integrated with the second joystick data to obtain the second control data. The second control data may be 0X80+9=0X89. The 0X89 is sent to the game console through the data interface, and a right-rotating perspective will appear on the game interface.

[0061] In an embodiment of the present application, the method further includes:

[0062] When the joystick of the game controller is in motion, shielding the first control data and the second control data;

[0063] Generate joystick control data according to the motion state;

[0064] The joystick control data is sent to the game console through the data interface, so that the movement direction of the game virtual character and the game viewing angle in the game console are correspondingly controlled through the joystick control data.

[0065] In an embodiment of the present application, when the joystick of the game controller receives an operation instruction, that is, when the joystick moves, the data generated by the movement of the joystick can be uploaded to the game console first, and the first control data and the second control data formed after the gyroscope integrates the joystick data can be automatically shielded. At this time, in the game, the movement direction of the virtual character in the game console and the game perspective are controlled accordingly through the data generated by the movement of the joystick.

[0066] In one embodiment of the present application, the game controller includes a first joystick and a second joystick. When the first joystick is in motion and the second joystick is in a stationary state, the movement direction of the virtual character in the game console is controlled by the data of the first joystick, and the gyroscope is used to integrate the data of the second joystick to control the game viewing angle accordingly. When the first joystick is in a stationary state and the second joystick is in motion, the movement direction of the virtual character in the game console is controlled by integrating the data of the first joystick through the gyroscope, and the game viewing angle is controlled accordingly through the data of the second joystick.

[0067] In one embodiment of the present application, after the data is sent to the game console through the data interface to control the movement direction of the virtual character in the game and the game perspective through the joystick control data, it can be further determined whether the movement direction of the virtual character in the game has moved to the boundary position, or whether the game perspective has moved to the game boundary. At this time, the same control data is still received. When the judgment result is yes, it can be determined that the joystick is in a mis-touch state, the gyroscope can be unshielded, and the gyroscope can be used to integrate the data of the joystick to control the movement direction of the virtual character in the game in the game console and the game perspective accordingly.

[0068] In an embodiment of the present application, after the movement direction of the game virtual character in the game console and the game perspective are controlled accordingly through the joystick control data, the following steps are included:

[0069] Unshielding the first control data and the second control data;

[0070] The movement direction of the game virtual character and the game viewing angle are calibrated through the first control data and the second control data.

[0071] In an embodiment of the present application, when the joystick is in motion, the data generated by the movement of the joystick is uploaded preferentially through the data interface, and the data of the gyroscope integrated with the joystick is shielded. For example, in a shooting game, the data generated by the movement of the joystick can be used to quickly move the virtual character of the game to the target range. At this time, the shielding of the first control data and the second control data can be released, and the first control data and the second control data of the gyroscope can be used to make slight movements, so that the target character can be quickly eliminated.

[0072] In an embodiment of the present application, a method for realizing dual joystick control of a game controller based on a gyroscope is provided, comprising: obtaining motion data of a gyroscope preset in the game controller, wherein the motion data comprises acceleration data and angular velocity data; integrating data of a first joystick through the acceleration data to generate first control data, and transmitting the first control data to a game console through a data interface to control the motion direction of a virtual character in the game in the game console accordingly; integrating data of a second joystick through the angular velocity data to generate second control data, and transmitting the second control data to the game console through the data interface to control the game perspective in the game console accordingly. In the present application, the control of the game can be realized by the cooperation between the gyroscope and the joystick, the left joystick of the game controller is replaced by the acceleration data of the gyroscope to control the motion direction of the virtual character in the game, and the right joystick of the game controller is replaced by the angular velocity data of the gyroscope to control the game perspective, and only the gyroscope is needed to realize the simultaneous operation of the left and right joysticks of the game controller, thereby reducing the control difficulty, reducing the coordination requirements for the player, reducing the control threshold of the game controller, and improving the game experience.

[0073] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0074] In one embodiment, a device for realizing dual joystick control of a game controller based on a gyroscope is provided, and the device for realizing dual joystick control of a game controller based on a gyroscope corresponds one-to-one to the method for realizing dual joystick control of a game controller based on a gyroscope in the above embodiment. Figure 2 As shown, the device for realizing dual joystick control of a game controller based on a gyroscope includes: a data acquisition unit 10, a first control unit 20 and a second control unit 30. Each functional module is described in detail as follows:

[0075] The data acquisition unit 10 is used to obtain motion data through a gyroscope preset in the game controller, and the motion data includes acceleration data and angular velocity data;

[0076] The first control unit 20 is used to integrate the data of the first joystick through the acceleration data to generate first control data, and transmit the first control data to the game console through the data interface to control the movement direction of the game virtual character in the game console accordingly;

[0077] The second control unit 30 is used to integrate the data of the second joystick through the angular velocity data to generate second control data, and transmit the second control data to the game console through the data interface to perform corresponding control on the game viewing angle in the game console.

[0078] In an embodiment of the present application, the first control unit 20 is further configured to:

[0079] Determining the movement direction and movement distance of the gyroscope according to the acceleration data;

[0080] The movement direction and the movement distance are integrated into the first joystick to generate the first control data.

[0081] In one embodiment of the present application, the second control unit is further configured to:

[0082] Determining the rotational movement direction of the gyroscope and the angular velocity of the gyroscope according to the angular velocity data;

[0083] The rotational movement direction and the angular velocity of the gyroscope are integrated into the second joystick to generate the second control data.

[0084] In one embodiment of the present application, the device further includes a third control unit for

[0085] When the joystick of the game controller is in motion, shielding the first control data and the second control data;

[0086] Generate joystick control data according to the motion state;

[0087] The joystick control data is sent to the game console through the data interface, so that the movement direction of the game virtual character and the game viewing angle in the game console are correspondingly controlled through the joystick control data.

[0088] In one embodiment of the present application, the third control unit is further used for:

[0089] Unshielding the first control data and the second control data;

[0090] The movement direction of the game virtual character and the game viewing angle are calibrated through the first control data and the second control data.

[0091] In the present application, the game can be controlled by the cooperation of the gyroscope and the joystick. The acceleration data of the gyroscope replaces the left joystick of the game controller to control the movement direction of the virtual character in the game, and the angular velocity data of the gyroscope replaces the right joystick of the game controller to control the game viewing angle. Only the gyroscope is needed to realize the simultaneous operation of the left and right joysticks of the game controller, which reduces the control difficulty, reduces the coordination requirements for the player, lowers the control threshold of the game controller, and improves the gaming experience.

[0092] For the specific definition of the device for realizing dual-stick control of a game controller based on a gyroscope, please refer to the definition of the method for realizing dual-stick control of a game controller based on a gyroscope above, which will not be repeated here. Each module in the above-mentioned device for realizing dual-stick control of a game controller based on a gyroscope can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0093] In one embodiment, a game controller is provided. The game controller may be a terminal device, and its internal structure diagram may be as shown in FIG. Figure 3 As shown. The game controller includes a processor, a memory, and a data interface connected via a system bus. Among them, the processor of the game controller is used to provide computing and control capabilities. The memory of the game controller includes a readable storage medium. The readable storage medium stores computer-readable instructions. The data interface of the game controller is used to communicate with an external terminal through a connection. When the computer-readable instructions are executed by the processor, a method for realizing dual-stick control of a game controller based on a gyroscope is implemented. The readable storage medium provided in this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.

[0094] A game controller comprises a memory, a processor and computer-readable instructions stored in the memory and executable on the processor. When the processor executes the computer-readable instructions, the method for realizing dual-joystick control of a game controller based on a gyroscope as described above is implemented.

[0095] A readable storage medium of computer-readable instructions, when the computer-readable instructions are executed by one or more processors, causes the one or more processors to execute the method for realizing dual-stick control of a game controller based on a gyroscope as described above.

[0096] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through computer-readable instructions, and the computer-readable instructions can be stored in a non-volatile readable storage medium or a volatile readable storage medium. When the computer-readable instructions are executed, they may include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0097] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0098] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A method for realizing dual joystick control of a game controller based on a gyroscope, characterized in that: The method comprises: Acquire motion data of a gyroscope preset in the game controller, wherein the motion data includes acceleration data and angular velocity data; The first joystick is integrated with the acceleration data to generate first control data, and the first control data is transmitted to the game console through the data interface to control the movement direction of the virtual character in the game in the game console accordingly. When the first joystick is stationary, the first joystick is at a center value, and the center value is 0X80. At this time, when the first joystick moves to the left, the data of the first joystick changes from 0X80 to 0X00. When the first joystick moves to the right, the data of the first joystick changes from 0X80 to 0XFF. The more the data of the first joystick deviates from the center value 0X80, the more the virtual character in the game will deviate. The angular velocity data is used to integrate the data of the second joystick to generate second control data, and the second control data is transmitted to the game console through the data interface to perform corresponding control on the game viewing angle in the game console. When the second joystick is not moving, the second joystick is at the center value, and the center value is 0X80. At this time, when the second joystick rotates to the left, the data of the second joystick changes from 0X80 to 0X00, and when the second joystick rotates to the right, the data of the second joystick changes from 0X80 to 0XFF. The more the data of the second joystick deviates from the center value 0X80, the faster the viewing angle will rotate in the game.

2. The method for realizing dual joystick control of a game controller based on a gyroscope as claimed in claim 1, characterized in that: The step of integrating the data of the first joystick through the acceleration data to generate first control data includes: Determining the movement direction and movement distance of the gyroscope according to the acceleration data; The movement direction and the movement distance are integrated into the first joystick to generate the first control data.

3. The method for realizing dual joystick control of a game controller based on a gyroscope as claimed in claim 1, characterized in that: The step of integrating the data of the second joystick by using the angular velocity data to generate second control data includes: Determining the rotational movement direction of the gyroscope and the angular velocity of the gyroscope according to the angular velocity data; The rotational movement direction and the angular velocity of the gyroscope are integrated into the second joystick to generate the second control data.

4. The method for realizing dual joystick control of a game controller based on a gyroscope as claimed in claim 1, characterized in that: The method further comprises: When the joystick of the game controller is in motion, shielding the first control data and the second control data; Generate joystick control data according to the motion state; The joystick control data is sent to the game console through the data interface, so that the movement direction of the game virtual character and the game viewing angle in the game console are correspondingly controlled through the joystick control data.

5. The method for realizing dual joystick control of a game controller based on a gyroscope as claimed in claim 4, characterized in that: After the movement direction of the game virtual character in the game console and the game viewing angle are controlled accordingly by the joystick control data, the method further comprises: Unshielding the first control data and the second control data; The movement direction of the game virtual character and the game viewing angle are calibrated through the first control data and the second control data.

6. A device for realizing dual joystick control of a game controller based on a gyroscope, characterized in that: The device comprises: A data acquisition unit, used to obtain motion data through a gyroscope preset in the game controller, wherein the motion data includes acceleration data and angular velocity data; A first control unit is used to integrate the data of the first joystick through the acceleration data to generate first control data, and transmit the first control data to the game console through the data interface to correspondingly control the movement direction of the game virtual character in the game console. When the first joystick is stationary, the first joystick is at a center value, and the center value is 0X80. At this time, when the first joystick moves to the left, the data of the first joystick changes from 0X80 to 0X00, and when the first joystick moves to the right, the data of the first joystick changes from 0X80 to 0XFF. When the data of the first joystick deviates more from the center value 0X80, the virtual character in the game will deviate more; The second control unit is used to integrate the data of the second joystick through the angular velocity data to generate second control data, and transmit the second control data to the game console through the data interface to perform corresponding control on the game viewing angle in the game console. When the second joystick is not moving, the second joystick is at a center value, and the center value is 0X80. At this time, when the second joystick rotates to the left, the data of the second joystick changes from 0X80 to 0X00, and when the second joystick rotates to the right, the data of the second joystick changes from 0X80 to 0XFF. The more the data of the second joystick deviates from the center value 0X80, the faster the viewing angle rotates in the game.

7. The device for realizing dual joystick control of a game controller based on a gyroscope as claimed in claim 6, characterized in that: The first control unit is further configured to: Determining the movement direction and movement distance of the gyroscope according to the acceleration data; The movement direction and the movement distance are integrated into the first joystick to generate the first control data.

8. The device for realizing dual joystick control of a game controller based on a gyroscope as claimed in claim 6, characterized in that: The second control unit is further configured to: Determining the rotational movement direction of the gyroscope and the angular velocity of the gyroscope according to the angular velocity data; The rotational movement direction and the angular velocity of the gyroscope are integrated into the second joystick to generate the second control data.

9. A game controller, comprising a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, wherein when the processor executes the computer-readable instructions, the method for realizing dual-joystick control of a game controller based on a gyroscope as described in any one of claims 1 to 5 is implemented.

10. A readable storage medium of computer-readable instructions, which, when executed by one or more processors, enables the one or more processors to execute the method for realizing dual-stick control of a game controller based on a gyroscope as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Device and method for controlling game view angle

    CN105148514A