Homebrew Official HID to VPAD

  • Thread starter Thread starter Maschell
  • Start date Start date
  • Views Views 829,175
  • Replies Replies 2,363
  • Likes Likes 100
Please Mayflash WiiU Pro Controller Adapter

Code:
[Mayflash WiiU Pro Controller Adapter - W009]
VID=0079
PID=1800
Polltype=1
MultiIn=1
MultiInValue=01
DPAD=1
DigitalLR=1
A=1,04
B=1,01
X=1,08
Y=1,02
Z=1,20
L=1,40
R=1,80
Power=2,04
S=2,08
Left=7,06
Down=7,04
Right=7,02
Up=7,00
RightUp=7,01
DownRight=7,03
DownLeft=7,05
UpLeft=7,07
StickX=3
StickY=4
CStickX=5
CStickY=6
LAnalog=0
RAnalog=0

I'm certain that's a Nintendont-style configuration. HID_to_VPad config files look a lot different.
 
Can you use this to emulate the wiiu pro controller ?

Also , how do i use this with Loadiine ? the moment i launch it , i get kicked back to home menu and from there when i access the Mii maker , it's initializes,
 
Last edited by Ghassen-ga,
Can you use this to emulate the wiiu pro controller ?

Also , how do i use this with Loadiine ? the moment i launch it , i get kicked back to home menu and from there when i access the Mii maker , it's initializes,
  1. Open homebrew launcher.
  2. Open hid to vpad
  3. Open Mii maker
  4. homebrew launcher will start
  5. launch loadiine
  6. go to settings, third screen
  7. click on HID settings and click yes, then ok.
  8. Go back and launch your game.
 
  1. Open homebrew launcher.
  2. Open hid to vpad
  3. Open Mii maker
  4. homebrew launcher will start
  5. launch loadiine
  6. go to settings, third screen
  7. click on HID settings and click yes, then ok.
  8. Go back and launch your game.

You don't need to start hid to vpad, directly booting into loadiine and enable the settings is totally fine.

----

Okay guys, some more news.!
@PeeJay Bonobo already made 2 config files, big shoutouts! You can find them here: https://github.com/Maschell/controller_patcher_configs
The release is getting closer. I just finished the wiki on the github repo : https://github.com/Maschell/controller_patcher/wiki
If you want to prepare you config files before the actual release happens: Now you should have all informations. If you're done, and you want test it, write me a PM, I'll send to a beta build. (When its not released of course)
Now I just need to double check and clean up the code and write the readme for the HID to VPAD repo. And of course updating this Thread.
Thanks for the patients, I try to get everthing done as fast as possible. (and as noob friendly as possible)

btw. I added instructions on how to use the controller_patcher engine in your own homebrew. Would love to see some homebrew games/emulator that support HID devices once the new version is released =) (@brienj @vgmoose ;) ?)
 
Just wanted to say thanks for this amazing little tool. Playing MK8 with a Game Cube Controller instead of that bulky Wii U Gamepad feels much more natural (also, after a while the Wii U Gamepad seems to get really heavy, at least for me). Looking forward to the future release, although I'm completely happy with HID to VPAD as it is right now :)
 
  • Like
Reactions: Maschell
Hey guys!
FINALLY. The release is here! I'm happy that its finally done.
Writing down all the readmes, wiki, thread etc. took longer than I thought, but now everything should be done.

Changelog.
Bugfixes:

  • Fixes the still moving mouse in aim mode, when mouse is actually not moving
  • Fixed a bug at initializing the config_controller_list;
  • Fixed the support for almost all mouses that uses the normal HID mouse standard (boot mode).
  • The emulated sticks are now supported correctly
  • The stick now only produces valid values. Stick absusing not possible anymore
New features:

  • Added support for config files that can be read from an SD Card.
  • Added support for more keyboard buttons
  • Added support for gamepad button remapping
  • Made the double used buttons on the GC Pad configuable
  • The keyboard can now emulate the sticks correctly
  • Keyboard buttons for the sticks can be set
  • The mouse buttons can now be configured
  • The mouse can be configured to emulate the left stick
  • Added support for one more DPAD mode (CONTRPDM_Absolute_2Values)
Other:

  • Removed the support for the PS2 Adapter and Saitek P2600, but they can be added trough a config file.
  • The engine now uses 16 hardcoded slots the devices can use.
  • cleaned up the logging output
  • Logging of the currently pressed buttons possible
The new version is now 0.9. You can download it here https://github.com/Maschell/hid_to_vpad/releases/tag/0.9!
Grab configs from this repo: https://github.com/Maschell/controller_patcher_configs (Feel free to make a pull request when you made a new file)

I also updated loadiine_gx2. It has the same compatibilty.

If you want to have HID support in YOUR homebrew application, take a look at the controller patcher repo: https://github.com/Maschell/controller_patcher

To grab the data you need for creating the config files, I wrote a little tool. Similar to the wii hid_tester: https://github.com/Maschell/hid_test


Please report any issues.
 
Hey guys!
FINALLY. The release is here! I'm happy that its finally done.
Writing down all the readmes, wiki, thread etc. took longer than I thought, but now everything should be done.

Changelog.
Bugfixes:

  • Fixes the still moving mouse in aim mode, when mouse is actually not moving
  • Fixed a bug at initializing the config_controller_list;
  • Fixed the support for almost all mouses that uses the normal HID mouse standard (boot mode).
  • The emulated sticks are now supported correctly
  • The stick now only produces valid values. Stick absusing not possible anymore
