1. Kartik

    OP Kartik GBAtemp Advanced Fan
    Member

    Joined:
    Jun 6, 2015
    Messages:
    574
    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 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


    You can generate your rehid.json files using this site written by @mcaboosec
    @MarioKartFan wrote a nice and detailed step-by-step guide here, please follow it if you are looking for a more detailed explanation!


    Instructions:-


    This only works with vanilla luma as of v1.0, it will not work if you have the 3gx loader or some other variant of luma3ds!
    • 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.

    You can help me develop rehid by joining https://discord.gg/hyuvmb9 and helping me test it out!
     
    Last edited by Kartik, Apr 29, 2021
  2. BETA215

    BETA215 GBAtemp Regular
    Member

    Joined:
    Dec 30, 2014
    Messages:
    121
    Country:
    Argentina
    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
     
    Stealphie, Zurdonx, PZT and 1 other person like this.
  3. Kartik

    OP Kartik GBAtemp Advanced Fan
    Member

    Joined:
    Jun 6, 2015
    Messages:
    574
    Country:
    India
    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.
     
    Stealphie likes this.
  4. BETA215

    BETA215 GBAtemp Regular
    Member

    Joined:
    Dec 30, 2014
    Messages:
    121
    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)
     

    Attached Files:

  5. Kartik

    OP Kartik GBAtemp Advanced Fan
    Member

    Joined:
    Jun 6, 2015
    Messages:
    574
    Country:
    India
    Can you paste the contents of your rehid.json file
     
  6. BETA215

    BETA215 GBAtemp Regular
    Member

    Joined:
    Dec 30, 2014
    Messages:
    121
    Country:
    Argentina
    {
    "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"}
    ]
    }
     
  7. Kartik

    OP Kartik GBAtemp Advanced Fan
    Member

    Joined:
    Jun 6, 2015
    Messages:
    574
    Country:
    India
    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, Mar 22, 2021
  8. BETA215

    BETA215 GBAtemp Regular
    Member

    Joined:
    Dec 30, 2014
    Messages:
    121
    Country:
    Argentina
    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.
     

    Attached Files:

  9. Kartik

    OP Kartik GBAtemp Advanced Fan
    Member

    Joined:
    Jun 6, 2015
    Messages:
    574
    Country:
    India
    I got multiple people to test it again and no one seems to able to repro this issue.
     
  10. ber71

    ber71 GBAtemp Regular
    Member

    Joined:
    Apr 24, 2019
    Messages:
    118
    Country:
    Spain
    Great homebrew.
    Any chance getting this working in ds mode?
     
  11. Kartik

    OP Kartik GBAtemp Advanced Fan
    Member

    Joined:
    Jun 6, 2015
    Messages:
    574
    Country:
    India
    Nope, ds mode works differently.
     
  12. bob1212

    bob1212 GBAtemp Regular
    Member

    Joined:
    Nov 5, 2020
    Messages:
    101
    Country:
    United States
    So does this mean I can’t remap I think it was abxy to c stick for the ds call of duty games?
     
    Last edited by bob1212, Mar 23, 2021
  13. NanashiFinal13

    NanashiFinal13 GBAtemp Fan
    Member

    Joined:
    May 1, 2017
    Messages:
    345
    Country:
    Argentina
    Its possible to remap keys to the C-Stick/C-Nub?
     
  14. NanashiFinal13

    NanashiFinal13 GBAtemp Fan
    Member

    Joined:
    May 1, 2017
    Messages:
    345
    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.
     
  15. Kartik

    OP Kartik GBAtemp Advanced Fan
    Member

    Joined:
    Jun 6, 2015
    Messages:
    574
    Country:
    India
    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.

    — Posts automatically merged - Please don't double post! —

    Nope, ds games under twl mode.
     
    Nutez likes this.
  16. bob1212

    bob1212 GBAtemp Regular
    Member

    Joined:
    Nov 5, 2020
    Messages:
    101
    Country:
    United States
    A rehid.json? I’m afraid I’m not sure where that is exactly I don’t have one
     
  17. Kartik

    OP Kartik GBAtemp Advanced Fan
    Member

    Joined:
    Jun 6, 2015
    Messages:
    574
    Country:
    India
    I was asking @NanashiFinal13 for the rehid.json file and not you :P.
     
  18. NanashiFinal13

    NanashiFinal13 GBAtemp Fan
    Member

    Joined:
    May 1, 2017
    Messages:
    345
    Country:
    Argentina
    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?

    — Posts automatically merged - Please don't double post! —

    Also, can you make rehid compatible with 3gx loader luma or that is impossible?
     
  19. Kartik

    OP Kartik GBAtemp Advanced Fan
    Member

    Joined:
    Jun 6, 2015
    Messages:
    574
    Country:
    India
    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.
     

    Attached Files:

    Arcano_cz and NanashiFinal13 like this.
  20. NanashiFinal13

    NanashiFinal13 GBAtemp Fan
    Member

    Joined:
    May 1, 2017
    Messages:
    345
    Country:
    Argentina
    Still crashes with 3gx loader version. I just wandering if you can remap to the C-Stick because im curious, that's all :P
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - remapping, rewrite, module