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

Nutez

Assimilator of Lumas
Member
Joined
Jan 2, 2018
Messages
175
Trophies
0
Location
The other side of paradise.
XP
1,814
Country
United Kingdom
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

Kartik

Well-Known Member
OP
Member
Joined
Jun 6, 2015
Messages
653
Trophies
0
Location
github
XP
2,747
Country
India
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.
 

Arcano_cz

Active Member
Newcomer
Joined
Jul 23, 2020
Messages
32
Trophies
0
Age
35
XP
931
Country
Guatemala
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?
 

Kartik

Well-Known Member
OP
Member
Joined
Jun 6, 2015
Messages
653
Trophies
0
Location
github
XP
2,747
Country
India
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

NanashiFinal13

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

Nutez

Assimilator of Lumas
Member
Joined
Jan 2, 2018
Messages
175
Trophies
0
Location
The other side of paradise.
XP
1,814
Country
United Kingdom
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

Nutez

Assimilator of Lumas
Member
Joined
Jan 2, 2018
Messages
175
Trophies
0
Location
The other side of paradise.
XP
1,814
Country
United Kingdom
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.
 

Kartik

Well-Known Member
OP
Member
Joined
Jun 6, 2015
Messages
653
Trophies
0
Location
github
XP
2,747
Country
India
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

  • 0004013000001D02.zip
    45.9 KB · Views: 147

NanashiFinal13

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

NanashiFinal13

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

NanashiFinal13

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

Feffe

Well-Known Member
Member
Joined
Oct 12, 2008
Messages
225
Trophies
1
XP
2,112
Country
Italy
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,

Kartik

Well-Known Member
OP
Member
Joined
Jun 6, 2015
Messages
653
Trophies
0
Location
github
XP
2,747
Country
India
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?
 

Kartik

Well-Known Member
OP
Member
Joined
Jun 6, 2015
Messages
653
Trophies
0
Location
github
XP
2,747
Country
India
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.
 

holocr0n

New Member
Newbie
Joined
Mar 26, 2021
Messages
2
Trophies
0
Age
24
XP
32
Country
United States
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"}
]
}
 

Kartik

Well-Known Member
OP
Member
Joined
Jun 6, 2015
Messages
653
Trophies
0
Location
github
XP
2,747
Country
India
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

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: Least they got head in the end