1. Nutez

    Nutez Assimilator of Lumas
    Member

    Joined:
    Jan 2, 2018
    Messages:
    122
    Country:
    United Kingdom
    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.
     
    NanashiFinal13 likes this.
  2. Kartik

    OP Kartik GBAtemp Advanced Fan
    Member

    Joined:
    Jun 6, 2015
    Messages:
    574
    Country:
    India
    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.
     
    Nutez and NanashiFinal13 like this.
  3. Arcano_cz

    Arcano_cz Member
    Newcomer

    Joined:
    Jul 23, 2020
    Messages:
    16
    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?
     
  4. Kartik

    OP Kartik GBAtemp Advanced Fan
    Member

    Joined:
    Jun 6, 2015
    Messages:
    574
    Country:
    India
    I can confirm that zl zr do behave weirdly in home menu. I think i can fix this though, let's see.

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

    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.
     
    Arcano_cz likes this.
  5. NanashiFinal13

    NanashiFinal13 GBAtemp Fan
    Member

    Joined:
    May 1, 2017
    Messages:
    345
    Country:
    Argentina
    Silly me, i forgot to reactivate Luma game patching, now works great with 3gx loader!
     
    Arcano_cz likes this.
  6. Nutez

    Nutez Assimilator of Lumas
    Member

    Joined:
    Jan 2, 2018
    Messages:
    122
    Country:
    United Kingdom
    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.
     
    Feffe and Kartik like this.
  7. Nutez

    Nutez Assimilator of Lumas
    Member

    Joined:
    Jan 2, 2018
    Messages:
    122
    Country:
    United Kingdom
    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.
     
  8. Kartik

    OP Kartik GBAtemp Advanced Fan
    Member

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

    Attached Files:

  9. Kartik

    OP Kartik GBAtemp Advanced Fan
    Member

    Joined:
    Jun 6, 2015
    Messages:
    574
    Country:
    India
    for some of you, the previous version might have crashed. Please try this out.
     

    Attached Files:

    Arcano_cz, ber71, Nutez and 1 other person like this.
  10. NanashiFinal13

    NanashiFinal13 GBAtemp Fan
    Member

    Joined:
    May 1, 2017
    Messages:
    345
    Country:
    Argentina
    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!
     
    Nutez and BETA215 like this.
  11. NanashiFinal13

    NanashiFinal13 GBAtemp Fan
    Member

    Joined:
    May 1, 2017
    Messages:
    345
    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, Mar 25, 2021
    Nutez likes this.
  12. elrulo82

    elrulo82 Newbie
    Newcomer

    Joined:
    Aug 6, 2020
    Messages:
    4
    Country:
    Argentina
    I tried mapping ZR in SFIV 3D and it doesn't work :sad:
     
  13. NanashiFinal13

    NanashiFinal13 GBAtemp Fan
    Member

    Joined:
    May 1, 2017
    Messages:
    345
    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).
     
  14. Feffe

    Feffe GBAtemp Regular
    Member

    Joined:
    Oct 12, 2008
    Messages:
    195
    Country:
    Italy
    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!
     
    Last edited by Feffe, Mar 26, 2021
  15. Kartik

    OP Kartik GBAtemp Advanced Fan
    Member

    Joined:
    Jun 6, 2015
    Messages:
    574
    Country:
    India
    Do any keys work at all in these games or is it zl zr only which don't work?
     
  16. Kartik

    OP Kartik GBAtemp Advanced Fan
    Member

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

    NanashiFinal13 GBAtemp Fan
    Member

    Joined:
    May 1, 2017
    Messages:
    345
    Country:
    Argentina
    Other keys works fine, only ZL/ZR/C-Nub wont work on these games.
     
  18. holocr0n

    holocr0n Newbie
    Newcomer

    Joined:
    Mar 26, 2021
    Messages:
    2
    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"}
    ]
    }
     
  19. Kartik

    OP Kartik GBAtemp Advanced Fan
    Member

    Joined:
    Jun 6, 2015
    Messages:
    574
    Country:
    India
    Do the keys other than the circlepad work fine?
     
  20. holocr0n

    holocr0n Newbie
    Newcomer

    Joined:
    Mar 26, 2021
    Messages:
    2
    Country:
    United States
    No. dpad up, L + R, and select have also been remapped to other random buttons.
     
  21. Kartik

    OP Kartik GBAtemp Advanced Fan
    Member

    Joined:
    Jun 6, 2015
    Messages:
    574
    Country:
    India
    Try doing a simple remapping such as X<>Y and check if that works.
     
Draft saved Draft deleted
Loading...

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