Homebrew [WIP] rehid:- Button remapping for 3ds

Kartik

Well-Known Member
OP
Member
Joined
Jun 6, 2015
Messages
646
Trophies
0
Location
github
XP
2,561
Country
India
Over the last few months, I have been working on reimplementing 3ds hid module(this module is responsible for user-input), with the aim of easier button remapping. I have always wanted to swap ZL and L, R and ZR. It mostly works, which is why I am releasing it.

Features:
  • Button remapping with the help of a json file
  • IR module is patched automatically so ZL,ZR, Cpad Pro(Cnub) can also be remapped
  • Different button remappings for different games
Current Limitations:-

No known limitations as of v3.0

Instructions:-

Instructions on how to create your rehid.json file:-
This file will contain what buttons you want to remap.

You can generate your rehid.json files using this site written by @mcaboosec
or you can manually generate your rehid.json file using this step by step guide written by `@MarioKartFan

Some premade configs can be found here


Latest release: v3.0
Any ideas/suggestions/bug reports are most welcome.

You can help me develop rehid by joining this discord server and helping me test it out!
 
Last edited by Kartik,

Kartik

Well-Known Member
OP
Member
Joined
Jun 6, 2015
Messages
646
Trophies
0
Location
github
XP
2,561
Country
India
Fantastic! I've been wanting to remap CPAD directions to the DPAD, so I hope this works. Found an utility for this before but it wouldn't work.

Will try it ASAP, big thanks for this :D
I am not sure if that'll work the way you're expecting it to. You could try, but according to me, CPAD->DPAD should require more changes to the rewrite itself.
 
  • Like
Reactions: Stealphie

BETA215

Member?
Member
Joined
Dec 30, 2014
Messages
313
Trophies
0
Location
they/them | 0xDEAD brain
XP
1,342
Country
Argentina
Hmm, after pasting rehid title folder and creating its json, Luma won't even let me boot to settings and gives me this crash. Is it because of the nature of this remapping maybe? (change file txt extension to dmp)
 

Attachments

  • crash_dump_00000011.txt
    1.6 KB · Views: 225

Kartik

Well-Known Member
OP
Member
Joined
Jun 6, 2015
Messages
646
Trophies
0
Location
github
XP
2,561
Country
India
Hmm, after pasting rehid title folder and creating its json, Luma won't even let me boot to settings and gives me this crash. Is it because of the nature of this remapping maybe? (change file txt extension to dmp)
Can you paste the contents of your rehid.json file
 

BETA215

Member?
Member
Joined
Dec 30, 2014
Messages
313
Trophies
0
Location
they/them | 0xDEAD brain
XP
1,342
Country
Argentina
Can you paste the contents of your rehid.json file
{
"remappings":[
{"get":"CUP", "press":"UP"},
{"get":"CDOWN", "press":"DOWN"},
{"get":"CLEFT", "press":"LEFT"},
{"get":"CRIGHT", "press":"RIGHT"},
{"get":"UP", "press":"CUP"},
{"get":"DOWN", "press":"CDOWN"},
{"get":"LEFT", "press":"CLEFT"},
{"get":"RIGHT", "press":"CRIGHT"}
]
}
 

Kartik

Well-Known Member
OP
Member
Joined
Jun 6, 2015
Messages
646
Trophies
0
Location
github
XP
2,561
Country
India
{
"remappings":[
{"get":"CUP", "press":"UP"},
{"get":"CDOWN", "press":"DOWN"},
{"get":"CLEFT", "press":"LEFT"},
{"get":"CRIGHT", "press":"RIGHT"},
{"get":"UP", "press":"CUP"},
{"get":"DOWN", "press":"CDOWN"},
{"get":"LEFT", "press":"CLEFT"},
{"get":"RIGHT", "press":"CRIGHT"}
]
}
Could you copy one of those example files that is the post and check if they work? Also is this an o3ds or new3ds and do you have latest luma?
 
Last edited by Kartik,

BETA215

Member?
Member
Joined
Dec 30, 2014
Messages
313
Trophies
0
Location
they/them | 0xDEAD brain
XP
1,342
Country
Argentina
Could you copy one of those example files that is the post and check if they work? Also is this an o3ds or new3ds and do you have latest luma?
Copied swap X and Y example, and it crashed again. Downloaded and copied the plugin again in case it was some kind of corruption issue, but still crashes.
 

Attachments

  • crash_dump_00000012.txt
    1.6 KB · Views: 195

NanashiFinal13

Well-Known Member
Member
Joined
May 1, 2017
Messages
405
Trophies
0
Age
29
XP
2,286
Country
Argentina
Also, it crashes before booting the HOME menu. Tested on Old 3DS and New 3DS (regular, non XL), both consoles on latest firmware and the latest Luma version.
 

Kartik

Well-Known Member
OP
Member
Joined
Jun 6, 2015
Messages
646
Trophies
0
Location
github
XP
2,561
Country
India
Also, it crashes before booting the HOME menu. Tested on Old 3DS and New 3DS (regular, non XL), both consoles on latest firmware and the latest Luma version.
Could you paste the contents of your rehid.json file. Also make sure you're using vanilla luma, i.e., not using the 3gx loader luma or some other variant.

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

So does this mean I can’t remap I think it was abxy to c stick for the ds call of duty games?
Nope, ds games under twl mode.
 
  • Like
Reactions: Nutez

bob1212

Well-Known Member
Member
Joined
Nov 5, 2020
Messages
111
Trophies
0
Age
22
XP
287
Country
United States
Over the last few months, I have been working on reimplementing 3ds hid module(this module is responsible for user-input), with the aim of easier button remapping. I have always wanted to swap ZL and L, R and ZR. It mostly works, which is why I am releasing it.

Features:
  • Button remapping with the help of a json file
  • IR module is patched automatically so ZL and ZR can also be remapped
  • Different button remappings for different games
Current Limitations:-
  • Gyroscope and accelerometer won't work as they haven't been implemented by me yet
  • Luma's input redirection will be broken
Instructions:-
  • Grab the latest release from the github release page.
  • Extract the zip to `/luma/titles`
  • Create a folder named `rehid` on the root of your sd card
  • Copy the `rehid.json` file to this folder(instructions on how to create the file are given later in this post)
  • Enable Game Patching
  • Open your game and check if rebindings work.
Instructions on how to create your rehid.json file:-
This file will contain what buttons you want to remap.
For e.g., if I want to swap the X and Y button, the contents of this file would be:-
{
"remappings":[
{"get":"X", "press":"Y"},
{"get":"Y", "press":"X"}
]
}
Similarly, If I wanted to remap ZR to R key, so that everytime I press ZR key, R key is triggered, the content would be:-
{
"remappings":[
{"get":"R", "press":"ZR"}
]
}

It is also possible to do key-combos, for e.g., if I want to trigger R+L whenever START is pressed and Y to trigger whenever A+X is pressed, I could create a file as such
{
"remappings":[
{"get":"R+L", "press":"START"},
{"get":"Y", "press":"A+X"}
]
}
Different button-remappings for different games:-
It is also possible to have different remappings for different games, at once. To do this:-
  • Find the titleid for your game.
  • Create a folder with the name of titleid of your game in the rehid folder
  • Copy the rehid.json file to the titleid folder instead of directly to rehid folder.
Latest release:v1.0
Any ideas/suggestions/bug reports are most welcome.
A rehid.json? I’m afraid I’m not sure where that is exactly I don’t have one
 

NanashiFinal13

Well-Known Member
Member
Joined
May 1, 2017
Messages
405
Trophies
0
Age
29
XP
2,286
Country
Argentina
I was asking @NanashiFinal13 for the rehid.json file and not you :P.
I was using the 3gx loader luma, i tried with vanilla version and works great! Its a shame that isn't compatible with 3gx loader. Its possible to remap keys to the C-Stick/C-Nub?

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

Also, can you make rehid compatible with 3gx loader luma or that is impossible?
 

Kartik

Well-Known Member
OP
Member
Joined
Jun 6, 2015
Messages
646
Trophies
0
Location
github
XP
2,561
Country
India
I was using the 3gx loader luma, i tried with vanilla version and works great! Its a shame that isn't compatible with 3gx loader. Its possible to remap keys to the C-Stick/C-Nub?

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

Also, can you make rehid compatible with 3gx loader luma or that is impossible?
I think I was able to fix this issue but I am waiting for someone to check if it works for them too, meanwhile here is the "probably-fixed" version if you want to test.
What keys do you want to map to the C-Stick? Rn, it is not supported but I can look into adding support.
 

Attachments

  • 0004013000001D02.zip
    44.6 KB · Views: 209

NanashiFinal13

Well-Known Member
Member
Joined
May 1, 2017
Messages
405
Trophies
0
Age
29
XP
2,286
Country
Argentina
I think I was able to fix this issue but I am waiting for someone to check if it works for them too, meanwhile here is the "probably-fixed" version if you want to test.
What keys do you want to map to the C-Stick? Rn, it is not supported but I can look into adding support.
Still crashes with 3gx loader version. I just wandering if you can remap to the C-Stick because im curious, that's all :P
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • SylverReZ @ SylverReZ:
    Hope they made lots of spaget
  • K3N1 @ K3N1:
    Chill dog
  • SylverReZ @ SylverReZ:
    Chilli dog
  • Skelletonike @ Skelletonike:
    Damn, I'm loving the new zelda.
  • xtremegamer @ xtremegamer:
    loving the new zelda, i started a game, it was so fucking good, so i
    am waiting on my friend to get home so we can start a new one together
  • Skelletonike @ Skelletonike:
    I just dislike that they don't let me choose the voices before the game starts. Happened with botw as well, had to change to japanese and restart.
  • K3N1 @ K3N1:
    But the important question is can you choose gender
  • Skelletonike @ Skelletonike:
    Same way you can choose Gerald's gender.
  • Skelletonike @ Skelletonike:
    *Geralt, damn autocorrect.
  • Psionic Roshambo @ Psionic Roshambo:
    But can he be trans? Lol
  • K3N1 @ K3N1:
    Zelda transforms into link
  • Psionic Roshambo @ Psionic Roshambo:
    Link I'm not the princess your looking for.... *Pulls a crying game*
  • K3N1 @ K3N1:
    *skirt up* it's exactly what I always wanted
  • Skelletonike @ Skelletonike:
    Just scanned all my zelda amiibos, took a while but didn't get anything that cool, did get the lon lon ranch hylian fabrics though.
  • Skelletonike @ Skelletonike:
    It was pretty funny when I scanned wolf link and got a shit load of meat.
  • K3N1 @ K3N1:
    @Skelletonike, btw I ran that custom for mgs4 on the deck I'm amazed it got that far in game
  • K3N1 @ K3N1:
    Plug in*
  • K3N1 @ K3N1:
    Your favorite activity
  • BentlyMods @ BentlyMods:
    My fav actvity is:

    mario-dancing.gif
  • Psionic Roshambo @ Psionic Roshambo:
    Do the Mario lol
  • K3N1 @ K3N1:
    🍑
  • K3N1 @ K3N1:
    Whoever developed Bramble was smoking that good shit fucking gnomes
    K3N1 @ K3N1: Whoever developed Bramble was smoking that good shit fucking gnomes