In Godot 4, is there a way to detect the keyboards input when the app is not focus ? I would like to make an app who display the inputs.
Detect the keyboard when the app is not focus.
Based on that response, it seems like it is not possible :
https://ask.godotengine.org/25628/is-there-way-to-get-user-input-while-the-window-is-not-in-focus
- Best Answerset by Bilzeiboube
The person answering that question was incorrect. It's possible, but will probably require you to import and bind to a library that handles it.
This is one written in C#, but it's quite old and might no longer work.
This one is in Rust and super recent.
This one is in C with a Go interface and would probably be tricky to get working.
This one is in Java. It's a bit older, but it looks like many more people have used it.
There may be more I didn't find.
Too bad it's not possible in GDScript for now :/