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

Kartik

Well-Known Member
OP
Member
Joined
Jun 6, 2015
Messages
653
Trophies
0
Location
github
XP
2,747
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: v4.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
653
Trophies
0
Location
github
XP
2,747
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 not found
Member
Joined
Dec 30, 2014
Messages
332
Trophies
0
Location
they/them | 0xDEAD brain
XP
1,651
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: 269

Kartik

Well-Known Member
OP
Member
Joined
Jun 6, 2015
Messages
653
Trophies
0
Location
github
XP
2,747
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 not found
Member
Joined
Dec 30, 2014
Messages
332
Trophies
0
Location
they/them | 0xDEAD brain
XP
1,651
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
653
Trophies
0
Location
github
XP
2,747
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 not found
Member
Joined
Dec 30, 2014
Messages
332
Trophies
0
Location
they/them | 0xDEAD brain
XP
1,651
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: 225

NanashiFinal13

Well-Known Member
Member
Joined
May 1, 2017
Messages
409
Trophies
0
Age
30
XP
2,641
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
653
Trophies
0
Location
github
XP
2,747
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
113
Trophies
0
Age
23
XP
304
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
409
Trophies
0
Age
30
XP
2,641
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
653
Trophies
0
Location
github
XP
2,747
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: 243

NanashiFinal13

Well-Known Member
Member
Joined
May 1, 2017
Messages
409
Trophies
0
Age
30
XP
2,641
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
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: ssssey ioBtneicnA@