[SOLVED] Controller Inputs While Window Is Unfocused?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
immakinggames
Prole
Posts: 22
Joined: Sat Jun 01, 2013 4:40 am

[SOLVED] Controller Inputs While Window Is Unfocused?

Post 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.
Last edited by immakinggames on Tue May 17, 2016 2:13 pm, edited 1 time in total.
User avatar
slime
Solid Snayke
Posts: 3166
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Controller Inputs While Window Is Unfocused?

Post 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
immakinggames
Prole
Posts: 22
Joined: Sat Jun 01, 2013 4:40 am

Re: Controller Inputs While Window Is Unfocused?

Post 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!
Post Reply

Who is online

Users browsing this forum: Amazon [Bot], Google [Bot] and 10 guests