Hacking Nintendont Controller-Configurations

vrda

New Member
Newbie
Joined
Jul 18, 2013
Messages
4
Trophies
1
Age
43
XP
202
Country
Croatia
Someone could help me? I want to play mario sunshine but you need the right trigger pressed halfway but the command to use (Saitek P880) will not push in half by the HIDtest does not detect someone could tell me if there is any way to use the average trigger function somehow?
PS: Below'll let my controller.ini

To all having trouble with "half" pressing digital buttons.
Just the other day I was facing the same problem and was frustrated enough to finally go and check some ini file key meanings in the source code.
So here it goes:
1) if your controller supports analog triggers (GC L and R), then don't set DigitalLR to 1 but do set your Lanalog and Ranalog to analog buttons - ones that can be pressed lightly in the game.
NOTE: Some controllers expose analog triggers only in Xinput mode which is not usable here - no amount of ini tweaking will make digital buttons work as analog in this case.

2) if your controller reports your GC L and R buttons as digital there is an undocumented little gem in the nintendont source code: ZL button is a shift-like button used to modify behaviour of L and R buttons.
Just define the ZL=index,mask in your ini file to your free button and use it as a shift to press L and R buttons "lightly"

I hope this will help.
 

UVERbafomet

New Member
Newbie
Joined
Jul 4, 2016
Messages
2
Trophies
0
Age
28
XP
54
Country
Brazil
Hey guys, please help me, i'm using this controller https://www.amazon.com/Retro-GameCube-Style-Wired-Controller-Pc/dp/B00HS7LJ2G all buttons are working, except Z. In hidtest appears this numbering when i press Z button 85 82 80 83 86 0F 04 20. The only number that changes are in bold is the 04.
The configuration of my .ini is below.

Ps: Sorry about my english, HELP ME! :yaywii:

--------------------- MERGED ---------------------------

Anyone looking for HIDTest only extract this file in the SD apps folder
 

Attachments

  • Sem título.jpg
    Sem título.jpg
    26 KB · Views: 398
  • HIDTest.rar
    132.9 KB · Views: 260

Subscriber0101

Well-Known Member
Member
Joined
Jun 9, 2015
Messages
141
Trophies
0
Location
USA
XP
361
Country
United States
I've been using, with great success, my PS2 controller on Nintendont. It took some trial and error to make the button configuration ideal, but I have and it's great.

And then I tried getting into Super Mario Sunshine. See, long story short, it is essential to the game that you differentiate between holding the R trigger all the way down and holding it part of the way.

However, the R2 button on the PS2 controller only has one input (it isn't analog; it's either pressed all the way down or not).

Right now, the R1 button my controller is mapped to Z. I can remap the Z button to the Select button. But I need to make R1 a half-press of the R trigger, and R2 a full press.

How can I, in the controller configuration, remap a partial press of the R trigger to a separate button?
 
  • Like
Reactions: UVERbafomet

Subscriber0101

Well-Known Member
Member
Joined
Jun 9, 2015
Messages
141
Trophies
0
Location
USA
XP
361
Country
United States
Thanks to a helpful conversation with Cyan, I figured it out. Input a new line your controller.ini called "ZL=__", where the underscore is the input of your R1 button. Then, when you hold both R1 and R2, you get a half press. Not ideal compared to simply pressing R1 for a half press, but it definitely works. After that, just remap R1's original function (Z) to Select.
 

gilaa

New Member
Newbie
Joined
Aug 21, 2016
Messages
1
Trophies
0
Age
46
XP
51
Country
Brazil
Old GameCube usb adapter:


PA.03486.001.jpg
PA.03486.002.jpg

http://www.play-asia.com/super-joybox-13-game-cube-to-pc-usb-controller-adapter/13/702ou

controller.ini

