Is there any way to remap 3DS buttons with A9LH?

Discussion in '3DS - Flashcards & Custom Firmwares' started by Wojton, Sep 20, 2016.

  1. Wojton
    OP

    Wojton GBAtemp Regular

    Member
    180
    66
    Mar 7, 2014
    Poland
    What the title says. My 3DS right shoulder button is broken, so I was wondering if there are any possible ways of remapping it to, say L+B buttons. On PSP this can be done with a CFW plugin, perhaps there is NTR plugin that could do that on 3DS? Any suggestions?
     


  2. HaouIngvalt

    HaouIngvalt Member

    Newcomer
    12
    10
    May 20, 2012
    Mombetsu
    It is indeed possible, just modify the data written in the Shared Memory (https://www.3dbrew.org/wiki/HID_Shared_Memory).

    Something similar is done in this software (in this specific file):

    https://github.com/Kazo/InputRedirection/blob/NTR-build/injector/source/injected.s

    Now, if anyone has done or intends to do it, is another story.

    You can always (for a while) use an external control (which is the original purpose of the software that I suggested the source).
    More info here >> https://gbatemp.net/threads/tutoria...ontroller-in-your-3ds-without-hardmod.435788/ <<.
     
  3. astronautlevel

    astronautlevel But he's a guy

    Member
    3,934
    4,673
    Jan 26, 2016
    United States
    That Nightly Siteā„¢
    No, but as you said it might be possible with NTR CFW (though nothing like this has made yet). There's a way to control your 3ds using your computer, so maybe that can work as an alternative.
     
  4. Wojton
    OP

    Wojton GBAtemp Regular

    Member
    180
    66
    Mar 7, 2014
    Poland
    Would it be difficult to make such plugin? Doesn't have to be anything too fancy - all I'd want is support of 2-button combinations for remap and ability to configure the remaps by editing a config file on SD Card.
     
    Last edited by Wojton, Sep 20, 2016
  5. szymon170

    szymon170 Pr0FessiuNal HelPeR wiTh HaxXX

    Member
    366
    108
    Jan 2, 2016
    Poland
    Where I live
    This is just changing from "Is there any way?" to "Will someone code this for me?". To answer your question - it should be possible. You can either code a plugin for NTR, code another homebrew application (or even CFW) or you can modify the data written to the shared memory.
     
  6. Wojton
    OP

    Wojton GBAtemp Regular

    Member
    180
    66
    Mar 7, 2014
    Poland
    Yeah, since I have no experience in coding 3DS applications, that's pretty much my question right now, and also: for how much?
     
    Last edited by Wojton, Sep 20, 2016
  7. dudemo

    dudemo GBAtemp Regular

    Member
    109
    31
    Sep 12, 2016
    United States
    PIxelville
    That depends on how much the developer is willing to ask for, how much your willing to pay, and how much you need this done.

    At some point, it's cheaper to just buy a new 3DS or look into the alternative methods that have been outlined.
     
  8. fikatr

    fikatr GBAtemp Advanced Fan

    Member
    880
    332
    Mar 29, 2016
    Turkey
    next to smea
    1. use your 3ds as a controller with a app that i dont remember

    2. use xbox360emulator then use your 3ds controller on your 3ds that controlling that controller

    3. remap buttons
     
  9. dudemo

    dudemo GBAtemp Regular

    Member
    109
    31
    Sep 12, 2016
    United States
    PIxelville
    Wait, what? I speak English secondary and that flew over my head.
     
  10. Wojton
    OP

    Wojton GBAtemp Regular

    Member
    180
    66
    Mar 7, 2014
    Poland
    To be honest, I don't really need this done, its just a minor annoyance. On the second thought, I don't think I care about missing shoulder button enough to pay for a software workaround (or at least to pay enough for someone who can actually do it to bother). The only reason why I've made this thread is because I can't physically replace the broken shoulder button - its connector is missing on the motherboard:
    Warning: Spoilers inside!

    So given how many NTR plugins are out there, I thought that surely, there has to be one that does that. It's kinda funny how we have a homebrew method of mapping 3DS buttons to external controller, but not to remap them on the system itself. I'll just use what we've got for now, hopefully, something like MacroFire for PSP will be available for 3DS eventually :)
     
    Last edited by Wojton, Sep 20, 2016
  11. dudemo

    dudemo GBAtemp Regular

    Member
    109
    31
    Sep 12, 2016
    United States
    PIxelville
    It may get made eventually. Developers get bored on current projects and a greater need for it to happen later down the road might just make it happen. I'm actually kind of shocked it hasn't happened already, really.
     
    Wojton likes this.
  12. LinkSoraZelda

    LinkSoraZelda GBAtemp Advanced Maniac

    Member
    1,970
    617
    Aug 12, 2015
    United States
    Land of the Rising Orange
    Use input redirection for NTR.
    It technically uses the computer for inputs, but you can then use the 3DS controller normally while pressing a key on your keyboard when you need R.
     
    Quantumcat, Wojton and Seriel like this.
  13. pelago

    pelago Member

    Member
    964
    46
    Feb 20, 2006
    I wonder if it's possible to solder a new connector on, or solder the switch straight onto the motherboard?

    Chop off the ribbon cable, solder very thin wires straight from switch to correct place on motherboard.
    [​IMG]
     
    Last edited by pelago, Sep 21, 2016
  14. Wojton
    OP

    Wojton GBAtemp Regular

    Member
    180
    66
    Mar 7, 2014
    Poland
    Yes, technically speaking, it is possible to solder a new connector (not the switch directly), but my manual skills are NOWHERE good enough to even attempt that (+ I don't even have the right soldering iron for that kind of job). If you take a closer look at the picture that I've posted, you'll notice my shabby job of soldering the charging port to the motherboard - and in that case, the contact points were way bigger and easier to access. An electronical engineer could probably do that with the right set of equipment, but I'd get charged more for that than a second-handed, old 3DS is worth.

    The reason why my 3DS shoulder button connector is missing is because after the shoulder button in my console started occasionally not responding (due to a broken ribbon), I've decided to replace it with the one I bought off eBay. The only problem with it was the ribbon plug was very tight in the socket (way tighter than the original plug), so when I've dissassembled my 3DS to hardmod it, the connector got ripped off - the ribbon cable was in tact, just missing the connector that you can see on the picture you've posted, which was still sitting in the socket. I've tried prying it off over and over, I even tried to stick it to a pin with a super glue in hope of pulling it out, but it only made things worse to the point, where even if I managed to get it out, the socket would be no longer usable, so I decided to remove it off the motherboard entirely. If anything can be learned from that, its to never buy 3rd party (chinese) "replacement" ribbon cables.
     
    Last edited by Wojton, Sep 21, 2016
  15. mcaboosec

    mcaboosec Member

    Newcomer
    33
    59
    Sep 15, 2009
    United States
    I actually found this thread while looking up to see if it was possible for other reasons. I played around with Kazo's InputRedirectionNTR code, and found out that it can be done, and actually got it to work with the combo you wanted (L+B = R). I've posted the CIA here, and the code is here if anyone else wants to look at it. My changes are in injector/source/injected.s.
     
  16. Wojton
    OP

    Wojton GBAtemp Regular

    Member
    180
    66
    Mar 7, 2014
    Poland
    Only now I've noticed this post, thank you so much, works like a charm, I'll look into the code with hope to learn how to make different remaps :)
     
    Last edited by Wojton, Oct 1, 2016
  17. Sizednochi

    Sizednochi GBAtemp Advanced Fan

    Member
    650
    406
    Dec 16, 2012
    Brazil
    Can you PLEASE do something like this, except mapping B to Y, and A to B? It'd be a godsend for virtual console games!

    — Posts automatically merged - Please don't double post! —
     
    Last edited by Sizednochi, Oct 9, 2016
    Pacheko17 likes this.
  18. mchew

    mchew Advanced Lurker

    Member
    146
    50
    Jul 23, 2004
    United States
  19. mcaboosec

    mcaboosec Member

    Newcomer
    33
    59
    Sep 15, 2009
    United States
    Just saw this. I'll get one put together. Been working on some other projects lately. To clarify, when you press Y you want B, and when you press B you want A?
     
    Last edited by mcaboosec, Oct 23, 2016
  20. Gizametalman

    Gizametalman GBAtemp Advanced Fan

    Member
    705
    272
    Dec 18, 2015
    Mexico
    D.F. - Zona Cero.
    Quick Fix: Put your lips on your shoulder button and BLOOOOOOOOOOOW as hard as you can.