Homebrew Homebrew app [WIP] DRController : use UsendMii Client with Linux

Mininux

Member
OP
Newcomer
Joined
Aug 13, 2021
Messages
9
Trophies
0
XP
94
Country
France
UsendMii by Crayon2000 is an app that allows to use the WiiU Gamepad on a computer, but it only works with Windows and macOS (and the server part is not open source). So I created a simple server in python to achieve this on Linux, using the python-libevdev library to emulate a controller. For the moment, it works only with the Homebrew client (not with the web browser), it can only emulate a controller (no keyboard or mouse inputs) and to change the button mappings you have to edit the code. I'm working on a more complete and clean solution using C++ and Qt but it'll take some time. edit : i'm having too much issues with it and with school coming i won't have the time, i may try again later

To use it, first install python-libevdev :
Code:
$ sudo apt install python3-libevdev   # on Debian
$ sudo pacman -S python-libevdev  # on Arch Linux
Or you can use pip :
Code:
pip install -U libevdev  # other distros

Then you have to get the permissions to create a virtual controller, on my system i just had to add my user to the uinput group (it may depend your distro). Or, you could run the script as root (i.e. with sudo)

Also you have to load the uinput module each time before starting the server (or add it to the auto loaded modules) :
Code:
$ sudo modprobe uinput

Now on the wiiu open UsendMii Client, put in the ip adress of your computer, start the script and it should work !

Warning
For the moment, this tool accepts any connection on its port, so only run this on your private network since anyone on the same network will be able to control the virtual controller.

PS : the name of this project was inspired by ctroller (by phijor), a tool that does a similar thing but with the 3ds
 

Attachments

  • drcontroller.py.zip
    1.6 KB · Views: 138
Last edited by Mininux,

lorhof1

New Member
Newbie
Joined
May 14, 2024
Messages
2
Trophies
0
Age
17
XP
5
Country
Switzerland
hey, i'd like to ask if you'd be willing to license dtrcontroller under an open source license as I'm currently looking into writing a decky plugin acting as a wrapper for dtrcontroller and an open source licensing would allow me to ship your work with the plugin. Thank you for reading this and for dtrcontroller
 
  • Like
Reactions: Mininux

Mininux

Member
OP
Newcomer
Joined
Aug 13, 2021
Messages
9
Trophies
0
XP
94
Country
France
hey, i'd like to ask if you'd be willing to license dtrcontroller under an open source license as I'm currently looking into writing a decky plugin acting as a wrapper for dtrcontroller and an open source licensing would allow me to ship your work with the plugin. Thank you for reading this and for dtrcontroller
Wow i had completely forgotten about this project lol

It seems I forgot to specify a license, do whatever you want with it tbh, so it's gonna be MIT-0 I guess:

"Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE."

Also i never heard about decky, i'm noting it somewhere for the day i get a steam deck. And happy to hear this script I made when i had no idea what i was doing may be useful : )
Post automatically merged:

Not working for me
Sorry for not answering earlier, i was completely out of gbatemp for a while. Seeing how long it's been since i touched this i don't know if i'll be able to help. Nevertheless it would help if you could provide the logs/what happened, maybe i'll look into it
 
Last edited by Mininux,
  • Like
Reactions: lorhof1

lorhof1

New Member
Newbie
Joined
May 14, 2024
Messages
2
Trophies
0
Age
17
XP
5
Country
Switzerland
Thanks Mininux, I don't know yet if I'll actually be able to complete the plugin, but I hope so!
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • K3Nv2 @ K3Nv2:
    You're as loved as much as Juan now enjoy it
    +1
  • K3Nv2 @ K3Nv2:
    I'm sorry for the insult
  • BakerMan @ BakerMan:
    the difference is i like wario and samus and he likes muscle mommies and feet
    +1
  • BakerMan @ BakerMan:
    wait, i forgot wizards too
  • BigOnYa @ BigOnYa:
    I have a buddy that has a moonshine still and he makes his own shine. He brought me a jar of some peach shine/brandy, shit is damn good. Gonna have to see if can get more.
    +1
  • BakerMan @ BakerMan:
    careful that shit don't make you go blind
  • BigOnYa @ BigOnYa:
    Nuh that's only if you drink what first comes out when distilling, you must throw out the first part of it when it starts running. (Its called the "head(s)" of the run) Or use it for fuel or a general purpose cleaner
    +1
  • K3Nv2 @ K3Nv2:
    If alcohol would've made @BigOnYa blind by now it would have
    +2
  • BigOnYa @ BigOnYa:
    So True.
    +1
  • K3Nv2 @ K3Nv2:
    I should make a poll for bigonya to change his username to DrunkOnYa
    +1
  • BigOnYa @ BigOnYa:
    That's my alt
    +1
  • K3Nv2 @ K3Nv2:
    I don't wanna go to the store someone go for me
  • BigOnYa @ BigOnYa:
    Call my wifey, tell her pick up stuff on her way over.
  • K3Nv2 @ K3Nv2:
    Pick up my door dash meat me in the allyway
    +1
  • BigOnYa @ BigOnYa:
    Wifey is busy, so ill send my buddy @AncientBoi , in his gimp outfit. "who ordered the 6" sausage?""
  • K3Nv2 @ K3Nv2:
    Like subway it's false advertising
    +1
  • BigOnYa @ BigOnYa:
    Ok "who ordered the Vienna sausage?"
  • K3Nv2 @ K3Nv2:
    Uremum
    +1
  • BigOnYa @ BigOnYa:
    My buddy convince me to download and play poker game with him yesterday, called Four Kings Casino, its pretty fun actually, you create a avatar and walk around in a virtual casino, and play any table, or slots with others online.There's even a dance club and bowling alley.
  • SylverReZ @ SylverReZ:
    They should bring advertisements like this back LOL.
  • BakerMan @ BakerMan:
    or that german ninja turtle commercial
    +1
  • K3Nv2 @ K3Nv2:
    Forgot to buy BBQ sauce at the store so made my own ffs
  • RedColoredStars @ RedColoredStars:
    Blues Hog BBQ sauces are pretty good.
  • K3Nv2 @ K3Nv2:
    My insurance has a thing where if I do a virtual visit they'll just send me a $100 gift card to Walmart I'm about to sell a company my medical history for $100 lol
    K3Nv2 @ K3Nv2: My insurance has a thing where if I do a virtual visit they'll just send me a $100 gift card to...