CN112386918A - Key value configuration method of game function key position based on vehicle and vehicle - Google Patents

Key value configuration method of game function key position based on vehicle and vehicle Download PDF

Info

Publication number
CN112386918A
CN112386918A CN201910756691.0A CN201910756691A CN112386918A CN 112386918 A CN112386918 A CN 112386918A CN 201910756691 A CN201910756691 A CN 201910756691A CN 112386918 A CN112386918 A CN 112386918A
Authority
CN
China
Prior art keywords
key
vehicle
game
value
initial
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
CN201910756691.0A
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.)
BYD Co Ltd
Original Assignee
BYD 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 BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN201910756691.0A priority Critical patent/CN112386918A/en
Publication of CN112386918A publication Critical patent/CN112386918A/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/80Special adaptations for executing a specific game genre or game mode
    • A63F13/803Driving vehicles or craft, e.g. cars, airplanes, ships, robots or tanks
    • 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/25Output arrangements for video game devices
    • 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/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • 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/45Controlling the progress of the video game
    • 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/90Constructional details or arrangements of video game devices not provided for in groups A63F13/20 or A63F13/25, e.g. housing, wiring, connections or cabinets
    • A63F13/98Accessories, i.e. detachable arrangements optional for the use of the video game device, e.g. grip supports of game controllers
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
    • B60R16/02Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Mechanical Engineering (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a vehicle and a key value configuration method of game function key positions based on the vehicle. The method comprises the following steps: after the vehicle is detected to enter a game mode, acquiring a function identifier of a key position to be configured contained in an initial configuration instruction and a key value to be set associated with initial operation data of the vehicle; determining a game function key position matched with the key position to be configured in the game interface of the vehicle according to the function identifier; and setting the key value to be set corresponding to the key position to be configured as the initial key value of the game function key position matched with the function identifier. The method comprises the steps of configuring key values of game function key positions in a game interface, and matching vehicle operation data and triggering the game function key positions according to the configured key values when vehicle operation data sent by vehicle-mounted equipment are received; the invention can use the vehicle-mounted equipment of the vehicle to experience the game function of the vehicle, thereby improving the wide applicability of the vehicle in the aspect of entertainment and greatly enhancing the game experience effect.

Description

Key value configuration method of game function key position based on vehicle and vehicle
Technical Field
The invention relates to the technical field of game functions of vehicles, in particular to a key value configuration method of game function key positions based on vehicles and a vehicle.
Background
The smart car system has become the mainstream at present, and the entertainment of the smart car system is gradually the target of each car development system. The existing game mode with high operation requirement in the automobile has two schemes: one scheme is that a purchased gamepad is connected with an intelligent vehicle-mounted central control, and key code values on the gamepad are mapped to a game operation interface to realize smooth game playing; another solution is to develop a customized simulated steering wheel by the cooperation of the automobile manufacturer and the game company, and to fully simulate a specific gamepad based on the simulated steering wheel developed cooperatively to support a specific game developed by the game company.
In summary, there is no technical scheme for applying the vehicle-mounted device to the game function key position in the game function of the intelligent vehicle-mounted system in the prior art, and the above scheme in the prior art has the following disadvantages: firstly, the purchased gamepad brings poor game experience, especially for large-scale galloping games, the gamepad cannot feel the reality of the game using a real vehicle steering wheel, and for acceleration, brake control or role steering and the like of the game, the real-time control feeling and game bringing-in feeling brought by a real vehicle accelerator pedal, a brake pedal, a steering wheel and the like cannot be felt only by the operation of the gamepad; secondly, the customized simulation steering wheel only supports the cooperation of automobile manufacturers and game companies to develop customized games, so the cost is high, the number of the customized games is limited, the simulation steering wheel can be single for the used games, and the user experience of new games is hindered.
Disclosure of Invention
The embodiment of the invention provides a vehicle-based key value configuration method of game function key positions and a vehicle, which can configure key values of all different game function key positions in a game interface in the vehicle, and further match vehicle operation data and trigger the game function key positions according to the key values of the successfully configured game function key positions when vehicle operation data sent by vehicle-mounted equipment of the vehicle is received; according to the invention, the vehicle-mounted equipment of the vehicle can be used for experiencing the game function of the vehicle, the wide applicability of the vehicle in the entertainment aspect is improved, and the game experience effect is greatly enhanced.
In order to achieve the above object, the present invention provides a key value configuration method of game function key positions based on vehicles, comprising:
after the vehicle is detected to enter a game mode, receiving an initial configuration instruction, and acquiring a function identifier of a key position to be configured and a key value to be set, which are contained in the initial configuration instruction and are associated with initial operation data of the vehicle; one key value to be set corresponds to one key position to be configured;
determining a game function key position matched with the key position to be configured in a game interface of the vehicle according to the function identifier;
and setting the key value to be set corresponding to the key position to be configured as the initial key value of the game function key position matched with the function identifier. The invention also provides a vehicle which comprises a brake module, an accelerator module and a steering wheel module, wherein the brake module comprises a brake pedal, the accelerator module comprises an accelerator pedal, the steering wheel module comprises a steering wheel, the vehicle also comprises a control module and a preset display device for displaying a game interface of the vehicle, the brake module, the accelerator module, the steering wheel module and the preset display device are all connected with the control module, and the control module is used for executing the data processing method of the game function key positions based on the vehicle.
The key value configuration method of the game function key position based on the vehicle and the vehicle can configure the key values of all different game function key positions in a game interface in the vehicle, and further match the vehicle operation data and trigger the game function key position according to the key value of the successfully configured game function key position when receiving the vehicle operation data sent by the vehicle-mounted equipment of the vehicle; according to the invention, the vehicle-mounted equipment of the vehicle can be used for experiencing the game function of the vehicle, the wide applicability of the vehicle in the entertainment aspect is improved, and the game experience effect is greatly enhanced. Meanwhile, the game device can completely simulate the game required by the user without an external game handle or a customized simulated steering wheel, so that the device is suitable for different game types, has strong universality, saves the cost and improves the feasibility of the user for experiencing new games.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without inventive labor.
FIG. 1 is a flow chart of a key value configuration method for vehicle-based game function keys in an embodiment of the present invention;
FIG. 2 is a flow chart of a key value configuration method for vehicle-based game function key location in another embodiment of the present invention;
FIG. 3 is a flow chart of a key value configuration method for vehicle-based game function key location in accordance with another embodiment of the present invention;
fig. 4 is a schematic structural diagram of a vehicle according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In one embodiment, as shown in fig. 1 and 4, a method for configuring key values of game function keys based on a vehicle is provided, which includes the following steps:
s10, after the vehicle is detected to enter a game mode, receiving an initial configuration instruction, and acquiring a function identifier of a key position to be configured contained in the initial configuration instruction and a key value to be set associated with initial operation data of the vehicle; one key value to be set corresponds to one key position to be configured; in the invention, when the mode gear of the vehicle is the game gear, the vehicle enters the game mode and displays the game interface containing the game function key position. The initial configuration instruction is generated after inputting a function identifier of a key position to be configured (one key value to be set corresponds to one key position to be configured, one key position to be configured corresponds to one game function key position, and the function identifier is an identifier uniquely corresponding to one game function key position) and the key value to be set associated with the initial operation data of the vehicle in an input field preset in the game interface. Further, the to-be-set key value associated with each game function key position and the initial operation data of the vehicle may be a preset default key value, in this embodiment, after the function identifier of the to-be-configured key position is selected or input, the preset default key value may be directly and automatically displayed in the input field, and the user may record the default key value as the to-be-set key value after modifying the default key value according to the requirement, or may directly use the default key value as the to-be-set key value.
The initial operation data of the vehicle refers to vehicle operation data that is output to the control module 14 by a CAN (Controller Area Network) bus in a preset initial state by an on-board device of the vehicle (such as an accelerator pedal of an accelerator module 12, a brake pedal of a brake module 11, a steering wheel of a steering wheel module 13, and the like shown in fig. 4). The CAN bus is a field bus which has formed an international standard and has the characteristics of high communication rate, easiness in implementation, high cost performance and the like. In the present embodiment, the CAN bus is applied to data communication between modules inside the vehicle in a strong interference environment, such as data communication between the throttle module 12 and the control module 14, data communication between the brake module 11 and the control module 14, and the like. In one embodiment, the vehicle operation data comprises one or more of a throttle depth data value, a brake depth data value, and a steering angle data value; the accelerator depth data value refers to vehicle operation data received when an accelerator pedal of the vehicle is stepped on; the brake depth data value refers to vehicle operation data received when a brake pedal of the vehicle is stepped on; the steered angle data value (preferably including a left steering value and a right steering value) refers to vehicle operation data received when a steering wheel of the vehicle is turned.
S20, determining a game function key position matched with the key position to be configured in the game interface of the vehicle according to the function identifier; that is, one game function key corresponds to one function identifier, so that the game function key matched with the key to be configured in the game interface can be determined according to the function identifier. The game function key position refers to a virtual key position in the game interface, and includes but is not limited to an accelerator key position, a brake key position, a direction key position and the like.
S30, setting the key value to be set corresponding to the key position to be configured as the initial key value of the game function key position matched with the function identification. Understandably, the key value to be set, which is recorded through the input field, can be obtained in the vehicle-mounted Android system by using EditText, the key value to be set is stored in an SQL database (STRUCTURED QUERY database, Android native database for storing data) as an initial key value of the game function key position corresponding to the key value to be set (the initial key value can be modified according to requirements), and the data persistence operation is performed. The game device is configured with the embodiment to be capable of playing any vehicle game by being completely matched with the vehicle-mounted device of the vehicle (such as the accelerator pedal of the accelerator module 12, the brake pedal of the brake module 11, the steering wheel of the steering wheel module 13, and the like shown in fig. 4), and the configuration process is simple and convenient to operate, high in flexibility and strong in practicability.
The key value configuration method of the game function key position based on the vehicle can configure the key values of all different game function key positions in a game interface in the vehicle, and further match the vehicle operation data and trigger the game function key position according to the key value of the successfully configured game function key position when vehicle operation data sent by vehicle-mounted equipment of the vehicle is received; according to the invention, the vehicle-mounted equipment of the vehicle can be used for experiencing the game function of the vehicle, the wide applicability of the vehicle in the entertainment aspect is improved, and the game experience effect is greatly enhanced. Meanwhile, the game device can completely simulate the game required by the user without an external game handle or a customized simulated steering wheel, so that the device is suitable for different game types, has strong universality, saves the cost and improves the feasibility of the user for experiencing new games.
In an embodiment, as shown in fig. 2, after the step S30, that is, after the setting of the key value to be set corresponding to the key position to be configured as the initial key value of the game function key position matching the function identifier, the method includes:
s40, setting the triggering condition of the game function key according to the initial key value of the game function key;
s50, obtaining the initial operation data associated with the key value to be set corresponding to the initial key value, and setting a response event corresponding to the triggering condition of the game function key according to the initial operation data.
Understandably, the triggering condition of a game function key position may include a starting triggering condition and a cancelling triggering condition (such as an acceleration triggering condition and a cancellation acceleration triggering condition), and when the game function key is clicked or slid after the starting triggering condition of the game function key position is triggered, a response event corresponding to the game function key position is executed; similarly, if a cancel trigger condition of a function key is triggered, then a game function key is lifted (as opposed to clicked or slid) and execution of a response event corresponding to the game function key is stopped. In this embodiment, the triggering condition of a game function key may be set according to the initial key value of the game function key finally determined in step S30. Further, since each initial key value (to-be-set key value) is the initial operation data corresponding to one vehicle, the game function key corresponding to the initial operation data of the vehicle can be determined first according to the initial operation data of the vehicle, and then the initial operation data is mapped to the game operation state on the operation object controlled by the game function key, after the triggering condition of the game function key is determined to be met, if the game function key is triggered and the response event is executed, the game operation state of the operation object in the game interface is displayed as the game operation state mapped according to the initial operation data.
In the embodiment, the triggering condition and the response event corresponding to the game function key position in the game interface are firstly configured, so that the game function key position in the game interface and associated with the vehicle operation data can be triggered by using the vehicle operation data generated by the vehicle-mounted device of the vehicle to execute the game operation event, and the game is played by using the vehicle-mounted device as a game tool.
Understandably, before configuring the triggering conditions and the response events corresponding to the game function key positions in the game interface, the coordinate positions of the coordinate points (the first coordinate point, the second coordinate point and the third coordinate point) corresponding to each of the throttle key position, the brake key position and the direction key position are also required to be determined. In the invention, when the mode gear of the vehicle is the game gear, the vehicle enters the game mode and displays the game interface, and then the floating window module can be popped up in the game interface to adapt the coordinate position of the coordinate point of the game function key in the game interface. The shape, display position, placement angle, display transparency and the like of the suspension window module can be set and modified according to requirements, for example, the suspension window module can be a semi-transparent circular window body. In one embodiment, the properties of the floating window module may be configured by windowManger to float on the game interface as a system level pop. Understandably, the floating window module comprises at least one functional display area (such as functional display areas for acceleration, braking, left turning, right turning and the like), the initial prompt text (i.e., the prompt text playing a prompting role for each function display region, such as the prompt text for accelerating "acceleration" displayed by the function display region) displayed in each function display region, and the number, arrangement, and display form (e.g., the initial display angle is initially displayed in the game interface, but when the user touches the floating window module to indicate its rotation, the display angle can be switched at any time according to the touch of the user, that is, the floating window module in the present invention can support 360 ° rotation by touch), and the like, which are displayed in each function display region, can be set and modified according to requirements.
After the floating window module is displayed above a game interface of a vehicle in a floating mode, when the floating window module moves to cover the game function key position, the coordinate position of the coordinate point where the game function key position is located is obtained through the coordinate grabbing control (namely, the floating window module comprises a touchable coordinate grabbing control which has the main function of obtaining the specific coordinate position of the coordinate point corresponding to the game function key position covered by the coordinate grabbing control in the game interface); and receiving a coordinate storage request containing function identifiers, and storing the obtained coordinate positions of the coordinate points and the function identifiers in a correlation manner, wherein one function identifier only corresponds to one game function key. That is, after the specific coordinate position of the coordinate point corresponding to the game function key position covered by the coordinate capture control is obtained in the game interface through the coordinate capture control, the user can click the function display area (the initial prompt text in the function display area is "acceleration") corresponding to the game function key position (such as the accelerator key position) in the floating window module, at this time, since one game function key position corresponds to one function identifier, a coordinate storage request containing the function identifier can be generated as long as the function display area corresponding to the game function key position is clicked, at this time, the coordinate position of the coordinate point obtained by the coordinate capture control is directly associated and stored with the function identifier corresponding to the game function key position in the database, and the process of storing the coordinate position of the game function key position is completed. For example, the process of acquiring the coordinate position of the coordinate point of the accelerator key position is as follows: manually dragging and covering the floating window module to the accelerator key position, taking the coordinate position of the coordinate point of the accelerator key position by the coordinate grabbing control, generating a coordinate storage request containing a function identifier after touching and clicking an acceleration function display area in the floating window module, and storing the coordinate position of the coordinate point of the accelerator key position and the function identifier in the coordinate storage instruction in an associated manner. And then, continuously returning to obtain the coordinate position of the coordinate point of the next game function key position, wherein the sequence of the coordinate positions of the coordinate points of each game function key position can be set according to the requirements of users. The above-mentioned embodiment, can carry on the dynamic configuration to the coordinate position of the coordinate point of all different game function key positions in the game interface in the vehicle, and then can be according to the vehicle operation data that the on-vehicle equipment of vehicle sends, trigger the game function key position at the coordinate point of the game function key position that has already been disposed successfully, namely when satisfying the trigger condition of a game key position, make the game function key position respond to the response event that corresponds to it at the coordinate point.
In an embodiment, after the step S40, that is, after the setting of the trigger condition of the game function key according to the initial key value of the game function key, the method includes:
acquiring a threshold updating instruction input through a threshold updating interface, wherein the threshold updating instruction comprises a key value to be updated corresponding to the game function key position to be updated;
setting the key value to be updated as an initial key value after the game function key position to be updated is updated;
resetting the triggering condition of the game function key according to the updated initial key value.
That is, in this embodiment, in the process of controlling the game to progress in the game interface by the user, if it is found that the rotation angle of the steering wheel, the depth of stepping on the brake pedal, and the depth of stepping on the accelerator pedal are not well controlled, so that the game operation state of the response of the operation object in the game interface is not well controlled (representing that the vehicle operation data which cannot be generated by the operation habit of the vehicle-mounted device preferred by the user, the trigger condition for controlling the game function key is triggered), the initial key value corresponding to the representative game function key may be set less suitably; at the moment, a user pops up a threshold updating interface on the game interface, and after selecting a game function key position to be updated and inputting a proper key value to be updated in the threshold updating interface, the user confirms the updating and generates a threshold updating instruction. After that, the key value to be updated can be directly set as the updated initial key value of the game function key position to be updated. Therefore, when the user controls the game to be played again, the game function key position is triggered according to the trigger condition of the game function key position reset through the updated initial key value, at the moment, the trigger condition of the game function key is controlled to be triggered through vehicle operation data generated through the operation habit of the vehicle-mounted equipment preferred by the user, so that the game control process of the user is smooth and comfortable, the game experience of the user is enhanced, the updating process also enables the game player to be suitable for any racing games and can expand functions, the game version does not need to be updated every time, and the development cost is saved.
In an embodiment, as shown in fig. 3, after the step S50, that is, after the acquiring the initial operation data associated with the to-be-set key value corresponding to the initial key value, and setting a response event corresponding to a trigger condition of the game function key according to the initial operation data, the method includes:
s60, receiving vehicle operation data, and acquiring the game function key position associated with the vehicle operation data in the game interface; wherein one of the vehicle operation data is associated with at least one of the game function key positions; that is, if vehicle operation data is received from an in-vehicle device of the vehicle (such as an accelerator pedal of the accelerator module 12, a brake pedal of the brake module 11, a steering wheel of the steering wheel module 13, etc. shown in fig. 4), a game function key position matched with the vehicle operation data can be determined according to the vehicle operation data. Understandably, one piece of vehicle operation data may correspond to one or more game function key positions, for example, if the vehicle operation data contains an accelerator depth data value, the vehicle operation data corresponds to an accelerator key position, and executing a game operation event corresponding to the vehicle operation data only requires the accelerator key position to respond to a corresponding response event; if the vehicle operation data contains the throttle depth data value and the turn angle data value, the vehicle operation data corresponds to the throttle key position and the direction key position, and the execution of the game operation event corresponding to the vehicle operation data can be completed by simultaneously responding the throttle key position and the direction key position to the corresponding response event.
And S70, when detecting that the vehicle operation data accords with the trigger condition set according to the initial key value of the game function key, triggering the game function key associated with the vehicle operation data to execute the game operation event corresponding to the vehicle operation data. That is, after it is determined that the vehicle operation data conforms to the respective trigger conditions of the game function key pieces set according to the initial key value as described above, all the game function key pieces corresponding to the vehicle operation data may be triggered to execute the game operation event corresponding to the vehicle operation data.
In one embodiment, the game function key comprises a throttle key; the trigger conditions of the accelerator key position comprise an acceleration trigger condition and a cancellation acceleration trigger condition; the initial operating data comprises a throttle depth data value; the game operation event comprises a throttle function event corresponding to the throttle key position;
the step S40 includes: setting an acceleration triggering condition of the accelerator key position as that an accelerator pedal of the vehicle is stepped on and the accelerator depth data value is greater than or equal to a first accelerator threshold value;
setting a condition for triggering acceleration cancellation of an accelerator key position as that an accelerator depth data value of an accelerator pedal of the vehicle is less than or equal to a second accelerator threshold value, wherein the second accelerator threshold value is less than the first accelerator threshold value;
the step S50 includes: and when the initial operation data is the throttle depth data value, setting the response event of the throttle key position as clicking or sliding the throttle key position located at the first coordinate point, and determining the clicking strength or the sliding position according to the throttle depth data value.
Specifically, after the above-mentioned content is set, if the accelerator pedal of the vehicle is stepped on, the accelerator depth data value transmitted from the accelerator module 12 in the vehicle to the control module 14 through the CAN bus is obtained, at this time, the control module 14 detects whether the current accelerator depth data value is greater than or equal to a first accelerator threshold (the first accelerator threshold is set according to the requirement), when the current accelerator depth data value is greater than or equal to a preset first accelerator threshold, it is determined that the accelerator depth data value matches the acceleration trigger condition of the accelerator key position, at this time, a first function identifier corresponding to the accelerator key position set up so far is obtained, thereafter, the coordinate position of a first coordinate point stored in association with the first function identifier is retrieved, and a response event of the accelerator key position is responded there (at this time, the response event is an accelerator function event), that is to click or slide the accelerator key position located at the first coordinate point according to the accelerator depth data value, to control the operation object in the game interface to accelerate. And when the current accelerator depth data value is smaller than a preset first accelerator threshold value, determining that the accelerator depth data value does not match the acceleration trigger condition of the accelerator key (the accelerator key of the first coordinate point is not triggered), at this time, controlling the operation object in the game interface to be kept in a previously recorded motion state, for example, keeping a static state or keeping the traveling speed of the previous operation object to continue traveling and the like.
Similarly, it has been determined in the above-described embodiment that the value of the throttle depth data matches the acceleration trigger condition of the throttle key position (at this time, the operation subject is in an accelerated state for executing the throttle function event) and that the operation subject is accelerated by clicking or sliding the throttle key position located at the first coordinate point; detecting whether the current throttle depth data value is smaller than or equal to a preset second throttle threshold value (the second throttle threshold value is smaller than the first throttle threshold value) in real time, and then determining that the throttle depth data value is matched with a cancel acceleration triggering condition of the throttle key position when the current throttle depth data value is smaller than or equal to the preset second throttle threshold value; at this time, the operation object in the game interface is controlled to keep moving at the current speed (the acceleration state is not kept any more); and when the operation object in the game interface is larger than a preset second throttle threshold value, determining that the throttle key position of the first coordinate point is still in a clicked or sliding state, and at the moment, the operation object is still in an acceleration state for executing the throttle function event, so that the operation object in the game interface can be continuously controlled to be continuously accelerated. In summary, in the embodiment, the accelerator key position in the game interface is triggered by the accelerator depth data value generated by the accelerator pedal in the vehicle, so as to execute the accelerator function event corresponding to the accelerator key position, thereby facilitating acceleration control in the game and improving the reality degree of game experience.
In one embodiment, the game function key comprises a brake key; the triggering conditions of the brake key position comprise a braking triggering condition and a braking cancelling triggering condition; the initial operational data comprises brake depth data values; the game operation event comprises a brake function event corresponding to the brake key position;
the step S40 includes: setting the braking triggering condition of the braking key position as that a braking pedal of the vehicle is stepped on and the braking depth data value is greater than or equal to a first braking threshold value;
setting a braking cancellation triggering condition of a braking key position as a braking depth data value of a brake pedal of the vehicle to be less than or equal to a second braking threshold value, wherein the second braking threshold value is less than the first braking threshold value;
the step S50 includes: and when the initial operation data is the brake depth data value, setting the response event of the brake key position as clicking or sliding the brake key position at a second coordinate point, wherein the clicking strength or the sliding position is determined according to the brake depth data value.
Specifically, when a brake pedal of a vehicle is stepped on, a brake depth data value transmitted to a control module 14 by a brake module 11 in the vehicle through a CAN bus is acquired, at this time, the control module 14 detects whether a current brake depth data value is greater than or equal to a preset first brake threshold value (the first brake threshold value is set according to requirements), when the current brake depth data value is greater than or equal to the preset first brake threshold value, it is determined that the brake depth data value matches a brake trigger condition of the brake key position, at this time, a second function identifier corresponding to the brake key position set up so far is acquired, thereafter, a coordinate position of a second coordinate point stored in association with the second function identifier is retrieved, and a response event of the brake key position is responded thereto (at this time, the response event is a brake function event), that is, the brake key position located at the second coordinate point is clicked or slid according to the brake depth data value, to control the operation object in the game interface to brake (stop or slow down). And when the current braking depth data value is smaller than a preset first braking threshold value, determining that the braking depth data value is not matched with the braking triggering condition of the braking key position (the braking key position of the second coordinate point is not triggered), and at the moment, controlling the operation object in the game interface to be kept in a previously recorded motion state, such as keeping a static state, keeping the traveling speed or acceleration state of the previous operation object to continue traveling and the like.
Similarly, after it has been determined in the above-described embodiment that the braking depth data value matches the braking trigger condition of the brake key bit (at this time, the operation object is in the braking state of executing the braking function event) and the object of operation is braked by clicking or sliding the brake key bit located at the second coordinate point; detecting whether the current braking depth data value is smaller than or equal to a preset second braking threshold value (the second braking threshold value is smaller than the first braking threshold value) in real time, then determining that the braking depth data value is matched with a braking cancellation triggering condition of the braking key position when the current braking depth data value is smaller than or equal to the preset second braking threshold value, and at the moment, controlling an operation object in the game interface to be kept in a current state (a static or decelerating braking state after braking) and waiting for the next operation; and when the operation object in the game interface is larger than a preset second braking threshold value, determining that the braking key position of the second coordinate point is still in a clicked or sliding state, and at the moment, the operation object is still in a braking state for executing the braking function event, so that the operation object in the game interface can be continuously controlled to continuously decelerate until the operation object is static. In conclusion, the embodiment triggers the brake key position in the game interface through the brake pedal in the vehicle, and then executes the brake function event corresponding to the brake key position, so that the brake control in the game is more convenient, and the game experience reality degree is improved. In one embodiment, the game function key comprises a direction key; the triggering conditions of the direction key position comprise a left triggering condition and a right triggering condition; the initial operational data comprises a corner data value; the game operation event comprises a direction function event corresponding to the direction key position;
the step S40 includes:
setting a left triggering condition of the direction key position as that a steering wheel of the vehicle turns to the left and the turning angle data value is greater than or equal to a first turning angle threshold value;
setting a right triggering condition of a direction key position as that a steering wheel of the vehicle turns to the right and the turn angle data value is greater than or equal to a second turn angle threshold value;
the step S50 includes:
and when the initial operation data is a corner data value, setting the response event of the direction key position as clicking or sliding the direction key position at a third coordinate point, wherein the clicking strength or the sliding position is determined according to the corner data value.
In the present embodiment, the steering angle data value includes a left steering value and a right steering value; the left steering value refers to a steering angle data value generated when the steering wheel turns left by a certain angle at an initial position before turning (that is, the steering angle data value of the steering wheel of the vehicle turning left); the right steering value is a steering angle data value generated when an initial position before turning is turned to the right by a certain angle (i.e., the steering angle data value by which the steering wheel of the vehicle is turned to the right as described above). Understandably, the direction key may include two keys, i.e., a left-turn key (corresponding to a left-turn value) and a right-turn key (corresponding to a right-turn value) at the third coordinate point, and the direction key may also be only one key which is located at the third coordinate point and simultaneously corresponds to the left-turn value and the right-turn value (e.g., sliding left corresponds to a left-turn value, and sliding right corresponds to a right-turn value).
Before the steering wheel of the vehicle rotates, an initial turning angle value transmitted to the control module 14 by the steering wheel module 13 in the vehicle through the CAN bus is obtained, and an initial direction of an operation object in the game interface corresponding to the initial turning angle value is obtained, and when the steering wheel of the vehicle rotates, a current turning angle value transmitted to the control module 14 by the CAN bus after the steering wheel of the steering wheel module 13 in the vehicle rotates is obtained (the current turning angle value corresponding to the current turning angle value after the current turning of the steering wheel CAN be set as the initial turning angle value corresponding to the steering wheel before the next turning of the steering wheel), and a turning angle oscillation value is obtained according to the initial turning angle value and the current turning angle value. The corner data value may be determined to be a left corner value or a right corner value according to the corner oscillation value, for example, the corner oscillation value may be a difference between an initial corner value and a current corner value, when the corner oscillation value is a negative value, the corner oscillation value is considered to be a left steering value, and when the corner oscillation value is a positive value, the corner oscillation value is considered to be a right steering value.
At this time, if it is determined that the turning angle data value is the left turning value according to the turning angle oscillation value, it may be further detected whether the left turning value is greater than or equal to a preset first turning angle threshold (the first turning angle threshold is set according to a requirement), when the left turning value is greater than or equal to the preset first turning angle threshold, it is determined that the left turning angle value matches with the left triggering condition of the direction key, at this time, the direction key of the third coordinate point in the game interface is clicked or slid (the left turning key is clicked or the direction key is slid to the left), and a direction function event corresponding to the direction key is executed, so as to control the operation object in the game interface to turn left from the initial direction; and when the left steering value is smaller than a preset first steering angle threshold value, determining that the direction key position of a third coordinate point in the game interface is released (the process of triggering the direction key position after the left triggering condition is met), and controlling the operation object in the game interface to keep in the initial direction.
If the corner data value is determined to be the right steering value according to the corner oscillation value, further detecting whether the right steering value is greater than or equal to a preset second corner threshold value (the second corner threshold value is equal to or not equal to the first corner threshold value), when the right steering value is greater than or equal to the preset second corner threshold value, determining that the right steering value is matched with the right triggering condition of the direction key, and at this time, clicking or sliding the direction key of a third coordinate point in the game interface (the right steering key is clicked or the direction key slides to the right), and executing a direction function event corresponding to the direction key, so as to control the operation object in the game interface to turn right from the initial direction; and when the right steering value is smaller than a second steering angle threshold value, determining that the direction key position of a third coordinate point in the game interface is released (the process of triggering the direction key position after the left triggering condition is met) so as to control the operation object in the game interface to keep the initial direction.
In one embodiment, the receiving an initial configuration instruction after detecting that the vehicle enters the game mode comprises:
and when the current gear of the vehicle is monitored to be a game gear, the vehicle is enabled to enter a game mode.
In the present embodiment, the mode gears of the vehicle include, but are not limited to, driving gears (such as an automatic driving gear, a manual driving gear, etc.) and game gears; when the mode gear of the vehicle is a driving gear, the vehicle can be normally driven as a vehicle, and vehicle operation data generated by vehicle-mounted devices (such as a steering wheel module 13, a brake module 11, a throttle module 12 and the like) of the vehicle when a user normally drives the vehicle is only used for executing instructions related to driving the vehicle (such as vehicle brake, vehicle acceleration, vehicle steering and the like); when the mode gear of the vehicle is the game gear, a game can be played by using part of the vehicle-mounted devices (such as the steering wheel module 13, the brake module 11 and the throttle module 12) of the vehicle as game tools, and at the moment, a user can experience various games (such as an all-terrain vehicle game) installed in the vehicle. Understandably, the game gear additionally arranged in the vehicle is used for controlling whether the vehicle enters a game mode or not, so that the safety risk of playing games in the vehicle can be reduced, the driving safety can be ensured, and the driving safety can be ensured.
In one embodiment, the causing the vehicle to enter the game mode when it is monitored that the current gear of the vehicle is the game gear comprises:
monitoring whether the current gear of the vehicle is a game gear through a monitoring interface;
when the current gear of the vehicle is monitored to be a game gear, the game starting key is switched from a non-trigger state to a trigger state, so that the vehicle enters a game mode; and switching the current display interface of the preset display device of the vehicle to a game interface.
And when the condition that the vehicle exits the game gear is monitored, the game starting key is switched from a trigger state to a non-trigger state so as to enable the vehicle to exit the game mode.
In this embodiment, when a user controls the driving range of the vehicle to be switched to a game range, whether the current mode range of the vehicle is a game range can be dynamically monitored through a monitoring interface (the monitoring interface is used for dynamically monitoring a mode range event of the vehicle), and when the mode range is the game range, a start key associated with the game range is automatically switched from a non-trigger state to a trigger state, so that the vehicle is switched to a game mode after exiting from the driving mode, and simultaneously, a display interface of a preset display device 15 (such as one or more vehicle-mounted LED display screens) in the vehicle exits from the driving interface and is switched to the game interface. After the user controls the game gear of the vehicle to be switched to the driving gear, the current mode gear of the vehicle can be dynamically monitored to be the driving gear through the monitoring interface, and the game starting key associated with the game gear is automatically switched from the triggering state to the non-triggering state, so that the vehicle exits from the game mode and is switched to the driving mode, and meanwhile, the display interface of the preset display device in the vehicle exits from the game interface and is switched to the driving interface. In conclusion, the embodiment dynamically monitors the mode gear of the vehicle through the monitoring interface, so that the multi-mode control of the vehicle is realized, and the game experience effect of the vehicle is enhanced while the driving safety of the user is ensured.
In an embodiment, as shown in fig. 4, a vehicle is provided, which includes a brake module 11, an accelerator module 12, and a steering wheel module 13, where the brake module 11 includes a brake pedal, the accelerator module 12 includes an accelerator pedal, the steering wheel module 13 includes a steering wheel, the vehicle further includes a preset control module 14 and a preset display module 15 for displaying a game interface, the brake module 11, the accelerator module 12, the steering wheel module 13, and the preset display module 15 are all connected to the control module 14, and the control module 14 is configured to execute the above game data processing method based on the vehicle of the present invention.
For the specific limitations of the vehicle, reference may be made to the limitations of the vehicle-based game data processing method, which are not described herein again.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A key value configuration method of game function key positions based on vehicles is characterized by comprising the following steps:
after the vehicle is detected to enter a game mode, receiving an initial configuration instruction, and acquiring a function identifier of a key position to be configured and a key value to be set, which are contained in the initial configuration instruction and are associated with initial operation data of the vehicle; one key value to be set corresponds to one key position to be configured;
determining a game function key position matched with the key position to be configured in a game interface of the vehicle according to the function identifier;
and setting the key value to be set corresponding to the key position to be configured as the initial key value of the game function key position matched with the function identifier.
2. The key value configuration method of vehicle-based game function key according to claim 1, wherein after setting the key value to be set corresponding to the key value to be configured as the initial key value of the game function key matching with the function identifier, the method comprises:
setting a triggering condition of the game function key according to the initial key value of the game function key;
and acquiring the initial operation data associated with the key value to be set corresponding to the initial key value, and setting a response event corresponding to the triggering condition of the game function key according to the initial operation data.
3. The key value configuration method of vehicle-based game function key according to claim 2, wherein after setting the triggering condition of the game function key according to the initial key value of the game function key, comprising:
acquiring a threshold updating instruction input through a threshold updating interface, wherein the threshold updating instruction comprises a key value to be updated corresponding to the game function key position to be updated;
setting the key value to be updated as an initial key value after the game function key position to be updated is updated;
resetting the triggering condition of the game function key according to the updated initial key value.
4. The key-value configuration method of vehicle-based game function key according to claim 2 or 3, characterized in that, after acquiring the initial operation data associated with the to-be-set key value corresponding to the initial key value and setting a response event corresponding to a trigger condition of the game function key according to the initial operation data, it comprises:
receiving vehicle operation data, and acquiring the game function key position associated with the vehicle operation data in the game interface; wherein one of the vehicle operation data is associated with at least one of the game function key positions;
triggering the game function key associated with the vehicle operation data to execute a game operation event corresponding to the vehicle operation data when it is detected that the vehicle operation data meets a trigger condition set according to the initial key value of the game function key.
5. The key value configuration method of vehicle-based game function key according to claim 4, wherein the game function key includes a throttle key; the trigger conditions of the accelerator key position comprise an acceleration trigger condition and a cancellation acceleration trigger condition; the initial operating data comprises a throttle depth data value; the game operation event comprises a throttle function event corresponding to the throttle key position;
the setting of the triggering condition of the game function key according to the initial key value of the game function key comprises the following steps:
setting an acceleration triggering condition of the accelerator key position as that an accelerator pedal of the vehicle is stepped on and the accelerator depth data value is greater than or equal to a first accelerator threshold value;
setting a condition for triggering acceleration cancellation of an accelerator key position as that an accelerator depth data value of an accelerator pedal of the vehicle is less than or equal to a second accelerator threshold value, wherein the second accelerator threshold value is less than the first accelerator threshold value;
the acquiring the initial operation data associated with the to-be-set key value corresponding to the initial key value and setting a response event corresponding to the triggering condition of the game function key according to the initial operation data includes:
and when the initial operation data is the throttle depth data value, setting the response event of the throttle key position as clicking or sliding the throttle key position located at the first coordinate point, and determining the clicking strength or the sliding position according to the throttle depth data value.
6. The key value configuration method of vehicle-based game function key according to claim 4, wherein the game function key includes a brake key; the triggering conditions of the brake key position comprise a braking triggering condition and a braking cancelling triggering condition; the initial operational data comprises brake depth data values; the game operation event comprises a brake function event corresponding to the brake key position;
the setting of the triggering condition of the game function key according to the initial key value of the game function key comprises the following steps:
setting the braking triggering condition of the braking key position as that a braking pedal of the vehicle is stepped on and the braking depth data value is greater than or equal to a first braking threshold value;
setting a braking cancellation triggering condition of a braking key position as a braking depth data value of a brake pedal of the vehicle to be less than or equal to a second braking threshold value, wherein the second braking threshold value is less than the first braking threshold value;
the acquiring the initial operation data associated with the to-be-set key value corresponding to the initial key value and setting a response event corresponding to the triggering condition of the game function key according to the initial operation data includes:
and when the initial operation data is the brake depth data value, setting the response event of the brake key position as clicking or sliding the brake key position at a second coordinate point, wherein the clicking strength or the sliding position is determined according to the brake depth data value.
7. The key value configuration method of vehicle-based game function key according to claim 4, wherein the game function key includes a direction key; the triggering conditions of the direction key position comprise a left triggering condition and a right triggering condition; the initial operational data comprises a corner data value; the game operation event comprises a direction function event corresponding to the direction key position;
the setting of the triggering condition of the game function key according to the initial key value of the game function key comprises the following steps:
setting a left triggering condition of the direction key position as that a steering wheel of the vehicle turns to the left and the turning angle data value is greater than or equal to a first turning angle threshold value;
setting a right triggering condition of a direction key position as that a steering wheel of the vehicle turns to the right and the turn angle data value is greater than or equal to a second turn angle threshold value;
the acquiring the initial operation data associated with the to-be-set key value corresponding to the initial key value and setting a response event corresponding to the triggering condition of the game function key according to the initial operation data includes:
and when the initial operation data is a corner data value, setting the response event of the direction key position as clicking or sliding the direction key position at a third coordinate point, wherein the clicking strength or the sliding position is determined according to the corner data value.
8. The key-value configuration method of vehicle-based game function key according to claim 2, wherein said after detecting that said vehicle enters the game mode, before receiving the initial configuration instruction, comprises:
and when the current gear of the vehicle is monitored to be a game gear, the vehicle is enabled to enter a game mode.
9. The key value configuration method of vehicle-based game function key positions according to claim 8, wherein said causing the vehicle to enter a game mode when it is monitored that the current shift position of the vehicle is a game shift position comprises:
monitoring whether the current gear of the vehicle is a game gear through a monitoring interface;
when the current gear of the vehicle is monitored to be a game gear, the game starting key is switched from a non-trigger state to a trigger state, so that the vehicle enters a game mode; switching a current display interface of a preset display device of the vehicle to a game interface;
and when the condition that the vehicle exits the game gear is monitored, the game starting key is switched from a trigger state to a non-trigger state so as to enable the vehicle to exit the game mode.
10. A vehicle comprises a brake module, an accelerator module and a steering wheel module, wherein the brake module comprises a brake pedal, the accelerator module comprises an accelerator pedal, the steering wheel module comprises a steering wheel, and the vehicle is characterized in that the vehicle further comprises a preset display device and a control module, the preset display device is used for displaying a game interface, the brake module, the accelerator module, the steering wheel module and the preset display device are connected with the control module, and the control module is used for executing the key value configuration method of the game function key positions based on the vehicle as claimed in any one of claims 1 to 9.
CN201910756691.0A 2019-08-16 2019-08-16 Key value configuration method of game function key position based on vehicle and vehicle Pending CN112386918A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910756691.0A CN112386918A (en) 2019-08-16 2019-08-16 Key value configuration method of game function key position based on vehicle and vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910756691.0A CN112386918A (en) 2019-08-16 2019-08-16 Key value configuration method of game function key position based on vehicle and vehicle

Publications (1)

Publication Number Publication Date
CN112386918A true CN112386918A (en) 2021-02-23

Family

ID=74601821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910756691.0A Pending CN112386918A (en) 2019-08-16 2019-08-16 Key value configuration method of game function key position based on vehicle and vehicle

Country Status (1)

Country Link
CN (1) CN112386918A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113101672A (en) * 2021-04-23 2021-07-13 浙江吉利控股集团有限公司 Automobile intelligent cabin game control method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103607618A (en) * 2013-11-21 2014-02-26 乐视致新电子科技(天津)有限公司 Game control method and game control device in intelligent television
CN109847337A (en) * 2018-12-24 2019-06-07 北京梧桐车联科技有限责任公司 Game control method and device, storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103607618A (en) * 2013-11-21 2014-02-26 乐视致新电子科技(天津)有限公司 Game control method and game control device in intelligent television
CN109847337A (en) * 2018-12-24 2019-06-07 北京梧桐车联科技有限责任公司 Game control method and device, storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113101672A (en) * 2021-04-23 2021-07-13 浙江吉利控股集团有限公司 Automobile intelligent cabin game control method and system

Similar Documents

Publication Publication Date Title
CN109847337B (en) Game control method and device, and storage medium
CN112386907B (en) Game data processing method based on vehicle and vehicle
CN110559656B (en) Vehicle-mounted air conditioner control method and device in game scene
CN107924629A (en) Drive assistance device, drive assist system, driving assistance method and automatic driving vehicle
KR102388836B1 (en) Operating system startup acceleration
JP4891286B2 (en) Remote control device
US8612100B2 (en) Vehicle management and control system
CN108434733B (en) Speed control method and device for game object
CN112373475B (en) Vehicle control method, device, medium, equipment and vehicle
CN112386904B (en) Game function key position data processing method based on vehicle and vehicle
EP3796159B1 (en) Operating system startup acceleration
CN112386918A (en) Key value configuration method of game function key position based on vehicle and vehicle
JP2000237451A (en) Problem solution type vehicle game device
KR20170138503A (en) Method and system for managing driving mode change of an automobile vehicle
KR20170032283A (en) Operating system startup acceleration
CN111942403B (en) Mode switching method, device, equipment and storage medium
EP2903306A1 (en) System and method for mitigating unintended operation
CN112569583B (en) Vehicle, realization method of simulated game, vehicle-mounted display terminal and medium
CN112569609B (en) Vehicle and game control method and device thereof
CN110371051B (en) Prompt tone playing method and device for vehicle-mounted entertainment
CN112394860B (en) Game touch control method based on vehicle and vehicle
CN112519795A (en) Automobile manual function demonstration system, automobile and method
CN114491787A (en) Multi-vehicle multi-simulator linkage driving system and data processing method thereof
US10353556B2 (en) Method and device for providing a user with feedback on an input
CN113415341A (en) Steering wheel silent control method and device based on steer-by-wire system

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