Homebrew made from scratch, N3DS can't detect ZL,ZR,Cstick

Discussion in '3DS - Homebrew Development and Emulators' started by erinnnnnn, Apr 23, 2015.

  1. erinnnnnn
    OP

    erinnnnnn Member

    Newcomer
    18
    1
    Apr 18, 2015
    France
    Hello,
    I made an simple homebrew which show text on every input for debuging.
    I modded a lot this template.
    Everything work, except for New 3DS buttons: ZL, ZR, and Cstick.
    I use this in my code for manage each buttons (exemple for CStick up of New 3DS) :

    Code:
    //New3DS
    if (kDown & KEY_CSTICK_UP)
        printf(RED "CStickUp\n" RESET);
    I pressed ZR, ZL, Cstick and nothing happened. Result here (with CRight meaning CPad right.) :
    Warning: Spoilers inside!

    I don't use Ninjhax as my emuNAND is on 9.5, but I built my own 3ds rom with makerom and test it with Gateway.
    Code:
    ./makerom -f cci -o built.3ds -rsf gw_workaround.rsf -target d -exefslogo -elf test.elf -icon icon.bin -banner banner.bin
    What can be wrong here? Sorry, I'm new in 3DS developpement.
    Thank in advance.
     
  2. Steveice10

    Steveice10 GBAtemp Maniac

    Member
    1,103
    1,661
    Jul 19, 2009
    United States
    Some issues with N3DS controls have been coming up recently for homebrew ran as a CIA/3DS. It's likely due to service permissions in the exheader or something, although my attempt at adding ir:rst (which handles the new controls) access to my apps reportedly didn't work, and it also broke the app for users on firmwares without the service (<8.0)
     
  3. erinnnnnn
    OP

    erinnnnnn Member

    Newcomer
    18
    1
    Apr 18, 2015
    France
    Thanks, do you think it could be fix someday?
     
  4. gamesquest1

    gamesquest1 Nabnut

    Member
    GBAtemp Patron
    gamesquest1 is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    14,161
    9,523
    Sep 23, 2013
    want me to test it with ninjhax?
     
  5. erinnnnnn
    OP

    erinnnnnn Member

    Newcomer
    18
    1
    Apr 18, 2015
    France
  6. Technicmaster0

    Technicmaster0 GBAtemp Psycho!

    Member
    3,283
    680
    Oct 22, 2011
    Gambia, The
    It works without problems (but ZR, ZL etc. only work one time after entering HBMenu; you have to reboot the 3ds to use them after exiting this app once).
     
  7. erinnnnnn
    OP

    erinnnnnn Member

    Newcomer
    18
    1
    Apr 18, 2015
    France

    Ok thanks so much, it works as excepted! I guess this thread should be close.