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


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Support v
« Previous 1 … 391 392 393 394 395 … 1206 Next »

evdev: making Dolphin recognise unplugged then replugged controllers
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
evdev: making Dolphin recognise unplugged then replugged controllers
06-05-2016, 10:15 PM (This post was last modified: 06-12-2016, 01:15 AM by leolam.)
#1
leolam Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,478
Threads: 5
Joined: Sep 2015
Is there a way to force Dolphin to recognise controllers that were unplugged then reconnected? I'm using Dolphin with xwiimote to play GC games, and currently, every time the Wiimote disconnects, I have to exit full screen mode, go to the Controller configuration and then click on "Refresh" for input to work again. This is of course not very practical.
Website Find
Reply
06-09-2016, 04:25 AM
#2
KHg8m3r Offline
Doesn't sleep, just Dolphin and Robots
*******
Posts: 6,043
Threads: 4
Joined: Sep 2013
Pressing the F5 button should reconnect them.
Find
Reply
06-09-2016, 07:05 AM (This post was last modified: 06-09-2016, 07:07 AM by leolam.)
#3
leolam Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,478
Threads: 5
Joined: Sep 2015
Thanks for your reply, but I believe that's actually used to reconnect an actual Wiimote, and it doesn't refresh controllers or work at all for GC games.

To clarify, I'm using a Wiimote + Classic Controller to emulate a GC controller and play GC games with it:
Spoiler:

[Profile]
Device = evdev/0/Nintendo Wii Remote Classic Controller
Buttons/Threshold = 25.000000000000000
Buttons/A = `Button 4`
Buttons/B = `Button 5`
Buttons/X = `Button 6`
Buttons/Y = `Button 7`
Buttons/Z = `Button 11` | `Button 10`
Buttons/Start = `Button 13`
Main Stick/Radius = 60.000000000000000
Main Stick/Up = `Axis 1+`
Main Stick/Down = `Axis 1-`
Main Stick/Left = `Axis 0-`
Main Stick/Right = `Axis 0+`
Main Stick/Modifier/Range = 50.000000000000000
C-Stick/Radius = 60.000000000000000
C-Stick/Up = `Axis 3+`
C-Stick/Down = `Axis 3-`
C-Stick/Left = `Axis 2-`
C-Stick/Right = `Axis 2+`
C-Stick/Modifier/Range = 50.000000000000000
Triggers/L = `Button 8`
Triggers/R = `Button 9`
Rumble/Motor = `evdev/0/Nintendo Wii Remote:Sine`
Rumble/Motor/Range = 16.000000000000000
D-Pad/Up = `KEY_UP`
D-Pad/Down = `KEY_DOWN`
D-Pad/Left = `KEY_LEFT`
D-Pad/Right = `KEY_RIGHT`

This works quite well, but the problem is that when the Wii remote is disconnected, I can easily reconnect it to my PC, but Dolphin will not recognise its input and will still think it's disconnected, unless I exit fullscreen mode, go to the Controller settings and click on "Devices > Refresh".

Also, this happens in fact for any controller that you can disconnect, not just Wiimotes.
Website Find
Reply
06-09-2016, 08:25 AM
#4
Sonicadvance1 Offline
Professional Hand Holder
**********
Developers (Some Administrators and Super Moderators)
Posts: 716
Threads: 15
Joined: Jan 2013
Dolphin doesn't support hotplugging of controllers through the ControllerInterface except under Android. Someone needs to improve that. So the only way is to go through the whole Devices->Refresh dance.
Find
Reply
06-12-2016, 01:00 AM (This post was last modified: 06-12-2016, 01:01 AM by leolam.)
#5
leolam Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,478
Threads: 5
Joined: Sep 2015
I see -- in the end, that ended up being so annoying that I ended up adding hotplug support for evdev (PR #3890). If someone on Linux could try it and let me know if it works, that'd be great.

Thanks for pointing me to ControllerInterface -- I'm not familiar at all with Dolphin's codebase (nor with C++, for that matter).
Website Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma