We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS
Input.parse_input_event and/or Input.flush_buffered_events not working as expected (or at least as previous)
Input.parse_input_event
Input.flush_buffered_events
Create empty project, 2D scene, drag godot icon into scene to act as a Sprite2D node and add script:
extends Sprite2D func _ready(): setup_inputmap() press_left(true) func _process(delta): var velocity = Vector2() if Input.is_action_pressed("left"): velocity.x -= 1 velocity = velocity.normalized() * 200 position += velocity * delta func press_left(pressed: bool): var input_event = InputEventAction.new() input_event.action = "left" input_event.pressed = pressed Input.parse_input_event(input_event) Input.flush_buffered_events() func setup_inputmap(): var action_name = "left" InputMap.add_action(action_name) var event_key = InputEventKey.new() event_key.keycode = KEY_A InputMap.action_add_event(action_name, event_key)
In 4.1 the sprite will move left In 4.2 the sprite will not move
(attached is same as described in steps to reproduce) playground2.zip
The text was updated successfully, but these errors were encountered:
Can confirm this issue on Windows.
Sorry, something went wrong.
Bisected to d9d0cfa (#84685), cc @KoBeWi
event_index
I just reproduced this issue too in Godot 4.2.1 (Manjaro Linux)
On Mac, and can reproduce with Godot 4.2.1, 4.2.2.rc2, and 4.3.dev5.
Successfully merging a pull request may close this issue.
Tested versions
System information
macOS
Issue description
Input.parse_input_event
and/orInput.flush_buffered_events
not working as expected (or at least as previous)Steps to reproduce
Create empty project, 2D scene, drag godot icon into scene to act as a Sprite2D node and add script:
In 4.1 the sprite will move left
In 4.2 the sprite will not move
Minimal reproduction project (MRP)
(attached is same as described in steps to reproduce)
playground2.zip
The text was updated successfully, but these errors were encountered: