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

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
thearst3rd
Prole
Posts: 2
Joined: Fri Jun 22, 2018 11:10 pm

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

Post 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!
thearst3rd
Prole
Posts: 2
Joined: Fri Jun 22, 2018 11:10 pm

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

Post by thearst3rd »

I fixed it using the code in this issue! :)

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

Who is online

Users browsing this forum: Google [Bot] and 0 guests