New features:

  • Added support for config files that can be read from an SD Card.
  • Added support for more keyboard buttons
  • Added support for gamepad button remapping
  • Made the double used buttons on the GC Pad configuable
  • The keyboard can now emulate the sticks correctly
  • Keyboard buttons for the sticks can be set
  • The mouse buttons can now be configured
  • The mouse can be configured to emulate the left stick
  • Added support for one more DPAD mode (CONTRPDM_Absolute_2Values)
Other:

  • Removed the support for the PS2 Adapter and Saitek P2600, but they can be added trough a config file.
  • The engine now uses 16 hardcoded slots the devices can use.
  • cleaned up the logging output
  • Logging of the currently pressed buttons possible
The new version is now 0.9. You can download it here https://github.com/Maschell/hid_to_vpad/releases/tag/0.9!
Grab configs from this repo: https://github.com/Maschell/controller_patcher_configs (Feel free to make a pull request when you made a new file)

I also updated loadiine_gx2. It has the same compatibilty.

If you want to have HID support in YOUR homebrew application, take a look at the controller patcher repo: https://github.com/Maschell/controller_patcher

To grab the data you need for creating the config files, I wrote a little tool. Similar to the wii hid_tester: https://github.com/Maschell/hid_test


Please report any issues.


Awesome release! Everything is really smooth :)
 
Last edited by povlur.,
Would it be possible to emulate/override other inputs such as two WiiU Pro Controllers to two USB slots? I ask because of multiplayer. Would be great to play some favorite games with Dualshock4's and a friend
 
how to compile hid test?
I copied the files to the loadiine folder , but when you click make the system asks which program you use , need to have a program installed to compile ?
 
how to compile hid test?
I copied the files to the loadiine folder , but when you click make the system asks which program you use , need to have a program installed to compile ?
You can find a precompiled version here: https://github.com/Maschell/hid_test/releases/tag/0.1
If you really want to compile, you'll need devkitpro: https://sourceforge.net/projects/devkitpro/ and the the custom liboGC and portlibs modified/created by dimok. You can find them on the loadiine_gx2 repo. Simply put the files in your devkit folder and run the Makefile of HID-TEST with "make" from the commandline

Would it be possible to emulate/override other inputs such as two WiiU Pro Controllers to two USB slots? I ask because of multiplayer. Would be great to play some favorite games with Dualshock4's and a friend
.This would probably possible, but would require again a lot of work (this took 3 month because I'm lazy and alone working on it). Currently I have no plans to implement it in the near future, but I know some people want this.

I'm trying to get a 3 combo buttons to work (for HOME vpad), is it possible?
Or
A second button activator?
Currently not possible. Only if the buttons are stored on the same byte . Then you can use the OR'd result like @PeeJay Bonobo did with the home button.

BTW. mapping something to the home button does not trigger the home menu (yet). I can be used for homebrew applications though.
 
Currently not possible. Only if the buttons are stored on the same byte . Then you can use the OR'd result like @PeeJay Bonobo did with the home button.

BTW. mapping something to the home button does not trigger the home menu (yet). I can be used for homebrew applications though.
Mmhh, I'm using a gc controller, wavebird.
 
How to set deadzone correctly?

I set up 2 controls, Feir PS2/PS3/PC USB Wireless and Mayflash Wii U Pro Controller Adapter (Stick dead zone 32)
 

Attachments

  • Feir.zip
    Feir.zip
    481 bytes · Views: 126
  • pc-010019-03.jpg
    pc-010019-03.jpg
    87 KB · Views: 239
  • controle-ps2-ps1-ps3-pc-sem-fio-feir-recarregavel-287121-MLB20726276576_052016-F.jpg
    controle-ps2-ps1-ps3-pc-sem-fio-feir-recarregavel-287121-MLB20726276576_052016-F.jpg
    37.3 KB · Views: 274
  • Mayflash WiiU Pro Controller Adapter.zip
    Mayflash WiiU Pro Controller Adapter.zip
    554 bytes · Views: 145
Last edited by AlanLC,
.This would probably possible, but would require again a lot of work (this took 3 month because I'm lazy and alone working on it). Currently I have no plans to implement it in the near future, but I know some people want this.

I already appreciate all your hard work, thank you! Looking forward to updates in the future.
 
How to set deadzone correctly?

I set up 2 controls, Feir PS2/PS3/PC USB Wireless and Mayflash Wii U Pro Controller Adapter (Stick dead zone 32)
You can set the deadzone via the config file (https://github.com/Maschell/control...ing-new-devices#setting-the-deadzone-optional)
For example: (setting the deadzone of the right stick Y axis to 0x0A)

VPad_R_Stick_Y_Deadzone=0x0A

When you need to know what value you should use: Thats depends on your actual gamepad. The deadzone is the value how much the stick can move before its getting recognized as a real movement.
E.G. you have a stick that has this values:
Value in neutral position: 0x80, Min: 0x00, Max 0xFF

By the time the stick gets older and the stick produces other values than 0x80 in neutral position (probably 0x82, 0x89 or 0x74). This leads to "random" movements even when the stick is not touched.
To ignore this, you can set the deadzone. When the deadzone is set to 0x0F and the neutral postion is 0x80, everything between 0x70 and 0x90 will be handled as no movement (ignored)
You can use HID-TEST to see the values of you gamepad. Move the sticks arround and try to get different values for the neutral position in both directions. Then calculate the deadzone.
 
I can't seem to get the controller configs to work. I've downloaded the Dualshock2.ini and put it in SD/wiiu/controller and it doesn't seem to be recognised by the app. Do I need to rename the file?
 

Site & Scene News

Popular threads in this forum