Question Software keyboard example failing

Discussion in 'Switch - Emulation, Homebrew & Software Projects' started by gking53, Jan 10, 2019 at 10:42 PM.

  1. gking53
    OP

    gking53 Newbie

    Newcomer
    2
    Jul 10, 2018
    Canada
    Was looking at the examples provided by libnx today. Went to try the software-keyboard one which results in an error code being displayed (0x5d95) when the swkbdShow function returns. I assume this is a failure code, yet I cannot find the resulting error in any libnx documentation. Currently on 6.2, just wondering if anyone has gotten this to work in the past or currently, would be a nice tool to have for user input!
     
  2. JK_

    JK_ GBAtemp Fan

    Member
    7
    Sep 4, 2015
    United States
    Add this to the code before main():

    Code:
    void userAppInit(void)
    {
       void *addr = NULL;
       svcSetHeapSize(&addr, 0x4000000);
    }
    
    I'm assuming yellows8's setup allocates more for him. He might not even know it's needed for the distros flying around. Just a guess though.
     
  3. gking53
    OP

    gking53 Newbie

    Newcomer
    2
    Jul 10, 2018
    Canada
    Yep that worked perfectly! Thanks a ton! Still have to read up on how all of these services and applets work sometime :D
     
Loading...