C# (CSharp) PrinceGame InputAction - 2 exemples trouvés. Ce sont les exemples réels les mieux notés de PrinceGame.InputAction extraits de projets open source. Vous pouvez noter les exemples pour nous aider à en améliorer la qualité.
Defines an action that is designated by some set of buttons and/or keys. The way actions work is that you define a set of buttons and keys that trigger the action. You can then evaluate the action against an InputState which will test to see if any of the buttons or keys are pressed by a player. You can also set a flag that indicates if the action only occurs once when the buttons/keys are first pressed or whether the action should occur each frame. Using this InputAction class means that you can configure new actions based on keys and buttons without having to directly modify the InputState type. This means more customization by your games without having to change the core classes of Game State Management.