Page 1 of 1

Is it possible to make Joystick inputs be registered when the window is not in focus?

Posted: Fri Jun 22, 2018 11:24 pm
by thearst3rd
I wrote a quick Love2D program which just takes a joystick and shows all of it's inputs in a nice graphical way, for use as a real-time input display for videos/live streams or whatever. However, the joysticks do not update when the window is not in focus.

I can tell the joystick library is still processing each frame, because if I hold an analog axis out before making the window lose focus, it will continue to hold that value until I move that axis back to 0, where it will trace that axis' path back to 0.

Is there a way I can tell the joystick library to allow background input?

Thanks!

Re: Is it possible to make Joystick inputs be registered when the window is not in focus?

Posted: Wed Jun 27, 2018 4:18 am
by thearst3rd
I fixed it using the code in this issue! :)

https://bitbucket.org/rude/love/issues/ ... ndow-focus