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

  • Thread starter Thread starter Kartik
  • Start date Start date
  • Views Views 184,737
  • Replies Replies 469
  • Likes Likes 44
@Kartik Congrats! I tested this version on several homebrew apps and I can get back to home with no problems! It also resets correctly the buttons when in the Home Menu. I've noticed another problem tho: if I pause the game and go to the Home Menu, and then get back to the game, the C-stick stops working (in-game). That's the case only if the input of the C-stick is remapped. Even if I close the software and relaunch it, the C-stick won't work (in this state, it works in other titles and in the Home Menu). After the console is rebooted, it works on the title again.
I also tried exiting the game and playing one that requires the use of the C-stick: it will work on that one, but it still won't work for the title that "broke" it.
Hope that's enough info. Thanks again for taking the time to develop such a useful and simple to use program!
Edit: fixed typo

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


That would be cool! I'd love to share some of my configs too
Please try this and tell me if it works
 

Attachments

I've been trying to map Samus Returns so I could use the D-Pad to move the character but it doesn't seem to be working, I don't think I put anything wrong in the config file.

Here it is if you want to have a look:

Edit: I didn't know you had to put "dpadtocpad":true in the config file.
 

Attachments

Last edited by Vandal101,
hi uh (noob question sorry) so after following the instructions and booting up my game the remapping doesn't work, i'm trying to swap x and b, my json file looks like this:
{
"remappings":[
{"get":"B", "press":"X"},
{"get":"X", "press":"B"}
]
}
i'm editing it w notepad++ if maybe that's the problem?? sorry i really just know almost nothing about this-
 
hi uh (noob question sorry) so after following the instructions and booting up my game the remapping doesn't work, i'm trying to swap x and b, my json file looks like this:
{
"remappings":[
{"get":"B", "press":"X"},
{"get":"X", "press":"B"}
]
}
i'm editing it w notepad++ if maybe that's the problem?? sorry i really just know almost nothing about this-
Start your game, open rosalina menu, go to process list, scroll down and check whether there is a process named "rehid" and change the json file to this:-
{
"keys":[
{"get":"B", "press":"X"},
{"get":"X", "press":"B"}
]
}

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

I've been trying to map Samus Returns so I could use the D-Pad to move the character but it doesn't seem to be working, I don't think I put anything wrong in the config file.

Here it is if you want to have a look:

Edit: I didn't know you had to put "dpadtocpad":true in the config file.
Does it work now?
 
  • Like
Reactions: Kris1
Start your game, open rosalina menu, go to process list, scroll down and check whether there is a process named "rehid" and change the json file to this:-
{
"keys":[
{"get":"B", "press":"X"},
{"get":"X", "press":"B"}
]
}

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


Does it work now?
I did that and when opening rosalina menu i found no "rehid" process... maybe i messed up the file location or smth? the rehid folder is in the root of the sd card and the rehid.json is in the folder, the extracted zip files (code.bin and exheader.bin) are both in luma/titles, i tried rebooting my 3ds and nothing happened, also reinserting and taking out the sd card but nothing either
 
I did that and when opening rosalina menu i found no "rehid" process... maybe i messed up the file location or smth? the rehid folder is in the root of the sd card and the rehid.json is in the folder, the extracted zip files (code.bin and exheader.bin) are both in luma/titles, i tried rebooting my 3ds and nothing happened, also reinserting and taking out the sd card but nothing either
Had you by chance have the game patching enabled on the luma page when holding start and power?
 
  • Like
Reactions: Kris1
I did that and when opening rosalina menu i found no "rehid" process... maybe i messed up the file location or smth? the rehid folder is in the root of the sd card and the rehid.json is in the folder, the extracted zip files (code.bin and exheader.bin) are both in luma/titles, i tried rebooting my 3ds and nothing happened, also reinserting and taking out the sd card but nothing either
Make sure that game patching is on, and code.bin and exheader.bin are in a folder named `0004013000001D02` in `luma/titles` and not directly in `luma/titles`
 
Hi! I've got a crash report. I was using the CTRX file manager app and I get crashes every time I try going back to the Home Menu. I've moved rehid from the luma titles, and it doesn't crash anymore, so I'm pretty sure rehid is what's causing the crash. The crash dump will follow:
 

Attachments

Hi! I've got a crash report. I was using the CTRX file manager app and I get crashes every time I try going back to the Home Menu. I've moved rehid from the luma titles, and it doesn't crash anymore, so I'm pretty sure rehid is what's causing the crash. The crash dump will follow:
Do any others app crash? Ctrxplorer is based around a very old lib called citrus and is doing some custom stuff to gain control over things, i guess that is what is most likely crashing.

EDIT: I just tested ctrxplorer and indeed it crashes, if no other titles crash, it is most likely an issue with ctrxplorer and I don't think it can be solved from rehid side of things. Disable rehid when you want to use ctrxplorer by disabling game patching and then enable it again when you want to use rehid.
 
Last edited by Kartik,
Do any others app crash? Ctrxplorer is based around a very old lib called citrus and is doing some custom stuff to gain control over things, i guess that is what is most likely crashing.

EDIT: I just tested ctrxplorer and indeed it crashes, if no other titles crash, it is most likely an issue with ctrxplorer and I don't think it can be solved from rehid side of things. Disable rehid when you want to use ctrxplorer by disabling game patching and then enable it again when you want to use rehid.
Oh I see now. Thanks for taking the time to check what the issue was about!
Edit (note): I've tested several other apps, no crashes.
 
Last edited by Stefano_Lassandro,
Hi @Kartik, first of all, I think you should apply to get a proper developer account tag as recognition for all this ground-breaking work :D . Secondly, I don't really understand the code very well so I wanted to ask: do you think that rehid might cause the battery to drain slightly quicker than the regular hid? For example, does the irrst always get initiated even if N3DS buttons aren't included in a remap json? Thanks :) .
 
Hi @Kartik, first of all, I think you should apply to get a proper developer account tag as recognition for all this ground-breaking work :D . Secondly, I don't really understand the code very well so I wanted to ask: do you think that rehid might cause the battery to drain slightly quicker than the regular hid? For example, does the irrst always get initiated even if N3DS buttons aren't included in a remap json? Thanks :) .
Yup irrst is always initialized but I don't think there is going to be a significant battery drain. The way it currently works, selectively initializing ir:rst might introduce bugs.I'll have to look into this further.
 
  • Like
Reactions: Nutez
Yup irrst is always initialized but I don't think there is going to be a significant battery drain. The way it currently works, selectively initializing ir:rst might introduce bugs.I'll have to look into this further.
On further inspection and testing I can confirm this is not doable atm, it introduces lots of new bugs.

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

Also, is somebody good at adobe illustrator who can make a n3ds vector for me(something like this)? I need it for the upcoming homebrew app which will allow you to create remaps directly from 3ds. :)
 
Last edited by Kartik,

Site & Scene News

Popular threads in this forum