Homebrew Official HID to VPAD

incyk

Member
Newcomer
Joined
Nov 16, 2016
Messages
10
Trophies
0
Age
25
XP
68
Country
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,

mackem

Well-Known Member
Member
Joined
Mar 19, 2006
Messages
111
Trophies
0
Website
Visit site
XP
248
Country
I think you can swap them if you make a config file for your controller with just a few buttons remapped, instead of assigning all of them when adding a new controller. The guide will help you with that.

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.
 
  • Like
Reactions: Gamer4647

cucholix

00000780 00000438
Member
Joined
Jan 17, 2017
Messages
3,246
Trophies
1
Age
44
XP
6,274
Country
Chile
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.
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,
  • Like
Reactions: lordelan

Maschell

Well-Known Member
OP
Member
Joined
Jun 14, 2008
Messages
1,090
Trophies
2
XP
4,645
Country
Germany
@Maschell I've have some games that aren't recognizing the pro controller. Those games are Runbow, Adventure Time Explore The Dungeon Because I Don't Know, and Starwhal. Tested with the latest nightly build.

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,
  • Like
Reactions: lordelan

nastys

ナースティス
Member
Joined
Aug 5, 2014
Messages
1,730
Trophies
0
Age
26
Location
Earth
XP
1,794
Country
Italy
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
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.
 

mackem

Well-Known Member
Member
Joined
Mar 19, 2006
Messages
111
Trophies
0
Website
Visit site
XP
248
Country
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

Example 2
Map Y also on R. When you press Y you still get Y, but when you press R you now get Y too.

[Gamepad]
VPAD_BUTTON_Y=VPAD_BUTTON_R

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.
 

xeyatan

Member
Newcomer
Joined
Aug 7, 2007
Messages
21
Trophies
1
XP
429
Country
@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.
 

Maschell

Well-Known Member
OP
Member
Joined
Jun 14, 2008
Messages
1,090
Trophies
2
XP
4,645
Country
Germany
@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.
What game do you mean by SSMB? Super Smash Bros?
 

nastys

ナースティス
Member
Joined
Aug 5, 2014
Messages
1,730
Trophies
0
Age
26
Location
Earth
XP
1,794
Country
Italy
Try this;

Code:
VPad_L_Stick_X_MinMax=0x00,0xFF
VPad_L_Stick_Y_MinMax=0x00,0xFF
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,

pazzoeo

Member
Newcomer
Joined
Dec 6, 2016
Messages
23
Trophies
0
Age
123
XP
70
Country
Italy
I added support for .lang files (like loadiine gx). Maybe you can fill in this file?
http://puu.sh/vj7gb/ea252e0aa3.lang
If you want to test it, use the following .elf and place it in the path "sd:/wiiu/apps/hidtovpad/languages/spanish.lang"
http://puu.sh/vj7bm/5b51534b81.elf

Once I'm coded the option menu for choosing a language, I'll make a proper commit. I also created a german .lang file.
If anybody wants to add support for other languages, feel free create .lang files (and please test them..)
I made an Italian translation, tested by renaming it to spanish.lang and using the elf you posted here. Hope this helps!
 

Attachments

  • italian.txt
    9.7 KB · Views: 247
  • Like
Reactions: lordelan

incyk

Member
Newcomer
Joined
Nov 16, 2016
Messages
10
Trophies
0
Age
25
XP
68
Country
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?
 

Feffe

Well-Known Member
Member
Joined
Oct 12, 2008
Messages
225
Trophies
1
XP
2,112
Country
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)
 

lordelan

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
5,787
Trophies
1
Age
44
XP
6,517
Country
Germany
@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)
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!
 

Maschell

Well-Known Member
OP
Member
Joined
Jun 14, 2008
Messages
1,090
Trophies
2
XP
4,645
Country
Germany
@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)

That would be really easy, but will unload when you start the HBL / you can't chain it with other homebrew. I can throw something together later.

@lordelan
Did you try it? You could simply pack the .rpx with nuspacker.
Btw. I still had no success compiling retroarch =(
 
Last edited by Maschell,

lordelan

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
5,787
Trophies
1
Age
44
XP
6,517
Country
Germany
That would be really easy, but will unload when you start the HBL / you can't chain it with other homebrew. I can throw something together later.

@lordelan
Did you try it? You could simply pack the .rpx with nuspacker.
Btw. I still had no success compiling retroarch =(
What do you mean?
The RetroArch Launcher is already installed here but since I haven't gotten my GC Controllers right now I can't test whether they work in RetroArch.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: