- Home /
Background input
We're trying to get input send to Unity in the background, while running a simulation in a program that doesn't allow tabbing out, to get some different timers running. So the Unity won't be focused but will run in the background.
I googled and found posts without answers, someone said this:
http://answers.unity3d.com/questions/400448/joystick-inputs-on-an-inactive-window.html
But not sure what this is, anyone who can expalin it, or any ideas to the approach.
What kind of input? Is this a general app, or something specific to one machine? As a hack, you can always have Unity poll for a file either locally or on the web.
Answer by Elringus · Apr 12, 2018 at 07:31 PM
Check out this GitHub project: https://github.com/Elringus/UnityRawInput
It allows getting input events event when the application is not in focus.
Your answer
![](https://koobas.hobune.stream/wayback/20220613103840im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Get input while running in background 1 Answer
Can't Input when focus a text field 2 Answers
Unity runs in background but loses keyboard input 1 Answer
Focus on InputField upon key press? 3 Answers