You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
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
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.
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
,_process
and_draw
but if you try to get the events likeInputEventKey
orInputEventMouseButton
using 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)
function3- Print the
event
variable or try to check if the function was called.Minimal reproduction project
UWP Project.zip
The text was updated successfully, but these errors were encountered: