Skip to content

Input.is_action_just_pressed() may return true for multiple frames in a row when using joypad axis #83416

@KoBeWi

Description

@KoBeWi

Godot version

4.2 beta1

System information

Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 30.0.15.1403) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)

Issue description

func _process(delta):
	print(Input.is_action_just_pressed("ui_right"))

This may return true for single analog movement. It's a regression
(╯°□°)╯︵ ┻━┻

Steps to reproduce

Use the code above with a controller (tested with Xbox One S controller). Make sure you have joypad axis assigned to an action.

Minimal reproduction project

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions