• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 7 8 9 10 11 ... 115 Next »

Feature request: Native Switch Pro controller support?
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Feature request: Native Switch Pro controller support?
05-29-2018, 04:32 AM (This post was last modified: 05-29-2018, 04:32 AM by Reonu.)
#1
Reonu Offline
Member
***
Posts: 61
Threads: 10
Joined: Jan 2018
Lightbulb 
Hey!

So, using the Switch Pro controller is easier than ever by adding Dolphin as a non-steam game on Steam and all that. But I was wondering, what are the chances of adding native support to Dolphin so that we don't depend on Steam? Just like native support for wiimotes etc. It's a great replacement for the old Wii classic controller, and it's super easy to pair to Windows. It even works wired via USB without bluetooth.

Thanks for reading Smile
Find
Reply
05-29-2018, 04:45 AM
#2
KHg8m3r Online
Doesn't sleep, just Dolphin and Robots
*******
Posts: 5,842
Threads: 4
Joined: Sep 2013
Wiimotes are just passing the data directly to the game, which isn't the same as writing a driver interfacing controller for a non-Wii/GC based controller
Find
Reply
05-29-2018, 06:47 AM
#3
Helios Offline
Stellaaaaaaa
**********
Developers (Some Administrators and Super Moderators)
Posts: 4,395
Threads: 15
Joined: May 2012
This gets brought up every now and then for various controllers, so I'll just summarize what the general problems are.

1. Dolphin really isn't in the business of writing drivers or SDL wrappers (Or whatever Steam does) for controllers to work with Dolphin. That's pretty out of scope and just more to maintain

2. Maintaining drivers/wrappers/whatever for various controllers sucks, and opens up the flood gates of "hey, you merged in support for the Switch Pro Controller, why won't you support my MemeBox Controller 4200?? It has gyros!"

3. Writing this to support all the OSes we support is pretty difficult, and we already have bits of Dolphin that don't work well in one OS but works flawlessly (usually Linux lol) in another.

4 (and most importantly). Nobody has expressed interest in coming up with the code and a plan to maintain all this.
Find
Reply
05-29-2018, 07:32 AM
#4
Reonu Offline
Member
***
Posts: 61
Threads: 10
Joined: Jan 2018
(05-29-2018, 04:45 AM)KHg8m3r Wrote: Wiimotes are just passing the data directly to the game, which isn't the same as writing a driver interfacing controller for a non-Wii/GC based controller

(05-29-2018, 06:47 AM)Helios Wrote: This gets brought up every now and then for various controllers, so I'll just summarize what the general problems are.

1. Dolphin really isn't in the business of writing drivers or SDL wrappers (Or whatever Steam does) for controllers to work with Dolphin. That's pretty out of scope and just more to maintain

2. Maintaining drivers/wrappers/whatever for various controllers sucks, and opens up the flood gates of "hey, you merged in support for the Switch Pro Controller, why won't you support my MemeBox Controller 4200?? It has gyros!"

3. Writing this to support all the OSes we support is pretty difficult, and we already have bits of Dolphin that don't work well in one OS but works flawlessly (usually Linux lol) in another.

4 (and most importantly). Nobody has expressed interest in coming up with the code and a plan to maintain all this.
Understood! I didn't realise that the support would be more complicated than with real Wiimotes, I thought the process would be similar. If it can't be, it can't be. Thanks!
Find
Reply
05-29-2018, 08:40 AM (This post was last modified: 05-29-2018, 08:40 AM by Helios.)
#5
Helios Offline
Stellaaaaaaa
**********
Developers (Some Administrators and Super Moderators)
Posts: 4,395
Threads: 15
Joined: May 2012
What you can do though, is find a way to wrap the Switch Pro Controller into an xinput device, and then Dolphin can use it natively without Steam's SDL wrapper. I think x360ce can do that? No idea if it works with Dolphin though.
Find
Reply
05-29-2018, 07:59 PM
#6
Rare White Ape Offline
Junior Member
**
Posts: 13
Threads: 3
Joined: Mar 2016
I use a PS4 controller pretty seamlessly with Dolphin, but that is thanks to a spearate program that does the whole Xinput wrapper thing (Input Mapper).

If you want Switch ProCon support it’s probably just easier to add Dolphin in Steam *shrug*
Find
Reply
02-20-2020, 06:34 AM (This post was last modified: 01-05-2021, 08:41 AM by skid.)
#7
Grimish Offline
Junior Member
**
Posts: 5
Threads: 1
Joined: Feb 2020
XharosHey!

So, using the Switch Pro controller is easier than ever by adding Dolphin as a non-steam game on Steam and all that. But I was wondering, what are the chances of adding native support to Dolphin so that we don't depend on Steam? Just like native support for wiimotes etc. It's a great replacement for the old Wii classic controller, and it's super easy to pair to Windows. It even works wired via USB without bluetooth.

Thanks for reading Smile

Greetings. Just incase this still gets read. There is a "Nintendo Switch Pro Controller" driver that is available in linux kernel patches and will be mainlined soon it appears. Its available as a HID Nintendo Kernel Patch if you can't wait for a merge. I'll also add that the Joycon controllers are included but I have not tested those.

I compiled the hid kernel patch into arch linux as of 5.5.4. I don't have good bluetooth (which is why I haven't tried the joycons) but tested with USB. It appears to work perfectly in terms of inputs. gyro/accel are functional as well within dolphin. Tested motion input with "Zelda Skyward Sword" and as for experience with that game in Dolphin its beat all the previous attempts. Hope this helps because i've been waiting forever for a good solution - and this definitely is it!

Here is the modinfo if you are curious about the internal pudding:
$ modinfo hid_nintendo

filename:       /lib/modules/5.5.4-arch1-3-custom/kernel/drivers/hid/hid-nintendo.ko.xz

description:    Driver for Nintendo Switch Controllers

author:         Daniel J. Ogorchock <djogorchock@gmail.com>

license:        GPL

srcversion:     053B2F951FC297C89D32683

alias:          hid:b0005g*v0000057Ep00002007

alias:          hid:b0005g*v0000057Ep00002006

alias:          hid:b0003g*v0000057Ep0000200E

alias:          hid:b0005g*v0000057Ep00002009

alias:          hid:b0003g*v0000057Ep00002009

depends:        hid,ff-memless

retpoline:      Y

intree:         Y

name:           hid_nintendo

vermagic:       5.5.4-arch1-3-custom SMP preempt mod_unload

sig_id:         PKCS#7

signer:         Build time autogenerated kernel key

sig_key:        02:87:60:FF:B5:17:AE:19:BA:90:3E:6F:86:82:F8:B4Big Grin7:82:6D:0E

sig_hashalgo:   sha512

signature:     

[Image: WLfG5s6.png]
Find
Reply
03-28-2020, 02:29 AM
#8
RagingFire Offline
Member
***
Posts: 94
Threads: 20
Joined: Oct 2014
Is the last post just a huge block of text for anyone else?
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode