Skip to content
This repository has been archived by the owner on Nov 28, 2024. It is now read-only.

Input handler for actions #187

Open
nezvers opened this issue Sep 18, 2022 · 1 comment
Open

Input handler for actions #187

nezvers opened this issue Sep 18, 2022 · 1 comment

Comments

@nezvers
Copy link
Contributor

nezvers commented Sep 18, 2022

An option to bind more than one input to a single input action. For example Godot input actions and Unity's new InputSystem.
In Godot, there are several ways how to interact with actions, all of which take into account the deadzone (default 0.5).
ref: Input | InputMap
Input.is_action_pressed - true if any associated input is held
Input.is_action_just_pressed / released - true only for one frame
Input.get_action_strength - 0.0 to 1.0 for analogue input and 0 or 1 for other
Input.get_axis( negative_action, positive_action ) - gives result (example right_action minus left_action)

For more naming examples/influence:
Gamemaker:
key_check - true if the button is held
key_check_pressed / key_check_released - true for one frame

Unity:
GetKey - true if a key is held
GetKeyDown / GetKeyUp - true for one frame

@Bombfuse
Copy link
Owner

Added some really basic bindings in via #189, I think we still need to add the analogue stick related APIs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants