Homebrew Question Software keyboard example failing

gking53

Member
OP
Newcomer
Joined
Jul 10, 2018
Messages
7
Trophies
0
Age
25
XP
293
Country
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!
 

JK_

Well-Known Member
Member
Joined
Sep 4, 2015
Messages
694
Trophies
1
XP
2,293
Country
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.
 
  • Like
Reactions: ELY_M

gking53

Member
OP
Newcomer
Joined
Jul 10, 2018
Messages
7
Trophies
0
Age
25
XP
293
Country
Canada
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.
Yep that worked perfectly! Thanks a ton! Still have to read up on how all of these services and applets work sometime :D
 
  • Like
Reactions: ELY_M

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    SylverReZ @ SylverReZ: @Psionic Roshambo, DO THE METH!!!