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: 139
Last edited by Mininux,

lorhof1

New Member
Newbie
Joined
May 14, 2024
Messages
2
Trophies
0
Age
17
XP
7
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
7
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
  • Xdqwerty @ Xdqwerty:
    and i cant find that smart camera extension
  • BigOnYa @ BigOnYa:
    Sorry, its called Smooth Camera
    +1
  • S @ salazarcosplay:
    @BigOnYa we should have a meeting with other forum memebers and take shrooms
  • S @ salazarcosplay:
    i think you would be a great trip guider
  • BigOnYa @ BigOnYa:
    Nuh, I'd wonder off somewhere probably
  • BigOnYa @ BigOnYa:
    My wifey made some Sun tea yesterday, and cut up some peaches in let sit in there w the teabags, shit is Da bomb. Bout to try it with some peach vodka..
  • S @ salazarcosplay:
    @BigOnYa sounds wish we could see Randy on south park do that , drinking the peach vodka
  • Xdqwerty @ Xdqwerty:
    @salazarcosplay, im more of a casual south park fan, i dont watch it that often
  • BigOnYa @ BigOnYa:
    Its gluten free
  • K3Nv2 @ K3Nv2:
    lol it's too offensive
    +1
  • BigOnYa @ BigOnYa:
    Nuh not that good, not many alcohols taste good in tea. At least I haven't found any.
  • K3Nv2 @ K3Nv2:
    I tried that peach alcohol in cans tasted like crap
  • F @ foresthag:
    You could fermen(tea). That'd taste excellent. Or make you go blind, who is to say?
    +1
  • K3Nv2 @ K3Nv2:
    Twisted tea iirc
    +1
  • BigOnYa @ BigOnYa:
    Only one I liked was that mikes hard lemonade tea, but i couldn't drink it all day
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, gonna make a jumping sprite
  • BigOnYa @ BigOnYa:
    You can add platform character behavior to any sprite, just disable the default controls for it, and make it jump/move in your code. The rectangle behavior is cool too for enemies.
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, how is it cool?
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, and i meant jumping sprite for the player
  • BigOnYa @ BigOnYa:
    It makes it move around constantly in different directions, like a enemy moving back n forth from one side to other
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, and i dont think the rectangular movement behavior works for platform games
  • BigOnYa @ BigOnYa:
    Yea it does. And you can add platform character behavior to your own charcter, and it will have move and jump already setup for you, space bar is jump, arrows move
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, i already added the platform character behaviour to the player since i started doing this
    +1
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, and already set up animations for when he shoots both standing and walking
    +1
  • S @ salazarcosplay:
    @Xdqwerty you could
    add alcohol to the game too
    S @ salazarcosplay: @Xdqwerty you could add alcohol to the game too