[Feature Request] Native GameCube Controller Input Support #149

Open
opened 2024-11-01 16:53:05 +00:00 by DistractionRectangle · 0 comments
DistractionRectangle commented 2024-11-01 16:53:05 +00:00 (Migrated from github.com)

Overview

Discord user pepperfromlegoisland was kind enough to break this down for me and explain the issue, which I'll quote here:

We have 2 GCC (Gamecube Controller) related issues

  1. You can't even emulate a GCC on Ryujinx, meaning no wrapper or whatever will net a user the unique functionality like on the switch i.e. analong inputs on L/R

  2. Direct connection via adapter (see: Dolphin) for easy setup and accurate inputs

Point one should be relatively straight forward. It's just mocking a new emulated controller type to remap inputs to. Analog triggers present an issue in that not all controllers have them, so we cannot emulate the intermediate states between fully pressed and released.

There was some discussion and work with regard to point two on the old ryujinx project, see old issue 2425, old pr 2770, and we have mayflash support per issue 1978. AFAIK, mayflash is separate from the official switch/wiiu adapters - so support is partial. From what I gather, we have to enable an sdl hint, as well as compile sdl with --enable-hidapi-libusb. This is only for sdl2, as I understand it libusb has been integrated in sdl's build process and enabled by default in sdl3.

tl;dr we're missing a feature the switch natively supports, emulation thereof should be simple enough, supporting the hardware will probably require tweaking the sdl2 build pipeline.

Smaller details

Non exhaustive list of games that support the GameCube Controller, per pepperfromlegoisland:

trials uses L/R analog for gas/brakes
sunshine in 3d all-stars uses it because of fludd
smash has specific glyphs and calibrations and stuff for it too
lots of "unofficial" support, for example mario party superstars plays perfectly with a gcc on switch

Nature of request

Full software and hardware support for GameCube Controllers.

Why would this feature be useful?

Some switch titles make use of analog triggers when using a gamecube controller (i.e. smash).

### Overview Discord user pepperfromlegoisland was kind enough to break this down for me and explain the issue, which I'll quote here: > We have 2 GCC (Gamecube Controller) related issues > > 1. You can't even emulate a GCC on Ryujinx, meaning no wrapper or whatever will net a user the unique functionality like on the switch i.e. analong inputs on L/R > > 2. Direct connection via adapter (see: Dolphin) for easy setup and accurate inputs Point one should be relatively straight forward. It's just mocking a new emulated controller type to remap inputs to. Analog triggers present an issue in that not all controllers have them, so we cannot emulate the intermediate states between fully pressed and released. There was some discussion and work with regard to point two on the old ryujinx project, see [old issue 2425](https://web.archive.org/web/20231007021927/https://github.com/Ryujinx/Ryujinx/issues/2425), [old pr 2770](https://web.archive.org/web/20231007021854/https://github.com/Ryujinx/Ryujinx/pull/2770), and we have mayflash support per [issue 1978](https://web.archive.org/web/20231106054726/https://github.com/Ryujinx/Ryujinx/issues/1978). AFAIK, mayflash is separate from the official switch/wiiu adapters - so support is partial. From what I gather, we have to enable an sdl hint, as well as compile sdl with `--enable-hidapi-libusb`. This is only for sdl2, as I understand it libusb has been integrated in sdl's build process and enabled by default in sdl3. tl;dr we're missing a feature the switch natively supports, emulation thereof should be simple enough, supporting the hardware will probably require tweaking the sdl2 build pipeline. ### Smaller details Non exhaustive list of games that support the GameCube Controller, per pepperfromlegoisland: > trials uses L/R analog for gas/brakes > sunshine in 3d all-stars uses it because of fludd > smash has specific glyphs and calibrations and stuff for it too > lots of "unofficial" support, for example mario party superstars plays perfectly with a gcc on switch ### Nature of request Full software and hardware support for GameCube Controllers. ### Why would this feature be useful? Some switch titles make use of analog triggers when using a gamecube controller (i.e. smash).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MeloNX/Ryujinx-ryubing#149
No description provided.