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

  • Thread starter Thread starter Kartik
  • Start date Start date
  • Views Views 183,390
  • Replies Replies 469
  • Likes Likes 44
Incredible! Thank you very much for this fantastic work.
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.
D-Pad and A/B/X/Y to C-Stick would great for pseudo-dual-stick controls in some games (e.g. Terraria, BattleMiner). Also, would it be possible to map buttons to arbitrary touch screen coordinates? It would be useful for utilising unused ZL/ZR buttons to click on elements of an in-game HUD.
 
  • Like
Reactions: NanashiFinal13
Incredible! Thank you very much for this fantastic work.

D-Pad and A/B/X/Y to C-Stick would great for pseudo-dual-stick controls in some games (e.g. Terraria, BattleMiner). Also, would it be possible to map buttons to arbitrary touch screen coordinates? It would be useful for utilising unused ZL/ZR buttons to click on elements of an in-game HUD.
So like, when c-stick goes right, it acts as dpad right? Or like the inverse(dpad goes right, acts as the cpad)?
Coming to the second question, it should very much be possible, i will just need to redo some logic in rehid.
 
Man this is awesome.

I`ve tried it and it works fine. With MH4U I made a folder with title id game and it works great, I swapped ZL = ZR and now the heavy and light bow is easier to use.

Also in the home menu the ZL ZR buttons do not work anymore, but in game it works great, I am using the latest version FW and Luma 10.2.1 vanilla.

Do you think there is a way to make a button or something to turn it on/off?
 
Man this is awesome.

I`ve tried it and it works fine. With MH4U I made a folder with title id game and it works great, I swapped ZL = ZR and now the heavy and light bow is easier to use.

Also in the home menu the ZL ZR buttons do not work anymore, but in game it works great, I am using the latest version FW and Luma 10.2.1 vanilla.

Do you think there is a way to make a button or something to turn it on/off?
I can confirm that zl zr do behave weirdly in home menu. I think i can fix this though, let's see.

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

Still crashes with 3gx loader version. I just wandering if you can remap to the C-Stick because im curious, that's all :P
This is strange, somebody elsse tested the same file with 3gx loader and it worked for them. Did you replace the folder correctly? Also send me the crash dump please.
 
  • Like
Reactions: Arcano_cz
I can confirm that zl zr do behave weirdly in home menu. I think i can fix this though, let's see.

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


This is strange, somebody elsse tested the same file with 3gx loader and it worked for them. Did you replace the folder correctly? Also send me the crash dump please.
Silly me, i forgot to reactivate Luma game patching, now works great with 3gx loader!
 
  • Like
Reactions: Arcano_cz
So like, when c-stick goes right, it acts as dpad right? Or like the inverse(dpad goes right, acts as the cpad)?
Coming to the second question, it should very much be possible, i will just need to redo some logic in rehid.
Yes to the first: press C-Stick right and get D-Pad right or A. I suppose some people might want the inverse as well though (if it wouldn't be too much trouble allowing nearly every button remap combination possible XD ). Great to hear that incorporating the touch screen is achievable too! Thanks again for this excellent effort.
 
  • Like
Reactions: Feffe and Kartik
So like, when c-stick goes right, it acts as dpad right? Or like the inverse(dpad goes right, acts as the cpad)?
Coming to the second question, it should very much be possible, i will just need to redo some logic in rehid.
Yes to the first: press C-Stick right and get D-Pad right or A. I suppose some people might want the inverse as well though (if it wouldn't be too much trouble allowing nearly every button remap combination possible XD ). Great to hear that incorporating the touch screen is achievable too! Thanks again for this excellent effort.
 
With the newest commit, it should now be possible to do keys > touchscreen bindings using the json file
{
"keys":
[
{"get":"Y", "press":"X"},
{"get":"X", "press":"Y"}
],
"touch":
[
{"get":[10, 100], "press":"ZR"}
]
}
where 10 is the x coordinate and 100 is the y coordinate. You can just keep the touch part if you only want to map buttons to the touchscreen and do not want to remap the keys.
I am also attaching a build in case anybody wants to test. Please tell me how it goes.
 

Attachments

for some of you, the previous version might have crashed. Please try this out.
Amazing job! Works great, i already try it on a few games, remapping touch buttons to ZL, ZR and SELECT. The only thing that i miss is remapping to the c nub, but this is awesome. Finally, we can use New 3DS extra buttons on more games!
 
  • Like
Reactions: Nutez and BETA215
Its possible to remap ZL and ZR on games that doesn't use them, like Ocarina of Time 3D or Splinter Cell 3D? Because i try it, and only can remap them on games that support them, like Xenoblade, SNK2 Mirai no Zahyou or Kid Icarus Uprising.
 
Last edited by NanashiFinal13,
  • Like
Reactions: Nutez
Also, it would be really cool to remap Y X A B buttons to c-nub for Kid Icarus Uprising, so you can control the reticle with it (the game let you chose to control the reticle with the touch screen, d-pad or Y X A B, but no c-nub, you can only use c-nub as a mirror of c-pad).
 
This is incredible and something the 3DS scene was sorely missing! Thank you.

Yes to the first: press C-Stick right and get D-Pad right or A. I suppose some people might want the inverse as well though (if it wouldn't be too much trouble allowing nearly every button remap combination possible XD ). Great to hear that incorporating the touch screen is achievable too! Thanks again for this excellent effort.
I second this request. Mapping Circle Pad to D-Pad (eg: Circle Pad Right mapped to D-Pad Right) would also be cool.

EDIT: Just saw on Github Circle Pad mapping is already supported!
 
Last edited by Feffe,
Its possible to remap ZL and ZR on games that doesn't use them, like Ocarina of Time 3D or Splinter Cell 3D? Because i try it, and only can remap them on games that support them, like Xenoblade, SNK2 Mirai no Zahyou or Kid Icarus Uprising.
Do any keys work at all in these games or is it zl zr only which don't work?
 
This is incredible and something the 3DS scene was sorely missing! Thank you.


I second this request. Mapping Circle Pad to D-Pad (eg: Circle Pad Right mapped to D-Pad Right) would also be cool.

EDIT: Just saw on Github Circle Pad mapping is already supported!
Circle pad right to dpad right, should be possible rn, but i think it'll not work in the way you're assuming it will. You can try it though.
 
Do I need to use the latest version of Luma? I'm using Luma 9.1 and it does remap buttons but not in the way specified in the .json. My controls are randomly scrambled instead.
{
"remappings":[
{"get":"A", "press":"CRIGHT"},
{"get":"B", "press":"CDOWN"},
{"get":"X", "press":"CUP"},
{"get":"Y", "press":"CLEFT"},
{"get":"ZL", "press":"A"},
{"get":"ZR", "press":"DOWN"},
{"get":"DOWN", "press":"B"}
]
}
 
Do I need to use the latest version of Luma? I'm using Luma 9.1 and it does remap buttons but not in the way specified in the .json. My controls are randomly scrambled instead.
{
"remappings":[
{"get":"A", "press":"CRIGHT"},
{"get":"B", "press":"CDOWN"},
{"get":"X", "press":"CUP"},
{"get":"Y", "press":"CLEFT"},
{"get":"ZL", "press":"A"},
{"get":"ZR", "press":"DOWN"},
{"get":"DOWN", "press":"B"}
]
}
Do the keys other than the circlepad work fine?
 

Site & Scene News

Popular threads in this forum