Official HID to VPAD

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

  1. nastys

    nastys ナースティス

    Member
    1,286
    808
    Aug 5, 2014
    Italy
    Earth
    Hi, is there a way to set the intensity of an emulated stick when using a keyboard?
    I'm trying to play Bayonetta 2 using my mouse and keyboard but she's always walking instead of running.
    The wiki doesn't say anything about this.

    BTW, I can translate it too.
     


  2. gjimenezf

    gjimenezf Newbie

    Newcomer
    3
    0
    Jun 30, 2016
    Ecuador
    Hi, latest version of loadiine doesnt have hid setting, how can i use it?
    And previous loadiine versions only let you use the usb controller as the 1 player replacing the gamepad but I want to know if there is a way to support multiple usb controllers as 2 player, 3 and 4 players.
     
  3. incyk

    incyk Member

    Newcomer
    10
    0
    Nov 16, 2016
    United States
    I get a black screen when loading HID to VPAD (latest build) from homebrew, using loadiine. Tried different versions, still not working, any idea what I did wrong?

    Edit: Was trying with Switch Pro controller through USB, which I'm guessing isn't supported yet.
     
    Last edited by incyk, Apr 17, 2017
  4. mackem

    mackem GBAtemp Regular

    Member
    111
    3
    Mar 19, 2006
    Yeah, that worked. I had to replace the gamepad with the 360 controller instead of using it as an extra controller or else only gamepad worked.
     
    Gamer4647 likes this.
  5. cucholix

    cucholix GBAtemp Regular

    Member
    297
    101
    Jan 17, 2017
    Chile
    If there is a working *.ini file in your controller folder you should look for max/min x/y stick values

    Like this:
    Code:
    
    VPad_L_Stick_X_MinMax   =   0x1A,0xE4 //left stick X Axis
    VPad_L_Stick_Y_MinMax   =   0x11,0xE1 //left stick Y Axis
     
    Last edited by cucholix, Apr 17, 2017
    lordelan likes this.
  6. incyk

    incyk Member

    Newcomer
    10
    0
    Nov 16, 2016
    United States
    Now when I launch HID to VPAD, I immediately just get brought to Mii Maker :/
     
  7. Maschell
    OP

    Maschell GBAtemp Advanced Fan

    Member
    859
    1,224
    Jun 14, 2008
    Gambia, The
    I just spent some more time on trying to fix Runbow and Starwhal, but I had no success. I'm sorry =( . I already spent too much time into it, and have literally no idea why it's not working. I tried everything that came to my mind, but it's still missing something. The behaviour of the pro controller emulation in these games makes no sense at all :D

    - The Sticks are working all the time
    - The checking if a buttons is pressed (holded) is also working all the time
    - Normal checking of a button doesn't work.
    - Now the REALLY strange part: When I log the KPADReadEx function (or simply add a sleep for >3ms), pressing the button "works"..BUT...only every 3rd or 4th try you press the button...
    - They all share the same struct, and the struct I'm creating has the extact same data as the real pro controller.

    I'm may missing patching one more function, but it then it still doesn't make any sense, why it's working partially when I log/sleep in the function. Maybe a timing/sync problem?
    Does anyone has a clue what might be wrong?

    btw: For those who are not following me on twitter: Due the research of @shinyquagsire23 I'm now able connect and the use the pro controller via USB on the console. Currently there are still some problems (aka random crashing) while disconnecting the controller (I probably need to add some kind of synchronisation), but once I resolved it, I'll push the update! The update will also include native support for the Switch Controller so you don't need to worry about the config files because you don't need one ;)
     
    Last edited by Maschell, Apr 18, 2017
    lordelan likes this.
  8. nastys

    nastys ナースティス

    Member
    1,286
    808
    Aug 5, 2014
    Italy
    Earth
    Nope, she's still walking all the time :mellow:
    Here's my file:
    Code:
    [Keyboard]
    VPAD_L_STICK_UP=KEYBOARD_W
    VPAD_L_STICK_DOWN=KEYBOARD_S
    VPAD_L_STICK_RIGHT=KEYBOARD_D
    VPAD_L_STICK_LEFT=KEYBOARD_A
    VPAD_BUTTON_A=KEYBOARD_RIGHT_SHIFT
    VPAD_BUTTON_B=KEYBOARD_SPACEBAR
    VPAD_BUTTON_X=KEYBOARD_RETURN
    VPAD_BUTTON_Y=KEYBOARD_E
    VPAD_BUTTON_UP=KEYBOARD_UP
    VPAD_BUTTON_DOWN=KEYBOARD_DOWN
    VPAD_BUTTON_LEFT=KEYBOARD_LEFT
    VPAD_BUTTON_RIGHT=KEYBOARD_RIGHT
    VPAD_BUTTON_PLUS=KEYBOARD_ESCAPE
    VPAD_BUTTON_MINUS=KEYBOARD_TAB
    VPAD_BUTTON_HOME=KEYBOARD_HOME
    VPAD_BUTTON_L=KEYBOARD_R
    VPAD_BUTTON_R=KEYBOARD_T
    VPAD_BUTTON_ZL=KEYBOARD_ALT
    VPAD_BUTTON_ZR=KEYBOARD_SHIFT
    VPAD_BUTTON_STICK_L=KEYBOARD_Q
    VPAD_BUTTON_STICK_R=KEYBOARD_X
    VPad_L_Stick_X_MinMax=0xFF,0xFF
    VPad_L_Stick_Y_MinMax=0xFF,0xFF
    I also tried:
    Code:
    VPad_L_Stick_X_MinMax=0x00,0x00
    VPad_L_Stick_Y_MinMax=00x,0x00
    By the way, I'm emulating a Pro Controller.
     
  9. cots

    cots GBAtemp Fan

    Member
    471
    300
    Dec 29, 2014
    United States
    Try this;

    Code:
    VPad_L_Stick_X_MinMax=0x00,0xFF
    VPad_L_Stick_Y_MinMax=0x00,0xFF
     
  10. mackem

    mackem GBAtemp Regular

    Member
    111
    3
    Mar 19, 2006
    I forgot to mention when I swapped the buttons on my 360 controller, there's a slight error in the last example on this page:

    https://github.com/Maschell/controller_patcher/wiki/2.-Gamepad-button-remapping

    The Y and R are the wrong way round, it should be VPAD_BUTTON_R=VPAD_BUTTON_Y

    I mapped look behind on MK8 to left stick press as well as leaving it on X too and it worked.
     
  11. xeyatan

    xeyatan Newbie

    Newcomer
    8
    2
    Aug 7, 2007
    @Maschell

    I really hope the problem in Runbow and Starwhal isn't the same one as in SSMB :) Also, that's awesome news man. By the way I've been testing ur app and while it still only supports the gamepad, it's been working perfectly since you've released all those crash-stabilizing patches.
     
  12. Maschell
    OP

    Maschell GBAtemp Advanced Fan

    Member
    859
    1,224
    Jun 14, 2008
    Gambia, The
    What game do you mean by SSMB? Super Smash Bros?
     
  13. xeyatan

    xeyatan Newbie

    Newcomer
    8
    2
    Aug 7, 2007
    Yeah. Sorry, used to it from the good ole days.
     
  14. nastys

    nastys ナースティス

    Member
    1,286
    808
    Aug 5, 2014
    Italy
    Earth
    No effect, she's still walking instead of running.

    EDIT: I fixed my issue by reassigning ZL to C instead of ALT. It seems ALT is being detected as pressed all the time.
     
    Last edited by nastys, Apr 18, 2017
    lordelan and Maschell like this.
  15. pazzoeo

    pazzoeo Member

    Newcomer
    22
    5
    Dec 6, 2016
    Italy
    I made an Italian translation, tested by renaming it to spanish.lang and using the elf you posted here. Hope this helps!
     

    Attached Files:

    lordelan likes this.
  16. incyk

    incyk Member

    Newcomer
    10
    0
    Nov 16, 2016
    United States
    If I just want to remap the buttons on the gamepad, what do I need to do in HID to VPAD after I put the config file in the controller folder?
     
  17. adittya

    adittya Newbie

    Newcomer
    7
    0
    Apr 9, 2017
    Indonesia
    is it possible to connect a kinect? (just an idea)
     
  18. Maschell
    OP

    Maschell GBAtemp Advanced Fan

    Member
    859
    1,224
    Jun 14, 2008
    Gambia, The
    Just start the App and press plus
     
  19. Feffe

    Feffe Member

    Newcomer
    34
    13
    Oct 12, 2008
    Italy
    @Maschell can you make a stripped down version of this which silently load the connected USB controller (in my case, a Gamecube one with the adapter) as Pro Controller? I'm asking because we could have autobooting USB controller support combining your app with Chbc mod (by making Chbc boot your app instead of Padcon at launch)
     
  20. lordelan

    lordelan GBAtemp Maniac

    Member
    1,419
    391
    Jan 4, 2015
    Gambia, The
    Since I'm going to get that adapter as well I'm in for that too!

    Also back to the "problem" that no homebrew could be loaded after this and I don't think anyone would implement GC Controller adapter support into RetroArch, could it be solved by using the launcher channel version of RetroArch after running HID to VPAD?
    https://gbatemp.net/threads/retroarch-wiiu-wip.447670/page-185#post-7069903

    Playing RetroArch games with four GC Controllers on my Wii U would be the ultimate climax for me!