Page 1 of 1

[SOLVED] Controller Inputs While Window Is Unfocused?

Posted: Sat May 14, 2016 2:50 pm
by immakinggames
So I want to be able to detect controller buttons and hats while the window is unfocused. My game requires you to be out of focus a lot of the time consulting a separate .pdf as you play, and it looks like currently the engine cannot support this at all?

I do NOT need this for keyboard, only for controllers.

Re: Controller Inputs While Window Is Unfocused?

Posted: Sat May 14, 2016 3:15 pm
by slime
LÖVE's APIs don't have a way to natively do this, but you can use the FFI to enable it: https://bitbucket.org/rude/love/issues/ ... t-14550714

Re: Controller Inputs While Window Is Unfocused?

Posted: Sun May 15, 2016 12:52 am
by immakinggames
slime wrote:LÖVE's APIs don't have a way to natively do this, but you can use the FFI to enable it: https://bitbucket.org/rude/love/issues/ ... t-14550714
This worked perfectly, thank you!