Official HID to VPAD

Discussion in 'Wii U - Homebrew' started by Maschell, Apr 25, 2016.

Apr 25, 2016

Official HID to VPAD by Maschell at 10:06 PM (130,579 Views / 60 Likes) 1,069 replies

  1. Maschell
    OP

    Member Maschell GBAtemp Advanced Fan

    Joined:
    Jun 14, 2008
    Messages:
    716
    Country:
    Germany

    HID to VPAD v0.9b (experimental)
    Use HID-devices as WiiU Gamepad​

    What is HID to VPAD?

    HID to VPAD is a WiiU homebrew. It allows you to use USB HID controllers in WiiU Games.
    It only overwrite the input from the Gamepad, so there is currently no support to use it as a second controller.
    Currently its very experimental may result in random crashes at exiting an application or attach/detach a device.

    Usage

    "HID to VPAD" is loaded through the homebrew launcher (http://gbatemp.net/threads/homebrew-launcher-for-wiiu.416905/)
    Download the latest .elf from github (https://github.com/Maschell/hid_to_vpad/releases) and place it on the sd card
    The .elf file has to be in folder in wiiu/apps/ (e.g. wiiu/apps/hidtovpad/hidtovpad.elf) to be found by the homebrew launcher.
    Start the application and the system menu will be loaded. You can now use your device.
    When you enter the MiiMaker the application will be disabled and HBL will load.

    Press A to skip the splashscreen.

    You can attach and detach devices at any time, but maybe it will result in a random crash.

    Place the config files into the following folder:

    sd:/wiiu/controller

    Button remapping

    With hid to vpad its possible to remap your gamepad controls. You can information for creating the config file here: https://github.com/Maschell/controller_patcher/wiki/2.-Gamepad-button-remapping

    Supported devices

    The official GC Adapter, PS3/PS4 Pad, Mouse, Keyboard have built in support. Other devices can be added when a valid config file in provided.
    Check out the [controller_patcher](https://github.com/Maschell/controller_patcher) repository for more details.
    You can find deep information for creating own config files, the default mapping, in the controller patcher wiki

    Default button mapping:
    - Mouse
    - Keyboard
    - GameCube
    - Dualshock 3
    - Dualshock 4

    Other devices
    Support for other devices can be added with a new config files. Check out the controller patcher configs repo.
    Read the controller patcher wiki to get detailed information about creating own files.

    Download

    Download: https://github.com/Maschell/hid_to_vpad/releases
    Load the file with the homebrew launcher.

    Credits

    A big thanks goes out to @dimok for creating the HBL, the dynamic libs and every stuff he made. The "environment" of this app is copied from ddd, turned out to be a "hello world" with useful extra stuff.
    Also huge thanks to @FIX94 who initally created his gc-to-vpad. Helped me a lot! Thanks!
    And of course big thanks to everyone who has helped me testing! (dimok, dibas, EclipseSin,FunThomas,n1ghty etc.)
    Support
    If you want to thank me for my creating this tool, feel free to make a small donation.

    [​IMG]


    [​IMG]
     
    Last edited by Maschell, Dec 26, 2016


  2. TheKitof

    Newcomer TheKitof Member

    Joined:
    Feb 15, 2016
    Messages:
    27
    Country:
    France
    TotalInsanity4 and Maschell like this.
  3. reprep

    Member reprep GBAtemp Advanced Fan

    Joined:
    Jul 5, 2012
    Messages:
    840
    Country:
    Turkey
    Great, thanks a lot.

    This still conflicts with Loadiine right?
     
  4. TheKitof

    Newcomer TheKitof Member

    Joined:
    Feb 15, 2016
    Messages:
    27
    Country:
    France
  5. worm28

    Member worm28 GBAtemp Advanced Fan

    Joined:
    Jun 2, 2013
    Messages:
    629
    Location:
    Portland, Oregon
    Country:
    United States
    Wow just tried this with my PS3 controller and i have to say this is bad ass works perfectly. the home button does not work but everything else does is there any chance this will get integrated into loadiine in the future?
     
  6. Maschell
    OP

    Member Maschell GBAtemp Advanced Fan

    Joined:
    Jun 14, 2008
    Messages:
    716
    Country:
    Germany
    I have something similar in my sources, I just need to need something that will read the config files and create the data for me (https://github.com/Maschell/controller_patcher/blob/master/controller_patcher.c#L52). I also have plans for button remapping etc. but this is acutally a lot of work and testing. In the last couple of days I've rewritten this whole stuff like 3 times :D. Actually adding a new controller is quite fast now.

    This version is not working with loadiine, but I just have to include the controller_patcher into loadiine. I released this version ealier because it reaches more people. After some more cleanup/testing I will commit it to my experimental branch and hopefully (and finally) to the main branch.

    @worm28 Thanks! The home buttons requires some more work, I need to check it. Also the sticks are broken in New Super Mario Bros. U and I don't know why :D
     
  7. andriy921

    Member andriy921 GBAtemp Regular

    Joined:
    Dec 1, 2015
    Messages:
    267
    Country:
    Ukraine
    Which firmwares are supported?
     
  8. KiiWii

    Member KiiWii GBAtemp Psycho!

    Joined:
    Nov 17, 2008
    Messages:
    3,351
    Country:
    United Kingdom
    Great now I can use my SFV fight stick alpha on Wii U!
     
    lordelan likes this.
  9. lembi2001

    Member lembi2001 GBAtemp Regular

    Joined:
    Dec 29, 2015
    Messages:
    168
    Country:
    United Kingdom
    don't quote me on this but I'm guessing that due to the fact it uses memory mapping you are going to need a firmware with a Kernel Exploit., which rules out 5.5.0 and above....
     
  10. andriy921

    Member andriy921 GBAtemp Regular

    Joined:
    Dec 1, 2015
    Messages:
    267
    Country:
    Ukraine
    That's understandable. But HBL works on 4.0.0 -5.4.0 (with 3.x.x possibly coming out soon), but this project uses 4.1+ mapping, so < 4.1 would probably be broken.
     
  11. Denni93

    Newcomer Denni93 Advanced Member

    Joined:
    Apr 3, 2016
    Messages:
    64
    Country:
    Germany
    Just played MK8 with my gamecube controller, and its working great!

    Thanks alot for making this!

    Is there a chance that multiple gamecube controllers will be supported sometime?
     
    oscat and KiiWii like this.
  12. pwsincd

    Member pwsincd Garage Flower

    Joined:
    Dec 4, 2011
    Messages:
    3,145
    Location:
    Manchester UK
    Country:
    United Kingdom
    now this is homebrew , giving the end user benefits over the original design...
     
  13. Antonio Ricardo

    Member Antonio Ricardo GBAtemp Fan

    Joined:
    Apr 29, 2013
    Messages:
    351
    Location:
    Rio de Janeiro
    Country:
    Brazil
    Mouse will work like a touchscreen with AIM?
    Man, if somebody test on Splatoon. Star Fox Guard still need Gamepad, reflecting a second screen will be a very difficult job.
    Im afraid one day my gamepad stopped working, maybe in the future we can use Settings without need Gamepad.
     
    Last edited by Antonio Ricardo, Apr 26, 2016
  14. Kekskrümel

    Newcomer Kekskrümel Member

    Joined:
    Mar 3, 2014
    Messages:
    36
    Country:
    Germany
  15. BossRoss93

    Member BossRoss93 GBAtemp Regular

    Joined:
    Jan 26, 2012
    Messages:
    112
    Country:
    United States
    Nice! I may get in contact with you sometime soon, I want to do a similar thing, but with Classic controllers instead.

    I am assuming this is not usable with Loadiine, right?
     
  16. Maschell
    OP

    Member Maschell GBAtemp Advanced Fan

    Joined:
    Jun 14, 2008
    Messages:
    716
    Country:
    Germany
    Loadiine support is coming soon!

    I upated the controller_patcher and this tool.
    https://github.com/Maschell/hid_to_vpad/releases

    Code:
    Fixed the dpad on some controllers.
    Added a deadzone to GC and PS4 pad
    btw: Anyone here who wants to make an icon :>?
     
  17. oumoumad

    Member oumoumad GBAtemp Advanced Fan

    Joined:
    Apr 20, 2015
    Messages:
    798
    Country:
    France
    Pretty impressive work like always Maschell ! Keep it up man :D
     
  18. Masterwin

    Member Masterwin GBAtemp Regular

    Joined:
    Jan 7, 2016
    Messages:
    251
    Country:
    Spain
  19. Maschell
    OP

    Member Maschell GBAtemp Advanced Fan

    Joined:
    Jun 14, 2008
    Messages:
    716
    Country:
    Germany
    I added support for the emulated stick and tweaked the deadzones for DS4.
    Now the stick should work in NSMBU (And probably some other games) =)
     
    Antonio Ricardo and Masterwin like this.
  20. MasterF0x

    Newcomer MasterF0x Advanced Member

    Joined:
    Jun 18, 2014
    Messages:
    92
    Country:
    United States
    [​IMG]

    Made an icon, if you haven't found one already.
     
    DarkJediRey, memomo, Denni93 and 2 others like this.

Share This Page