I am trying to compile the software keyboard to use it in my homebrew, but when I am building it it says that there are many function undeclared.
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:5:8: error: unknown type name 'SwkbdCallbackResult'
static SwkbdCallbackResult MyCallback(void* user, const char** ppMessage, const char* text, size_t textlen)
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c: In function 'MyCallback':
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:10:10: error: 'SWKBD_CALLBACK_CONTINUE' undeclared (first use in this function)
return SWKBD_CALLBACK_CONTINUE;
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:10:10: note: each undeclared identifier is reported only once for each function it appears in
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:16:10: error: 'SWKBD_CALLBACK_CLOSE' undeclared (first use in this function)
return SWKBD_CALLBACK_CLOSE;
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:19:9: error: 'SWKBD_CALLBACK_OK' undeclared (first use in this function)
return SWKBD_CALLBACK_OK;
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c: In function 'main':
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:43:10: error: unknown type name 'SwkbdState'
static SwkbdState swkbd;
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:45:10: error: unknown type name 'SwkbdStatusData'
static SwkbdStatusData swkbdStatus;
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:46:10: error: unknown type name 'SwkbdLearningData'
static SwkbdLearningData swkbdLearning;
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:47:3: error: unknown type name 'SwkbdButton'
SwkbdButton button = SWKBD_BUTTON_NONE;
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:47:24: error: 'SWKBD_BUTTON_NONE' undeclared (first use in this function)
SwkbdButton button = SWKBD_BUTTON_NONE;
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:53:4: warning: implicit declaration of function 'swkbdInit' [-Wimplicit-function-declaration]
swkbdInit(&swkbd, SWKBD_TYPE_NORMAL, 3, -1);
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:53:22: error: 'SWKBD_TYPE_NORMAL' undeclared (first use in this function)
swkbdInit(&swkbd, SWKBD_TYPE_NORMAL, 3, -1);
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:54:4: warning: implicit declaration of function 'swkbdSetInitialText' [-Wimplicit-function-declaration]
swkbdSetInitialText(&swkbd, mybuf);
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:55:4: warning: implicit declaration of function 'swkbdSetHintText' [-Wimplicit-function-declaration]
swkbdSetHintText(&swkbd, "Please enter dank memes");
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:56:4: warning: implicit declaration of function 'swkbdSetButton' [-Wimplicit-function-declaration]
swkbdSetButton(&swkbd, SWKBD_BUTTON_LEFT, "Maybe Not", false);
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:56:27: error: 'SWKBD_BUTTON_LEFT' undeclared (first use in this function)
swkbdSetButton(&swkbd, SWKBD_BUTTON_LEFT, "Maybe Not", false);
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:57:27: error: 'SWKBD_BUTTON_MIDDLE' undeclared (first use in this function)
swkbdSetButton(&swkbd, SWKBD_BUTTON_MIDDLE, "~Middle~", true);
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:58:27: error: 'SWKBD_BUTTON_RIGHT' undeclared (first use in this function)
swkbdSetButton(&swkbd, SWKBD_BUTTON_RIGHT, "Do It", true);
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:59:4: warning: implicit declaration of function 'swkbdSetFeatures' [-Wimplicit-function-declaration]
swkbdSetFeatures(&swkbd, SWKBD_PREDICTIVE_INPUT);
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:59:29: error: 'SWKBD_PREDICTIVE_INPUT' undeclared (first use in this function)
swkbdSetFeatures(&swkbd, SWKBD_PREDICTIVE_INPUT);
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:60:4: error: unknown type name 'SwkbdDictWord'
SwkbdDictWord words[2];
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:61:4: warning: implicit declaration of function 'swkbdSetDictWord' [-Wimplicit-function-declaration]
swkbdSetDictWord(&words[0], "lenny", "( ͡° ͜ʖ ͡°)");
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:63:4: warning: implicit declaration of function 'swkbdSetDictionary' [-Wimplicit-function-declaration]
swkbdSetDictionary(&swkbd, words, sizeof(words)/sizeof(SwkbdDictWord));
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:63:59: error: 'SwkbdDictWord' undeclared (first use in this function)
swkbdSetDictionary(&swkbd, words, sizeof(words)/sizeof(SwkbdDictWord));
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:65:4: warning: implicit declaration of function 'swkbdSetStatusData' [-Wimplicit-function-declaration]
swkbdSetStatusData(&swkbd, &swkbdStatus, reload, true);
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:66:4: warning: implicit declaration of function 'swkbdSetLearningData' [-Wimplicit-function-declaration]
swkbdSetLearningData(&swkbd, &swkbdLearning, reload, true);
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:68:13: warning: implicit declaration of function 'swkbdInputText' [-Wimplicit-function-declaration]
button = swkbdInputText(&swkbd, mybuf, sizeof(mybuf));
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:74:22: error: 'SWKBD_TYPE_NUMPAD' undeclared (first use in this function)
swkbdInit(&swkbd, SWKBD_TYPE_NUMPAD, 1, 8);
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:75:4: warning: implicit declaration of function 'swkbdSetPasswordMode' [-Wimplicit-function-declaration]
swkbdSetPasswordMode(&swkbd, SWKBD_PASSWORD_HIDE_DELAY);
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:75:33: error: 'SWKBD_PASSWORD_HIDE_DELAY' undeclared (first use in this function)
swkbdSetPasswordMode(&swkbd, SWKBD_PASSWORD_HIDE_DELAY);
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:76:4: warning: implicit declaration of function 'swkbdSetValidation' [-Wimplicit-function-declaration]
swkbdSetValidation(&swkbd, SWKBD_ANYTHING, 0, 0);
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:76:31: error: 'SWKBD_ANYTHING' undeclared (first use in this function)
swkbdSetValidation(&swkbd, SWKBD_ANYTHING, 0, 0);
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:77:29: error: 'SWKBD_FIXED_WIDTH' undeclared (first use in this function)
swkbdSetFeatures(&swkbd, SWKBD_FIXED_WIDTH);
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:78:4: warning: implicit declaration of function 'swkbdSetNumpadKeys' [-Wimplicit-function-declaration]
swkbdSetNumpadKeys(&swkbd, L'ツ', L'益');
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:85:22: error: 'SWKBD_TYPE_WESTERN' undeclared (first use in this function)
swkbdInit(&swkbd, SWKBD_TYPE_WESTERN, 1, -1);
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:86:31: error: 'SWKBD_NOTEMPTY_NOTBLANK' undeclared (first use in this function)
swkbdSetValidation(&swkbd, SWKBD_NOTEMPTY_NOTBLANK, SWKBD_FILTER_DIGITS | SWKBD_FILTER_AT | SWKBD_FILTER_PERCENT | SWKBD_FILTER_BACKSLASH | SWKBD_FILTER_PROFANITY, 2);
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:86:56: error: 'SWKBD_FILTER_DIGITS' undeclared (first use in this function)
swkbdSetValidation(&swkbd, SWKBD_NOTEMPTY_NOTBLANK, SWKBD_FILTER_DIGITS | SWKBD_FILTER_AT | SWKBD_FILTER_PERCENT | SWKBD_FILTER_BACKSLASH | SWKBD_FILTER_PROFANITY, 2);
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:86:78: error: 'SWKBD_FILTER_AT' undeclared (first use in this function)
swkbdSetValidation(&swkbd, SWKBD_NOTEMPTY_NOTBLANK, SWKBD_FILTER_DIGITS | SWKBD_FILTER_AT | SWKBD_FILTER_PERCENT | SWKBD_FILTER_BACKSLASH | SWKBD_FILTER_PROFANITY, 2);
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:86:96: error: 'SWKBD_FILTER_PERCENT' undeclared (first use in this function)
swkbdSetValidation(&swkbd, SWKBD_NOTEMPTY_NOTBLANK, SWKBD_FILTER_DIGITS | SWKBD_FILTER_AT | SWKBD_FILTER_PERCENT | SWKBD_FILTER_BACKSLASH | SWKBD_FILTER_PROFANITY, 2);
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:86:119: error: 'SWKBD_FILTER_BACKSLASH' undeclared (first use in this function)
swkbdSetValidation(&swkbd, SWKBD_NOTEMPTY_NOTBLANK, SWKBD_FILTER_DIGITS | SWKBD_FILTER_AT | SWKBD_FILTER_PERCENT | SWKBD_FILTER_BACKSLASH | SWKBD_FILTER_PROFANITY, 2);
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:86:144: error: 'SWKBD_FILTER_PROFANITY' undeclared (first use in this function)
swkbdSetValidation(&swkbd, SWKBD_NOTEMPTY_NOTBLANK, SWKBD_FILTER_DIGITS | SWKBD_FILTER_AT | SWKBD_FILTER_PERCENT | SWKBD_FILTER_BACKSLASH | SWKBD_FILTER_PROFANITY, 2);
^
/Users/teun/Downloads/3ds-examples-masters/input/software-keyboard/source/main.c:87:29: error: 'SWKBD_MULTILINE' undeclared (first use in this function)
swkbdSetFeatures(&swkbd, SWKBD_MULTILINE);
Any way to fix this?
Hello,
I am trying to compile the software keyboard to use it in my homebrew, but when I am building it it says that there are many function undeclared.