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,748
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,748
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
359
Trophies
0
Location
they/them | 0xDEAD brain
XP
1,724
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: 277

Kartik

Well-Known Member
OP
Member
Joined
Jun 6, 2015
Messages
653
Trophies
0
Location
github
XP
2,748
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
359
Trophies
0
Location
they/them | 0xDEAD brain
XP
1,724
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,748
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
359
Trophies
0
Location
they/them | 0xDEAD brain
XP
1,724
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: 231

NanashiFinal13

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

NanashiFinal13

Well-Known Member
Member
Joined
May 1, 2017
Messages
409
Trophies
0
Age
30
XP
2,694
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
  • No one is chatting at the moment.
  • BigOnYa @ BigOnYa:
    Biomutant looks cool tho, may have to try that
  • Quincy @ Quincy:
    Usually when such a big title leaks the Temp will be the first to report about it (going off of historical reports here, Pokemon SV being the latest one I can recall seeing pop up here)
  • K3Nv2 @ K3Nv2:
    I still like how a freaking mp3 file hacks webos all that security defeated by text yet again
  • BigOnYa @ BigOnYa:
    They have simulators for everything nowdays, cray cray. How about a sim that shows you playing the Switch.
  • K3Nv2 @ K3Nv2:
    That's called yuzu
    +1
  • BigOnYa @ BigOnYa:
    I want a 120hz 4k tv but crazy how more expensive the 120hz over the 60hz are. Or even more crazy is the price of 8k's.
  • K3Nv2 @ K3Nv2:
    No real point since movies are 30fps
  • BigOnYa @ BigOnYa:
    Not a big movie buff, more of a gamer tbh. And Series X is 120hz 8k ready, but yea only 120hz 4k games out right now, but thinking of in the future.
  • K3Nv2 @ K3Nv2:
    Mostly why you never see TV manufacturers going post 60hz
  • BigOnYa @ BigOnYa:
    I only watch tv when i goto bed, it puts me to sleep, and I have a nas drive filled w my fav shows so i can watch them in order, commercial free. I usually watch Married w Children, or South Park
  • K3Nv2 @ K3Nv2:
    Stremio ruined my need for nas
  • BigOnYa @ BigOnYa:
    I stream from Nas to firestick, one on every tv, and use Kodi. I'm happy w it, plays everything. (I pirate/torrent shows/movies on pc, and put on nas)
  • K3Nv2 @ K3Nv2:
    Kodi repost are still pretty popular
  • BigOnYa @ BigOnYa:
    What the hell is Kodi reposts? what do you mean, or "Wut?" -xdqwerty
  • K3Nv2 @ K3Nv2:
    Google them basically web crawlers to movie sites
  • BigOnYa @ BigOnYa:
    oh you mean the 3rd party apps on Kodi, yea i know what you mean, yea there are still a few cool ones, in fact watched the new planet of the apes movie other night w wifey thru one, was good pic surprisingly, not a cam
  • BigOnYa @ BigOnYa:
    Damn, only $2.06 and free shipping. Gotta cost more for them to ship than $2.06
  • BigOnYa @ BigOnYa:
    I got my Dad a firestick for Xmas and showed him those 3rd party sites on Kodi, he loves it, all he watches anymore. He said he has got 3 letters from AT&T already about pirating, but he says f them, let them shut my internet off (He wants out of his AT&T contract anyways)
  • K3Nv2 @ K3Nv2:
    That's where stremio comes to play never got a letter about it
  • BigOnYa @ BigOnYa:
    I just use a VPN, even give him my login and password so can use it also, and he refuses, he's funny.
  • BigOnYa @ BigOnYa:
    I had to find and get him an old style flip phone even without text, cause thats what he wanted. No text, no internet, only phone calls. Old, old school.
    K3Nv2 @ K3Nv2: @BigOnYa...