HID To VPAD Network Client

Discussion in 'Wii U - Homebrew' started by Maschell, Mar 30, 2017.

Mar 30, 2017

HID To VPAD Network Client by Maschell at 7:18 PM (8,524 Views / 15 Likes) 74 replies

  1. justinleblanc

    Newcomer justinleblanc Newbie

    Joined:
    Apr 12, 2017
    Messages:
    2
    Country:
    Canada
    You're absolutely correct. Newest version fixes that issue. I'm still getting intermittent temporary disconnects as well as laggy and unresponsive performance in BotW. However, I'm using my XB1 controller via Bluetooth and both my laptop and my Wii U are connected over WiFi, not Ethernet, so I'm assuming that has something to do with it.
     


  2. yasushi

    Newcomer yasushi Newbie

    Joined:
    Mar 31, 2017
    Messages:
    8
    Country:
    Japan
    v0.3-nightly-70b5da2

    No lists of controllers were indicated any more.
    A PC and DUALSHOCK3 are connected in USB.
     
  3. Olavgosain03

    Newcomer Olavgosain03 Newbie

    Joined:
    Apr 10, 2017
    Messages:
    4
    Country:
    Norway
    feel dumb for asking but how doo i install the file
     
  4. lordelan

    Member lordelan GBAtemp Maniac

    Joined:
    Jan 4, 2015
    Messages:
    1,287
    Country:
    Germany
    Which file? A specific controller config or the actual app itself?
     
  5. BeRnYGP

    Member BeRnYGP GBAtemp Regular

    Joined:
    Jul 1, 2015
    Messages:
    122
    Country:
    Mexico
    With this, I can use a DS3 over Wi-Fi? (I dont have bluetooth adapter)
     
  6. GameInCanada

    Newcomer GameInCanada Member

    Joined:
    Feb 18, 2017
    Messages:
    48
    Country:
    China
    Anyone know why when i click "connect" the client always freezes. ive tried nightly builds and stable and im on latest version of hidtovpad

    Edit Nevermind - i switched to latest nightly client, and latest nightly hidtovpad v.09h working now!


    double edit does anyone have a clue how i can get PPjoy + glovepie working on this? i recon i just need hid to vpad network client to see my PPjoy controller as a controller?

    anyone know how id create a config file for such a thing?

    like VPAD_A = joy 1 button 2 or do i need the byte values
     
    Last edited by GameInCanada, Apr 22, 2017
  7. skoruppa

    Newcomer skoruppa Newbie

    Joined:
    Oct 9, 2014
    Messages:
    4
    Location:
    Katowice, Poland
    Country:
    Poland
    I try to create a bit uncommon configuration but I have problem with understanding https://github.com/Maschell/controller_patcher/wiki/5.d-Controller-|-Adding-new-devices

    First of, I'm using Arch Linux and Steam Controller. Using sc-controller ( https://github.com/kozec/sc-controller ), steam controller is visible for system as Xbox Controller on /dev/input/js0. HID to VPAD app sees my controller, I can connect without problem to my Wii U. Unfortunately default config ( https://github.com/Maschell/controller_patcher/wiki/5.e-Controller-|-Configurate-a-XInput-controller ) does not as expected (is almost not working at all). So I figured out that I have to create new config for my pad but I can't get grasp of how to do it.

    I tried to test my device with HIDTest-0.1-jar-with-dependencies (because I can't use HID Test on Wii U for network connections) but data displayed with him are not readable for me. For example this is default output
    Code:
    VID: 52F9 PID 14BE data:  | 000000000000080800080800080800000 | 
    Button X pressed
    Code:
    VID: 52F9 PID 14BE data:  | 201000000000080800080800080800000 | 
    Button Y pressed
    Code:
    VID: 52F9 PID 14BE data:  | 100000000000080800080800080800000 | 
    Button B pressed
    Code:
    VID: 52F9 PID 14BE data:  | 402010000000080800080800080800000 |
    And for button A nothing is changed... why? And how I can map other buttons when more than one bit change during button pressing. Is there any other way to read input data in format compatible with HID to VPAD on linux?

    Events read from evtest are in way more readable format. Here is example with X, A, B, Y buttons
    Code:
    Event: time 1492967293.479597, type 1 (EV_KEY), code 304 (BTN_SOUTH), value 1
    Event: time 1492967293.479597, -------------- SYN_REPORT ------------
    Event: time 1492967293.571515, type 1 (EV_KEY), code 304 (BTN_SOUTH), value 0
    Event: time 1492967293.571515, -------------- SYN_REPORT ------------
    Event: time 1492967294.903641, type 1 (EV_KEY), code 305 (BTN_EAST), value 1
    Event: time 1492967294.903641, -------------- SYN_REPORT ------------
    Event: time 1492967295.047637, type 1 (EV_KEY), code 305 (BTN_EAST), value 0
    Event: time 1492967295.047637, -------------- SYN_REPORT ------------
    Event: time 1492967296.279701, type 1 (EV_KEY), code 308 (BTN_WEST), value 1
    Event: time 1492967296.279701, -------------- SYN_REPORT ------------
    Event: time 1492967296.379683, type 1 (EV_KEY), code 308 (BTN_WEST), value 0
    Event: time 1492967296.379683, -------------- SYN_REPORT ------------
    Event: time 1492967296.715307, type 1 (EV_KEY), code 307 (BTN_NORTH), value 1
    Event: time 1492967296.715307, -------------- SYN_REPORT ------------
    Event: time 1492967296.827519, type 1 (EV_KEY), code 307 (BTN_NORTH), value 0
    Event: time 1492967296.827519, -------------- SYN_REPORT ------------
    
    Can I user BTN_SOUTH, BTN_EAST etc within my config?

    I will really appreciate any kind of help :)

    EDIT: Noticed that data presented by HIDTest is just trimmed at beginning (i can see full length when I'm moving analog stciks). That is why I see no difference when pressing A button. Can I request fix for that? Maybe It is fixed in newest builds but latest HIDTest-0.1-nightly-jar-with-dependencies.jar does not show any data
    Example:
    Code:
     VID: 52F9 PID 14BE data: 00000000000000008080007EE40080800000 | 
     

    Attached Files:

    Last edited by skoruppa, Apr 23, 2017 at 7:14 PM
  8. Maschell
    OP

    Member Maschell GBAtemp Advanced Fan

    Joined:
    Jun 14, 2008
    Messages:
    798
    Country:
    Germany
    @QuarkTheAwesome did the Linux /dev/input/js0, probably he knows whats going on.
    The XInput default mapping is only valid under Windows, but he created a config file for the Linux Xbox Controller, maybe it's working?
    https://puu.sh/tHYS4/d73791d987.ini
    I forgot to put this into the repo
     
    skoruppa likes this.
  9. skoruppa

    Newcomer skoruppa Newbie

    Joined:
    Oct 9, 2014
    Messages:
    4
    Location:
    Katowice, Poland
    Country:
    Poland
    THANK YOU! This config was almost perfect, and most of all, thanks to it I understood how configuration works :) Only thing I had to change was VPAD_BUTTON_STICK_L and VPAD_BUTTON_STICK_R

    Code:
    [vid=0x045E,pid=0x028E]
    //Linux: Steam Controller through sc-controller as xbox controller ( ͡° ͜ʖ ͡°)
    VPAD_BUTTON_A = 0x00,0x02
    VPAD_BUTTON_B = 0x00,0x01
    VPAD_BUTTON_X = 0x00,0x08
    VPAD_BUTTON_Y = 0x00,0x04
    
    VPAD_BUTTON_PLUS = 0x00,0x80
    VPAD_BUTTON_MINUS = 0x00,0x40
    //VPAD_BUTTON_HOME = 0x01,0x01
    
    VPAD_BUTTON_L = 0x00,0x10
    VPAD_BUTTON_R = 0x00,0x20
    
    VPAD_BUTTON_STICK_L = 0x02,0x80
    VPAD_BUTTON_STICK_R = 0x03,0x80
    
    //The "value" is a deadzone in this case
    VPAD_BUTTON_ZR = 0xD,0xE0
    VPAD_BUTTON_ZL = 0xA,0xE0
    
    
    DPAD_MODE = DPAD_Absolute_2Values
    VPAD_BUTTON_DPAD_ABS_UP = 0xF,0x00
    VPAD_BUTTON_DPAD_ABS_DOWN = 0xF,0xFF
    VPAD_BUTTON_DPAD_ABS_LEFT = 0xE,0x00
    VPAD_BUTTON_DPAD_ABS_RIGHT = 0xE,0xFF
    
    VPAD_L_STICK_X = 0x08,0x80
    VPAD_L_STICK_X_MINMAX = 0x00,0xFF
    VPAD_L_STICK_X_DEADZONE = 0x20
    
    VPAD_L_STICK_Y = 0x09,0x80
    VPAD_L_STICK_Y_MINMAX = 0x00,0xFF
    VPAD_L_STICK_Y_DEADZONE = 0x20
    VPAD_L_STICK_Y_INVERT = True
    
    VPAD_R_STICK_X = 0x0B,0x80
    VPAD_R_STICK_X_MINMAX = 0x00,0xFF
    VPAD_R_STICK_X_DEADZONE = 0x20
    
    VPAD_R_STICK_Y = 0x0C,0x80
    VPAD_R_STICK_Y_MINMAX = 0x00,0xFF
    VPAD_R_STICK_Y_DEADZONE = 0x20
    VPAD_R_STICK_Y_INVERT = True
     
    Last edited by skoruppa, Apr 23, 2017 at 11:59 PM
  10. Maschell
    OP

    Member Maschell GBAtemp Advanced Fan

    Joined:
    Jun 14, 2008
    Messages:
    798
    Country:
    Germany
    Nice to hear this! I put it into the controller patcher config repo!
     
  11. QuarkTheAwesome

    Member QuarkTheAwesome Working for Hugs

    Joined:
    Apr 19, 2015
    Messages:
    617
    Location:
    Stuck in the PowerPC
    Country:
    Australia
    The Linux controller driver formats the data internally since the API doesn't actually provide one big data packet. This means that you'll get basically the same config across all Linux controllers, but it might get weird when trying to cross-reference against HIDTest (@Maschell?). Don't get me started on the analog sticks. You don't want to know.
     
  12. Maschell
    OP

    Member Maschell GBAtemp Advanced Fan

    Joined:
    Jun 14, 2008
    Messages:
    798
    Country:
    Germany
    HIDTest is displaying the data that will be sent to the WiiU (aka the result of pollLatestData()).
     
    QuarkTheAwesome likes this.
  13. Giodude

    Member Giodude Ruler of Italy

    Joined:
    May 17, 2015
    Messages:
    2,856
    Location:
    New York
    Country:
    United States
    im trying to use both joycons for this. I have joytokey set up, how could i use this with a keyboard?
     
  14. Maschell
    OP

    Member Maschell GBAtemp Advanced Fan

    Joined:
    Jun 14, 2008
    Messages:
    798
    Country:
    Germany
    lordelan likes this.
  15. Felek666

    Member Felek666 redNAND hate machine // Azu-nya~

    Joined:
    Jan 3, 2017
    Messages:
    1,779
    Location:
    Petting my catgirls
    Country:
    Poland
    @Maschell
    Would it be possible to create Java-less launcher?
    Java installation just crashes on my laptop and my PC is in another room.
     

Share This Page