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

Input handler for actions #187

Description

@nezvers

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions