Information processing program, information processing method, and information processing device
The information processing program accurately selects the intended command in games by using an index value to determine the user's input operation, addressing the issue of unintended command execution in multi-key inputs.
Patent Information
- Application Number
- JP2024012907
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-01-31
- Publication Date
- 2025-08-13
AI Technical Summary
Existing game systems fail to accurately select the intended command when multiple keys are input by a user, leading to unintended command execution.
An information processing program that detects user input keys and selects the intended command based on an index value related to the input operation of the keys, considering factors like key number, distance, size, and frequency.
Enables users to accurately select their intended command from multiple keys, ensuring correct command execution in games and other applications.
Smart Images

Figure 2025117921000001_ABST
Abstract
Description
[Technical Field]
[0001] The present disclosure relates to an information processing program, an information processing method, and an information processing device. [Background technology]
[0002] Patent document 1 discloses a technology in which, in a game, a first command (e.g., "dash") is assigned to a first key, a second command (e.g., "crouch") is assigned to a second key, and a third command (e.g., "sliding") is assigned to a combination of the first key and the second key. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Japanese Patent Application Laid-Open No. 2000-157731 Summary of the Invention [Problem to be solved by the invention]
[0004] In a game in which commands are assigned to multiple keys and other commands are assigned to some of the multiple keys, such as the technology described in Patent Document 1, when a user inputs multiple keys, there are cases in which the command intended by the user is not selected from the commands corresponding to the multiple keys and some of the multiple keys.
[0005] The present disclosure aims to provide an information processing program, an information processing method, and an information processing device that, when a user inputs multiple keys, allows the user to select an intended command from among commands corresponding to the multiple keys and some of the multiple keys. [Means for solving the problem]
[0006] An information processing program of a first aspect causes a computer to execute a process in which, in a case where a first command is set to a combination of multiple keys and a second command different from the first command is set to some of the multiple keys or two or more keys that partially overlap with the multiple keys, the computer detects keys entered by a user and selects one command from the first command and the second command set to at least some of the detected keys based on an index value related to the input operation of the keys to which the first command and the second command are respectively set.
[0007] An information processing program according to a second aspect is the information processing program according to the first aspect, wherein the index value indicates a degree of difficulty of a key input operation by the user.
[0008] The information processing program of the third aspect causes a computer to execute a process in the information processing program of the second aspect to derive the index value based on at least one of the number of keys, the distance between keys, the size of the keys, the distance of the keys from a reference position, and the frequency of key input for the detected keys.
[0009] A fourth aspect of the information processing program is the information processing program of the third aspect, wherein the reference position is the position of a key corresponding to a command that causes the character controlled by the user to perform a basic action, or the position of a home position in key input operations.
[0010] The information processing program of the fifth aspect causes a computer to execute a process in the information processing program of the third or fourth aspect to derive the index value as a value representing a higher level of difficulty when the number is larger, the distance between the keys is longer, the size is smaller, the distance of the key from the reference position is longer, or the input frequency is lower.
[0011] An information processing program of a sixth aspect is an information processing program of any one of the first to fifth aspects, which causes a computer to execute a process of accepting an assignment of one key or multiple keys to a command by the user, and storing the accepted key or multiple keys in association with the command.
[0012] An information processing program of a seventh aspect is an information processing program of any one of the first to sixth aspects, which causes a computer to execute a process in which, when a character operated by a user is performing an action, if the user selects a command within a predetermined period set for the character, command, or the one action operated by the user, the action corresponding to the selected command is executed, and if the user selects a command outside the predetermined period, the action corresponding to the selected command is not executed.
[0013] In an eighth aspect of the information processing method, when a first command is set to a combination of multiple keys and a second command different from the first command is set to some of the multiple keys or two or more keys that partially overlap with the multiple keys, a computer executes a process of detecting keys entered by a user and selecting one command from the first command and the second command set to at least some of the detected keys based on an index value related to the input operation of the keys to which the first command and the second command are respectively set.
[0014] An information processing device of a ninth aspect includes a processor, and when a first command is set to a combination of multiple keys and a second command different from the first command is set to some of the multiple keys or two or more keys that partially overlap with the multiple keys, the processor detects keys entered by a user and selects one command from the first command and the second command set to at least some of the detected keys based on index values related to the input operation of the keys to which the first command and the second command are each set. [Effects of the Invention]
[0015] According to the present disclosure, when a user inputs multiple keys, the user can select an intended command from among commands corresponding to the multiple keys and some of the multiple keys. [Brief explanation of the drawings]
[0016] [Figure 1] FIG. 2 is a block diagram illustrating an example of a hardware configuration of an information processing device. [Figure 2] FIG. 10 is a diagram for explaining key settings. [Figure 3] FIG. 10 is a diagram showing an example of input states of a plurality of keys. [Figure 4] FIG. 2 is a block diagram illustrating an example of a functional configuration of an information processing device. [Figure 5] FIG. 10 is a diagram illustrating an example of a key setting screen. [Figure 6] 10 is a flowchart illustrating an example of a key setting process. [Figure 7] 10 is a flowchart illustrating an example of a command execution process. DETAILED DESCRIPTION OF THE INVENTION
[0017] Hereinafter, examples of embodiments for carrying out the technology of the present disclosure will be described in detail with reference to the drawings.
[0018] First, the hardware configuration of an information processing device 10 according to this embodiment will be described with reference to Fig. 1. The information processing device 10 is, for example, a home game console, a portable game console, an arcade game console, a smartphone, a tablet terminal, a personal computer, etc. In this embodiment, as an example, a personal computer will be described as the information processing device 10. The information processing device 10 is an example of a computer.
[0019] 1, the information processing device 10 includes a CPU (Central Processing Unit) 11, a memory 12, a storage 13, an external I / F (Interface) 14, a communication I / F 15, and an input I / F 16. The CPU 11, the memory 12, the storage 13, the external I / F 14, the communication I / F 15, and the input I / F 16 are connected to each other via a bus 20 so as to be able to communicate with each other.
[0020] The CPU 11 is a central processing unit that executes various programs and controls each part. The CPU 11 is an example of a processor. The memory 12 serves as a working area and temporarily stores programs or data. The storage 13 is composed of a storage device such as an HDD (Hard Disk Drive), an SSD (Solid State Drive), or a flash memory, and stores various programs and data.
[0021] The storage 13 stores an information processing program 30 for executing a predetermined game on the information processing device 10. The CPU 11 reads the information processing program 30 from the storage 13 and executes the information processing program 30 using the memory 12 as a work area. Note that the information processing program 30 is not limited to being stored in the storage 13, and may be stored in a recording medium such as an optical disc, a USB (Universal Serial Bus) memory, or an SD memory card. Furthermore, the information processing program 30 may be downloadable to the information processing device 10 via the communication I / F 15.
[0022] The external I / F 14 is an interface for connecting various external devices to the information processing device 10. In this embodiment, a speaker 21 and a display 22 are connected to the external I / F 14.
[0023] The speaker 21 outputs various sounds. The speaker 21 may be integrated with the information processing device 10, or may be integrated with the display 22. The display 22 is, for example, a liquid crystal display or an organic EL (Electro Luminescence) display, and displays various types of information. The display 22 may have an integrated touch panel. Furthermore, the display 22 may be integrated with the information processing device 10.
[0024] The communication I / F 15 is an interface for connecting the information processing device 10 to a network. The communication I / F 15 uses, for example, a wired communication standard such as Ethernet (registered trademark) or FDDI (Fiber Distributed Data Interface), or a wireless communication standard such as 4G, 5G, or Wi-Fi (registered trademark).
[0025] The input I / F 16 is an interface for connecting the input device 23 to the information processing device 10. The input device 23 is a controller having operation buttons and directional keys, a mouse, a keyboard, etc., and is used for various inputs. A user operates the game using the input device 23. Operation information indicating the content of the input operation performed by the user using the input device 23 is stored in the memory 12. The input device 23 may be integrated with the information processing device 10. Furthermore, the input device 23 may be detachable from the information processing device 10. Furthermore, the number of input devices 23 may be one or more. Furthermore, the input device 23 may be a touch panel integrated with the display 22. In this embodiment, an example in which a keyboard is used as the input device 23 will be described.
[0026] The information processing device 10 according to this embodiment provides a game in which a character (hereinafter referred to as a "player character") operated by a player, who is a user of the information processing device 10, in a virtual space within the game battles a character different from the player character (hereinafter referred to as an "enemy character"). The enemy character may be an NPC (Non-Player Character), a character operated by a player different from the player operating the player character, or a combination of the character and an NPC. A game is a collection of activities and rules for playing or competing. For example, a game is played by a player utilizing strategy and skill to achieve a specific objective. Games are played to achieve various objectives, for example, competitive objectives such as winning, combat objectives such as defeating an enemy, educational objectives such as learning, and narrative objectives such as completing the progression of a scenario. Games may be competitive or non-competitive.
[0027] As shown in FIG. 2, in the game according to this embodiment, a first command is assigned to a combination of multiple keys, and a second command different from the first command is assigned to some of the multiple keys. The "some of the multiple keys" refers to one key among the multiple keys or a combination of multiple keys among the multiple keys. A command is an instruction issued by the CPU 11. A command is, for example, an instruction to execute a function of an application. A command is, for example, an instruction to cause a player character to perform an action. A key corresponding to a command is a key that is input by a player to execute an intended command. A key refers to various keys on a keyboard, as well as operation buttons and directional keys on a controller. In the example of FIG. 2, a first command called "dodge" is assigned to a combination of three keys, "Tab," "Space," and "V." In addition, in the example of FIG. 2, a second command called "guard" is assigned to a combination of "Tab" and "Space," which are part of the three keys, "Tab," "Space," and "V," that correspond to "dodge." 2, a second command, "attack," is set to "Tab," which is part of the three keys "Tab," "Space," and "V" that correspond to "dodge." Also, in the example of FIG. 2, "Tab," which corresponds to "attack," is also part of the "Tab" and "Space" that correspond to "dodge."
[0028] In a game in which commands and keys are associated as described above, if the intended command corresponds to a combination of multiple keys, the player will input multiple keys simultaneously. Here, key input means pressing a key if the input device 23 is a keyboard. Also, simultaneous input means that at least a portion of the input period overlaps. That is, if the input device 23 is a keyboard, for example, even if the start and end of pressing two keys are not simultaneous, overlapping periods of pressing the keys means that the keys are input simultaneously.
[0029] As an example, as shown in Figure 3, we will explain the case where a player inputs three keys, "Tab," "Space," and "V," to make the player character perform the action "dodge." The left and right axes in Figure 3 represent the time series axis. Also, in Figure 3, a square represents the start of key input, a circle represents the end of key input, and a line connecting the square and circle represents the continuation of the key input state.
[0030] As shown in Figure 3, when a player inputs three keys simultaneously, the timing of the start and end of each key input may not match perfectly. In the example in Figure 3, first, "Tab" is input, then "Space", and finally "V", resulting in a period in which three keys are input. After that, the input of "V" ends, then the input of "Space", and then the input of "Tab" ends.
[0031] In the situation shown in FIG. 3, for example, when the command corresponding to the first key input is executed, the "attack" command is executed. Also, for example, when the commands corresponding to the input keys are executed sequentially, the commands are executed in the order of "attack," "guard," "dodge," "guard," and "attack." In this case, if the command executed immediately before is canceled, the "attack" command is executed finally. Also, for example, when the command corresponding to the last key input is executed, the "attack" command is executed.
[0032] Furthermore, when three keys are pressed, the command corresponding to the pressed keys may be any one of the three commands "dodge" corresponding to the three keys and "attack" or "guard" corresponding to some of the three keys. In this case, for example, if one command is selected from the three commands according to a predetermined priority, such as the order in which key settings are saved, the selected command may not be the command intended by the player.
[0033] As described above, in either case, the command intended by the player may not be executed. Therefore, the information processing device 10 according to this embodiment has a function of selecting one command from among commands corresponding to the multiple keys or some of the multiple keys when the player inputs multiple keys.
[0034] Next, the functional configuration of the information processing device 10 will be described with reference to Fig. 4. As shown in Fig. 4, the information processing device 10 includes a reception unit 40, a storage unit 42, a first derivation unit 44, a detection unit 46, a second derivation unit 48, a selection unit 50, and an execution unit 52. When the CPU 11 executes the information processing program 30, the information processing device 10 functions as the reception unit 40, the storage unit 42, the first derivation unit 44, the detection unit 46, the second derivation unit 48, the selection unit 50, and the execution unit 52.
[0035] The reception unit 40 receives the assignment of one key or multiple keys to commands by the player. As an example, as shown in Fig. 5, the player assigns one key or multiple keys to commands corresponding to actions to be performed by the player character via a key setting screen displayed on the display 22.
[0036] The saving unit 42 associates one key or multiple keys accepted by the accepting unit 40 with a command, and saves the associated data as key setting data in the storage 13. The saving unit 42 may also save the key setting data in the memory 12.
[0037] The first derivation unit 44 derives the distance of each key assigned to a command from a reference position. The reference position is, for example, the position of a key corresponding to a command that causes the player character to perform a basic action. Examples of basic actions include movement, attack, evasion, and defense. Examples of basic actions include actions that do not use a gauge, actions that require a shorter time until re-execution than other actions, and actions that can be executed consecutively. The reference position may be the home position for key input operations (for example, typing). When multiple keys are assigned to a command, the first derivation unit 44 may use a statistical value, such as the sum, average, or median, of the distances of the multiple keys from the reference position as the distance of the key from the reference position.
[0038] Furthermore, for a command to which multiple keys are assigned, the first derivation unit 44 derives the distances between multiple keys. For a command to which three or more keys are assigned, the first derivation unit 44 may determine, as the distance between the keys, a statistical value such as the total value, average value, or median value of the distances between all two-key combinations of the three or more keys.
[0039] The first derivation unit 44 stores the derived distances between keys and the distances from the reference position of the keys in the memory 12. In this embodiment, the key sizes and key input frequencies are also set as program variables, etc., and are stored in the memory 12 when the program starts to run.
[0040] The detection unit 46 detects keys input by the player in the game via the input I / F 16. The second derivation unit 48 derives index values (hereinafter simply referred to as "index values") related to input operations of keys to which the first command and the second command are respectively set among the keys detected by the detection unit 46. In this embodiment, an example will be described in which an index value indicating the difficulty of the key input operation by the player is applied as the index value.
[0041] Specifically, the second derivation unit 48 derives the index value based on the number of keys, the distance between keys, the size of the keys, the distance from the reference position of the keys, and the key input frequency for the keys to which the first command and the second command are respectively set among the keys detected by the detection unit 46. The keys detected by the detection unit 46 refer to the keys that are simultaneously input by the player at the detected timing. Note that the second derivation unit 48 may derive the index value based on one or a combination of two or more of the number of keys, the distance between keys, the size of the keys, the distance from the reference position of the keys, and the key input frequency.
[0042] The second derivation unit 48 derives an index value representing a higher level of difficulty as the number of keys increases. Furthermore, the second derivation unit 48 derives an index value representing a higher level of difficulty as the distance between keys increases. Furthermore, the second derivation unit 48 derives an index value representing a higher level of difficulty as the size of the keys decreases. Furthermore, the second derivation unit 48 derives an index value representing a higher level of difficulty as the distance of the keys from the reference position increases. Furthermore, the second derivation unit 48 derives an index value representing a higher level of difficulty as the key input frequency decreases. The key input frequency may be the input frequency in a game, or may be the input frequency in something other than a game (for example, document creation), or may be the input frequency in both a game and something other than a game. In this embodiment, a larger index value represents a higher level of difficulty, but a smaller index value may represent a higher level of difficulty.
[0043] For example, the second derivation unit 48 derives the index value according to the following equation (1): In equation (1), a, b, c, d, and e are coefficients, and positive numbers are set. Index value = a × number of keys + b × distance between keys + c ÷ size of key + d × distance from base position of key + e ÷ frequency of key input (1)
[0044] The selection unit 50 selects one command from the first commands and second commands set for at least some of the keys detected by the detection unit 46, based on the index value derived by the second derivation unit 48. In this embodiment, the selection unit 50 selects one command from the first commands and second commands for which the index value derived for the key corresponding to each command is the largest, i.e., the command for which the difficulty of key input operation is the highest.
[0045] The execution unit 52 causes the player character to execute an action corresponding to one command selected by the selection unit 50. When the player character is executing one action, and the selection unit 50 selects one command within a predetermined period set for the player character, the command, or the one action, the execution unit 52 causes the player character to execute the action corresponding to the one command selected by the selection unit 50. In this case, the execution unit 52 cancels the one action being executed by the player character, and executes the action corresponding to the one command selected by the selection unit 50. Furthermore, when the player character is executing one action, and the selection unit 50 selects a command outside the predetermined period, the execution unit 52 does not execute the action corresponding to the one command selected by the selection unit 50. The predetermined period in these cases refers to a period during which the player character can cancel the one action being executed.
[0046] Next, the operation of the information processing device 10 will be described with reference to Figures 6 and 7. The CPU 11 executes the information processing program 30, thereby executing the key setting process shown in Figure 6 and the command execution process shown in Figure 7. The key setting process is executed, for example, when a player assigns keys via a key setting screen. The command execution process is executed, for example, when a game stage is selected by the player and the selected stage starts.
[0047] 6, the reception unit 40 receives an assignment of one key or multiple keys to a command from the player. In step S12, the storage unit 42 associates the one key or multiple keys received in step S10 with the command, and stores the result as key setting data in the storage 13. When the processing of step S12 ends, the key setting processing ends.
[0048] 7, the first derivation unit 44 refers to the key setting data and derives the distance from the reference position of each key assigned to a command. Furthermore, for a command to which multiple keys are assigned, the first derivation unit 44 derives the distance between multiple keys. The first derivation unit 44 then stores the derived distances between keys and the distances from the reference position of each key in the memory 12. As described above, the key size and key input frequency are also set in program variables, etc., and are stored in the memory 12 at the start of the command execution process.
[0049] In step S22, the detection unit 46 waits until it detects a key input by the player. If the detection unit 46 detects a key input by the player, the determination in step S22 becomes positive, and the process proceeds to step S24.
[0050] In step S24, the second derivation unit 48 derives index values related to input operations of keys to which the first command and the second command are respectively set among the keys detected by the detection unit 46, as described above. In step S26, the selection unit 50 selects one command from the first command and the second command set for at least some of the keys detected by the detection unit 46, based on the index values derived in step S24, as described above. Note that the second derivation unit 48 may derive index values before step S22. In this case, the second derivation unit 48 may derive index values for all keys to which the first command and the second command are respectively set. In this case, the selection unit 50 may extract index values corresponding to the keys to which the first command and the second command are respectively set among the keys detected by the detection unit 46, from the index values derived for all the keys.
[0051] In step S28, the execution unit 52 determines whether the player character is performing an action. The action here does not refer to an action corresponding to the most recent command selected in step S26, but rather to an action performed by the player character in response to a previously selected command. If this determination is affirmative, the process proceeds to step S30. In step S30, the execution unit 52 determines whether the selection unit 50 selected a command in step S26 within a predetermined period set for the player character, the command, or the action. If this determination is negative, the process returns to step S22; if this determination is affirmative, the process proceeds to step S32. If the determination in step S28 is negative, the process of step S30 is not executed and the process proceeds to step S32.
[0052] In step S32, the execution unit 52 issues one command selected in step S26, causing the player character to perform the action corresponding to the issued command. When the processing of step S32 ends, the processing returns to step S22.
[0053] As described above, according to this embodiment, when a player inputs multiple keys, the player can select the command he or she intends from among the commands corresponding to those multiple keys or some of the multiple keys.
[0054] In the above embodiment, the disclosed technology is described as being applied to key input by a user in a game, but the disclosed technology is not limited to this. The disclosed technology may also be applied to key input by a user in a non-game context. Examples of commands in this case include various commands set as shortcut keys for operating a computer.
[0055] Furthermore, in the above embodiment, a case has been described in which the second command is set to some of the multiple keys to which the first command is set, but the disclosed technology is not limited to this aspect. A configuration in which the second command is set to two or more keys that partially overlap with the multiple keys to which the first command is set may also be adopted. For example, a first command may be set to a combination of "Tab" and "Space," and a second command may be set to a combination of "Tab" and "V." Even in this case, for example, when a user inputs three keys, "Tab," "Space," and "V," one command is selected based on the index values of the keys to which the first command and the second command are respectively set, as in the above embodiment.
[0056] Furthermore, various processes executed by the CPU 11 after reading software (programs) in the above embodiment may be executed by various processors other than a CPU. Examples of such processors include programmable logic devices (PLDs) whose circuit configuration can be changed after fabrication, such as field-programmable gate arrays (FPGAs), and dedicated electrical circuits, such as application-specific integrated circuits (ASICs), which are processors with circuit configurations specifically designed to execute specific processes. Furthermore, various processes may be executed by one of these various processors, or by a combination of two or more processors of the same or different types (e.g., multiple FPGAs, or a combination of a CPU and an FPGA). Furthermore, the hardware structure of these various processors is, more specifically, an electrical circuit that combines circuit elements such as semiconductor devices. [Explanation of symbols]
[0057] 10. Information processing equipment 11 CPU 30 Information Processing Program 40 Reception 42 Preservation Department 44 First derivation part 46 Detector 48 Second derivation part 50 Selection Section 52 Executive Department
Claims
1. a key input device for detecting a key input by a user when a first command is set to a combination of a plurality of keys and a second command different from the first command is set to a part of the plurality of keys or two or more keys that partially overlap with the plurality of keys; Selecting one command from the first command and the second command set to at least some of the detected keys based on index values related to input operations of the keys to which the first command and the second command are set. An information processing program that causes a computer to execute a process.
2. The index value indicates the difficulty of the key input operation by the user. The information processing program according to claim 1 .
3. The index value is derived based on at least one of the number of detected keys, the distance between keys, the size of the keys, the distance of the keys from a reference position, and the frequency of key input.
3. The information processing program according to claim 2, for causing a computer to execute the process.
4. The reference position is the position of a key corresponding to a command that causes the character operated by the user to perform a basic action, or the home position for key input operations. The information processing program according to claim 3 .
5. The index value is derived as a value representing a higher level of difficulty as the number increases, the distance between the keys increases, the size decreases, the distance between the keys from the reference position increases, or the input frequency decreases.
5. The information processing program according to claim 3, for causing a computer to execute the process.
6. Accepting an assignment of a key or keys to a command by the user; Saves the received key or keys in association with a command.
5. The information processing program according to claim 1, for causing a computer to execute the process.
7. When a character operated by the user is performing an action, if the user selects a command within a predetermined period set for the character, command, or the action, the action corresponding to the selected command is executed, and if the user selects a command outside the predetermined period, the action corresponding to the selected command is not executed.
5. The information processing program according to claim 1, for causing a computer to execute the process.
8. a key input device for detecting a key input by a user when a first command is set to a combination of a plurality of keys and a second command different from the first command is set to a part of the plurality of keys or two or more keys that partially overlap with the plurality of keys; Selecting one command from the first command and the second command set to at least some of the detected keys based on index values related to input operations of the keys to which the first command and the second command are set. An information processing method in which processing is performed by a computer.
9. a processor, the processor comprising: a key input device for detecting a key input by a user when a first command is set to a combination of a plurality of keys and a second command different from the first command is set to a part of the plurality of keys or two or more keys that partially overlap with the plurality of keys; Selecting one command from the first command and the second command set to at least some of the detected keys based on index values related to input operations of the keys to which the first command and the second command are set. Information processing device.
Citation Information
Patent Citations
Game device, storage medium, and character operation setting
JP2000157731A