[SUPER JOYBOX 13]
VID=0926
PID=8888
Polltype=1
DPAD=1
DigitalLR=0
Power=0,C1
A=0,01
B=0,02
X=0,04
Y=0,08
Z=0,40
L=0,10
R=0,20
S=0,80
Left=1,60
Down=1,40
Right=1,20
Up=1,00
RightUp=1,10
DownRight=1,30
DownLeft=1,50
UpLeft=1,70
StickX=2,0,100
StickY=3,0,100
CStickX=4,0,100
CStickY=5,0,100
LAnalog=6
RAnalog=7



*** Power=0,C1 >>> A+Z+Start

***Rumble function not working.
 
Last edited by gilaa,

Juan.94

New Member
Newbie
Joined
Sep 19, 2016
Messages
1
Trophies
0
Age
28
XP
52
Country
Greetings to all. First: I don't speak English! I used a software to translate to english. Excuse translation errors and hope you can understand me. I need your help...


I have a Genius Grandias Maxfire 12 Controller. I have tested it with HID -test and controller.ini is configured with the correct settings for each button. The buttons work perfect (A, B, X, Y, S, POWER, L, R, Z), also the analog left and right works correctly (Stick and CStick respectively in controller.ini) but the d -pad gives problems. When I press the up button does not work and when I press the botton down runs down and to the left at the same time, when I press button right works left. D-pad does not work correctly!! I checked the values in HID -test and the controller.ini configuration is correct.
Can you help me?

images

[Genius Maxfire Grandias 12]
VID=1345
PID=1000
Polltype=1
DPAD=0
Power=5,11
A=4,01
B=4,04
X=4,02
Y=4,08
Z=4,20
L=4,40
R=4,80
S=5,22
Up=6,00
RightUp=6,11
Right=6,22
DownRight=6,33
Down=6,44
DownLeft=6,55
Left=6,66
UpLeft=6,77
StickX=0
StickY=1
CStickX=2
CStickY=3
DigitalLR=1
 

ALLANOSAN

New Member
Newbie
Joined
Sep 30, 2016
Messages
2
Trophies
0
Age
33
XP
41
Country
Brazil
Please someone could create a controller.ini to me why I do not know how to use the test-hid

follows my control configuration

he without this departing no button

7F7F7F7FFF0F0000

with connected analog

80808080FF0F0000

now how is each button

L1 = 7F7F7F7FFF0F0400
L2 = 7F7F7F7FFF0F0100
R1 = 7F7F7F7FFF0F0800
R2 = 7F7F7F7FFF0F0200

Dpadup = 7F7F7F00FF0F0000
Dpaddown = 7F7F7FFFFF0F0000
Dpadleft = 7F7F007FFF0F0000
Dpadright = 7F7FFF7FFF0F0000

triangle = 7F7F7F7FFF1F0000
X = 7F7F7F7FFF4F0000
circle = 7F7F7F7FFF2F0000
Square = 7F7F7F7FFF8F0000

left analog stick

up = 7F7F7F00FF0F0000
down = 7F7F7FFFFF0F0000
left = 7F7F007FFF0F0000
right = 7F7FFF7FFF0F0000

right analog stick

up = 7F7F7F7FFF1F0000
down = 7F7F7F7FFF4F0000
left = 7F7F7F7FFF8F0000
right = 7F7F7F7FFF2F0000

select = 7F7F7F7FFF0F1000
start = 7F7F7F7FFF0F2000

this is my control a control leadership usb / ps2
http://static8.kabum.com.br/produtos/fotos/878/878_index_g.jpg
 
Last edited by ALLANOSAN,

ALLANOSAN

New Member
Newbie
Joined
Sep 30, 2016
Messages
2
Trophies
0
Age
33
XP
41
Country
Brazil
I recommend using an existing configuration as reference (for button names etc). First test if your device is supported: press any button / move a stick and the values shown on the bottom of HID-Test should change, if they don't, your device is not supported (do this, without a sd:/controller.ini).

For example, if no button is pressed, the MayFlash Wii Classic Controller to USB Adapter gives:
7A 8A 86 2F 00 0F 00 00

Now pressing some buttons changes it to:
74 8A 86 2F 00 0F 20 00

