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,824
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,748
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
955
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,748
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,718
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,824
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,824
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,748
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: 153

NanashiFinal13

Well-Known Member
Member
Joined
May 1, 2017
Messages
409
Trophies
0
Age
30
XP
2,718
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,718
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,718
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
227
Trophies
1
XP
2,165
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,748
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,748
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,748
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
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, cancel your subscription
  • K3Nv2 @ K3Nv2:
    I gotta call 1800genxyzwoke if I want to cancel anything
    +2
  • K3Nv2 @ K3Nv2:
    Why's everyone on a creatine craze I keep randomly hearing about it
  • A @ ATEMVEGETA:
    hello! Has anyone tried to move Pokemon save files played in CFW/Emulator to OFW successfully?
  • BigOnYa @ BigOnYa:
    You will get banned.
  • A @ ATEMVEGETA:
    @BigOnYa Did it happen to you or someone you know? Which is the dangerous part in this procedure?
  • The Real Jdbye @ The Real Jdbye:
    @ATEMVEGETA no, i just traded my pokemon over by trading it to a friend locally on cfw and trading it back on ofw
  • A @ ATEMVEGETA:
    @The Real Jdbye, You traded just a Pokemon or transfered the save data?
  • K3Nv2 @ K3Nv2:
    Gotta transfer them all!
  • The Real Jdbye @ The Real Jdbye:
    @ATEMVEGETA i traded all the pokemon
  • BigOnYa @ BigOnYa:
    On the Switch forums I've seen people claim they were banned for using saves from emulator, on Ofw. But I don't play that ****
    +1
  • K3Nv2 @ K3Nv2:
    I sold all my Pokémon to Arabic princes
    +1
  • A @ ATEMVEGETA:
    @BigOnYa, Interesting! Can you show me some of those posts plz?
  • BigOnYa @ BigOnYa:
    No you go find them, use the search, or ask in the Switch noob forums.
    +1
  • Larsenv @ Larsenv:
    @Xdqwerty I'm not sure if there was a 13 or over rule back in 2013
    +1
  • BigOnYa @ BigOnYa:
    @ATEMVEGETA here's a few comments, but know ive seen more in the threads. Post in thread 'Pokemon Scarlet save file' https://gbatemp.net/threads/pokemon-scarlet-save-file.646217/post-10403348
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, im still afraid of coming out irl tho
  • A @ ATEMVEGETA:
    @BigOnYa,
    Well, I had read that thread already, it does not mention moving saves from Emulator to OFW. Also I am not planning to edit/modify a save file. Just play a save file on an emulator, and then move it to OFW and play it on my switch.
  • BigOnYa @ BigOnYa:
    I wouldn't risk it, but do what you want. A console ban is loss of all online play, of any games.
  • K3Nv2 @ K3Nv2:
    Not my online Mario kart races!
    +2
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, I try to do a gdevelop event to make an enemy fire bullets if it is on screen and its in colision with a platform, but it doesnt work (and yes i downloaded the "is on screen" condition extension)
    Xdqwerty @ Xdqwerty: @BigOnYa, I try to do a gdevelop event to make an enemy fire bullets if it is on screen and its...