Page 1 of 1

Support for Gamecube controllers (Mayflash Adapter)

Posted: Fri Jan 05, 2018 11:18 pm
by Rubbermaid
I've been trying to see if LÖVE would recognise Gamecube controllers as joysticks when plugged in via a Mayflash adapter. As I had expected it passes undetected in WiiU mode (as WiiU mode is exclusively for use with the WiiU or Dolphin emulator), however when I switch the adapter to PC mode LÖVE crashes and I'm met with a generic Windows error dialog box. This all happens without the code necessarily making reference to joysticks, as I've tested this on multiple .love's which would otherwise run perfectly.

This may well be a lost cause, but I was wondering if anybody has tried working with Gamecube controllers in LÖVE before, and if they had any success at having it, well, not crash? :nyu:

Re: Support for Gamecube controllers (Mayflash Adapter)

Posted: Sat Jan 06, 2018 11:44 am
by erasio
Love uses xinput for controllers.

If you can make it play nice with it, you'll be fine. Otherwise you will need another library to handle the input.

(not sure what the crash is all about though)

Re: Support for Gamecube controllers (Mayflash Adapter)

Posted: Sat Jan 06, 2018 1:34 pm
by Rubbermaid
erasio wrote: Sat Jan 06, 2018 11:44 am Love uses xinput for controllers.

If you can make it play nice with it, you'll be fine. Otherwise you will need another library to handle the input.

(not sure what the crash is all about though)
That's interesting - I know that the Mayflash can work with XInput, but maybe there are few extra hoops to jump through to get it working properly. Rivals of Aether manages to support it through DInput (in GameMaker Studio), so perhaps there might be a LÖVE library which can handle it through that.

Of course this probably won't get the crashes to stop. Thanks for the help anyway. :ultraglee: