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

Add the ability for inputs to be available even when the window is not in focus #2541

Closed
Gamemap opened this issue Apr 1, 2021 · 1 comment

Comments

@Gamemap
Copy link

Gamemap commented Apr 1, 2021

Describe the project you are working on.

Voice chat

Describe the problem or limitation you have in your project.

When the window is in the background, you cannot press a key to activate a function. (In other programs like OBS, you can press a key to activate something).

Describe the function/enhancement and how it helps overcome the problem or limitation.

Add a boolean value to make an input work only when the window is only in focus or also in the background.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams.

if Input.is_action_pressed("ui_accept", false): (only if focused window = false)

If this extension is not used often, can it be bypassed with a few lines of script?

No.

Is there a reason why this should be core and not an add-on in the asset library?

I think many others creating a program (like a timer or something) would need such a feature as well.

@Calinou
Copy link
Member

Calinou commented Apr 1, 2021

Duplicate of #1919.

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

No branches or pull requests

2 participants