Skip to content
New issue

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

Input Events don't work on UWP (regression in 3.5.rc6 due to input accumulation being turned on by default) #63322

Closed
ElCosmoXD opened this issue Jul 22, 2022 · 4 comments · Fixed by #63341

Comments

@ElCosmoXD
Copy link

ElCosmoXD commented Jul 22, 2022

Godot version

v3.5.rc6.official [f05cecd]

System information

Windows 11

Issue description

If you run a exported project on UWP, The application will render the scene and will call the main functions like _ready, _processand _drawbut if you try to get the events like InputEventKeyor InputEventMouseButtonusing the _input function you won't get any event.

In this video you can see it, I'm pressing multiple keys but nothing happens:

2022-07-22_13-22-03_Trim.mp4

This is what you should see:

2022-07-22_13-26-54_Trim.mp4

Steps to reproduce

1- Create a Node and attach a Script to it (I tested this with GDScript and GDNative)
2- In the script add the _input(event) function
3- Print the event variable or try to check if the function was called.

Minimal reproduction project

UWP Project.zip

@ElCosmoXD ElCosmoXD changed the title Input doesn't work on UWP Input Events doesn't work on UWP Jul 22, 2022
@akien-mga
Copy link
Member

Does it work if you call Input.set_use_accumulated_input(false) in the _ready of your main scene?
And does it work with 3.4.4 or 3.5 RC 5 or earlier?

CC @RandomShaper

@akien-mga akien-mga added this to the 3.5 milestone Jul 22, 2022
@ElCosmoXD
Copy link
Author

I tested calling Input.set_use_accumulated_input(false) and now it works, Thanks.
And I couldn't test this on other versions but at least when you call the Input.set_use_accumulated_input(false) on Godot 3.5 RC6 works.

@akien-mga
Copy link
Member

It's still a bug, it means accumulated input doesn't work on UWP, and now that it's the default, it's a problem.

@akien-mga akien-mga reopened this Jul 22, 2022
@akien-mga akien-mga changed the title Input Events doesn't work on UWP Input Events don't work on UWP (regression in 3.5.rc6 due to input accumulation being turned on by default) Jul 22, 2022
@ElCosmoXD
Copy link
Author

I just tried the sample project with Godot 3.4.4 and it works without calling Input.set_use_accumulated_input(false), So as you say the accumulated input doesn't work on UWP at least in the version 3.5 RC.6.

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

Successfully merging a pull request may close this issue.

4 participants