As you can see offset 6 (it starts from 0, not 1) changed to value 20, so in the controller.ini you would write (say it's button A):

A=6,20

So you write the offset (6) and the value (20). Analog Sticks only need offset, not value. Example pressing right analog stick to the right:
FF 8A 86 2F 00 0F 20 00

As you can see offset null changed, so you would write:

CStickX=0

As CStick is the right analog, the left analog would be Stick (X and Y as per axis).

Once you created your controller.ini restart HID-Test with sd:/controller.ini. Now at the bottom HID-Test will show all available buttons (except power). Now then you press a button HID-Test should show that button pressed, if nothing happens or a wrong button is shown pressed, edit your controller.ini.

If the dpad does not work change DPAD=0 to DPAD=1 and fill additional values for diagonal directions (RightUp etc..., see available configurations as reference).

Once everything is fine, post your configuration here in order for it to be included in my repository.



Please someone could create a controller.ini to me why I do not know how to use the test-hid

follows my control configuration

he without this departing no button

7F7F7F7FFF0F0000

with connected analog

80808080FF0F0000

now how is each button

L1 = 7F7F7F7FFF0F0400
L2 = 7F7F7F7FFF0F0100
R1 = 7F7F7F7FFF0F0800
R2 = 7F7F7F7FFF0F0200

Dpadup = 7F7F7F00FF0F0000
Dpaddown = 7F7F7FFFFF0F0000
Dpadleft = 7F7F007FFF0F0000
Dpadright = 7F7FFF7FFF0F0000

triangle = 7F7F7F7FFF1F0000
X = 7F7F7F7FFF4F0000
circle = 7F7F7F7FFF2F0000
Square = 7F7F7F7FFF8F0000

left analog stick

up = 7F7F7F00FF0F0000
down = 7F7F7FFFFF0F0000
left = 7F7F007FFF0F0000
right = 7F7FFF7FFF0F0000

right analog stick

up = 7F7F7F7FFF1F0000
down = 7F7F7F7FFF4F0000
left = 7F7F7F7FFF8F0000
right = 7F7F7F7FFF2F0000

select = 7F7F7F7FFF0F1000
start = 7F7F7F7FFF0F2000

this is my control a control leadership usb / ps2
http://static8.kabum.com.br/produtos/fotos/878/878_index_g.jpg
 

UVERbafomet

New Member
Newbie
Joined
Jul 4, 2016
Messages
2
Trophies
0
Age
28
XP
54
Country
Brazil
Hey guys, please help me, i'm using this controller https://www.amazon.com/Retro-GameCube-Style-Wired-Controller-Pc/dp/B00HS7LJ2G all buttons are working, except Z. In hidtest appears this numbering when i press Z button 85 82 80 83 86 0F 04 20. The only number that changes are in bold is the 04.
The configuration of my .ini is below.

Ps: Sorry about my english, HELP ME! :yaywii:

--------------------- MERGED ---------------------------

Anyone looking for HIDTest only extract this file in the SD apps folder

UP UP UP UP UP UP UP UP UP UP UP UP
 

Corgano

Well-Known Member
Newcomer
Joined
Jul 15, 2015
Messages
66
Trophies
0
Age
29
XP
521
Country
Canada
I'm working on a program (windows) that will generate / help generate ini's for controllers. However I still need help with what a few of the ini settings do.

What does Polltype, DigitalLR, DPAD, ZL, MultiIn, MultiInValue do exactly?
What is the CORRECT naming convention for the files? The downloaded examples I found have varying names. sd/controller/what.ini?
How does rumble work? What do all the rumble settings do?

EDIT: Progress so far:
7g2m6qs.png

What is done:
  • Selecting controller from list
  • Generating INI formatted settings
  • Press button -> Set Key
  • Press "set all" -> successively set all keys
TODO:
  • Make DPAD, DigitalLR, PollType settings do things
  • Handle ZL button
  • Add help / documentation explaining all ini settings
  • Save ini to file
  • When controller is selected, read a /controllers/VID_PID.ini file (if exists)
Anyone have any other ideas / suggestions?
Edit 2: Thread here: https://gbatemp.net/threads/wip-nin...r-ini-files-effortlessly.447303/#post-6798345
 
Last edited by Corgano,

AshleyCummings

Gamer Girl
Member
Joined
Dec 14, 2011
Messages
545
Trophies
1
Age
36
Location
My own world
XP
430
Country
United States
I'm working on a program (windows) that will generate / help generate ini's for controllers. However I still need help with what a few of the ini settings do.

What does Polltype, DigitalLR, DPAD, ZL, MultiIn, MultiInValue do exactly?
What is the CORRECT naming convention for the files? The downloaded examples I found have varying names. sd/controller/what.ini?
How does rumble work? What do all the rumble settings do?

EDIT: Progress so far:
7g2m6qs.png



What is done:
  • Selecting controller from list
  • Generating INI formatted settings
  • Press button -> Set Key
  • Press "set all" -> successively set all keys
TODO:
  • Make DPAD, DigitalLR, PollType settings do things
  • Handle ZL button
  • Add help / documentation explaining all ini settings
  • Save ini to file
  • When controller is selected, read a /controllers/VID_PID.ini file (if exists)
Anyone have any other ideas / suggestions?





This would help out greatly! nice tool! cant wait to see it done!
 

Alitz

Member
Newcomer
Joined
Aug 28, 2016
Messages
9
Trophies
0
XP
56
Country
United States
I'm curious about the original GameCube controller's L and R buttons. At what point during the analog process do the non-analog "buttons" trigger? Because I'm pretty sure it was at some point between 00 and FF. I'm hoping to make a more accurate .ini file this way, if I can.
 

Corgano

Well-Known Member
Newcomer
Joined
Jul 15, 2015
Messages
66
Trophies
0
Age
29
XP
521
Country
Canada
I'm posting what I have now, for a config generator. First things first:

This is written in AutoIt, you will need to download autoit to use it. Get autoit here
https://www.autoitscript.com/site/autoit/downloads/
The code below will need to be put in notepad, saved, and renamed to .au3. Then doubble clicking it will run it with autoit (default) or open it in SciTE editor (If chosen when installing autoit)
This script is a wrapper for hidtrace.exe, which is written by Atomix Productions. All credit for that tool goes to them, this simply adds functionality on top of it.
This tool will download hidtrace.exe automaticly, and seeing it running is normal
This tool will also download usb.ids if it can, to automaticly look up controller names. Auto name lookup might not be 100% accurate, it's more of a guideline than anything.

Further to do, the AutoIt Code.
This is not complete, for instance the boxes at the bottom don't do anything, things like dpad=1 or dpad=0 are not yet handled. Will finnish it when i get around to it.
 
Last edited by Corgano,
  • Like
Reactions: mouljaveel

toxic9

Well-Known Member
Member
Joined
Dec 13, 2016
Messages
819
Trophies
0
Age
44
XP
1,297
Country
Hi everybody...! I'm a new user around here! I'm "toxic9" and I'm from Portugal =)

I have lots of experience dealing with Wii's and WiiU's... but now I'm facing a problem, and I need some help.
I bought from ebay an Hori Battle Pad, because it's impossible to find it here on my country. I bought it because its very similar to the original GC pad (I love that pad I must say!)
The problem starts with the L2 and R2 triggers that should do the half and full pressed functions. But it simply does not do. Not even when I press the L1 + L2 or L1 + R2... this combinations does not work either.

I googled about this issue and I ended here on this forum! I need to ask some of you expert guys, if it possible to create an .ini file for this pad?
I read somewhere that the ini files only work for usb devices. is this true?
If so, theres any othe option I should try?

Any help will be apreciated.
Thanks for everyone and have a Enchated christmas season!
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Psionic Roshambo @ Psionic Roshambo: https://imgur.com/gallery/YA4kJ6L