Edit of asset "Input Handling System" Accepted
| Old/Current | New/Edit | |
|---|---|---|
| Title | Input Handling System | Input Handling System |
| Description |
This is an easy-to-use Godot input handler that solves many problems you might face while trying to handle user input in your game. Features: - Zero Race Conditions: The inputs are handled in predictable order. You control the order and whether you continue parsing the input. - Modular Design: Each component is a Node, no spaghetti code where multiple inputs are handled in one file. Each component can be disabled. - Developer Friendly: Easy-to-use and easy-to-integrate design, utilizes familiar built-in features (Scene Tree order, exported properties, Input Map) instead of messy boilerplate code. How To Use: 1. Download the input_handler.gd and input_subhandler.gd scripts and put them inside your Godot game's Assets directory. 2. Now these will appear as InputHandler and InputSubhandler instances when you go to add a new Node to your game. 3. Add the InputHandler to the game (either directly to the top or inside your player). 4. Add a InputSubhandler and extend its script: image 5. Add your activation actions in the InputSubhandler's properties. The key will be a valid action name from your game's Input Map and the value will be an activation mode, the options are: Just Pressed, Just Released, Pressed Continuous. 6. Override the _on_activate(_event: InputEvent) -> InputHandler.InputHandledState method to your liking. Example method to make sure it works: extends InputSubhandler func _on_activate(_event: InputEvent) -> InputHandler.InputHandledState: print("This is an example InputSubhandler extension."); return InputHandler.InputHandledState.HANDLED; |
This is an easy-to-use Godot input handler that solves many problems you might face while trying to handle user input in your game. Features: - Zero Race Conditions: The inputs are handled in predictable order. You control the order and whether you continue parsing the input. - Modular Design: Each component is a Node, no spaghetti code where multiple inputs are handled in one file. Each component can be disabled. - Developer Friendly: Easy-to-use and easy-to-integrate design, utilizes familiar built-in features (Scene Tree order, exported properties, Input Map) instead of messy boilerplate code. How To Use: 1. Download the input_handler.gd and input_subhandler.gd scripts and put them inside your Godot game's Assets directory. 2. Now these will appear as InputHandler and InputSubhandler instances when you go to add a new Node to your game. 3. Add the InputHandler to the game (either directly to the top or inside your player). 4. Add a InputSubhandler and extend its script: image 5. Add your activation actions in the InputSubhandler's properties. The key will be a valid action name from your game's Input Map and the value will be an activation mode, the options are: Just Pressed, Just Released, Pressed Continuous. 6. Override the _on_activate(_event: InputEvent) -> InputHandler.InputHandledState method to your liking. Example method to make sure it works: extends InputSubhandler func _on_activate(_event: InputEvent) -> InputHandler.InputHandledState: print("This is an example InputSubhandler extension."); return InputHandler.InputHandledState.HANDLED; |
| Category | Scripts | Scripts |
| License | MIT | MIT |
| Repository Provider | GitHub | GitHub |
| Repository Url | https://github.com/sokiGit/godot-input-handler | https://github.com/sokiGit/godot-input-handler |
| Issues Url | https://github.com/sokiGit/godot-input-handler/issues | https://github.com/sokiGit/godot-input-handler/issues |
| Godot version | Godot 4.0 | Godot 4.0 |
| Version String | 1.1.0 | 1.0.0 |
| Download Commit | 46be1a003d2c07c31f2d93632e78dcab9a110a2b | 9dd2ce3beb55c236e7648dfb1868bb6f548f5b95 |
| Download Url (Computed) | https://github.com/sokiGit/godot-input-handler/archive/46be1a003d2c07c31f2d93632e78dcab9a110a2b.zip | https://github.com/sokiGit/godot-input-handler/archive/9dd2ce3beb55c236e7648dfb1868bb6f548f5b95.zip |
| Icon Url |
https://i.imgur.com/OgCAOxI.png
|
https://img.itch.zone/aW1nLzI1MzA0NTc3LnBuZw==/32x32%23/DL%2Fard.png
|