Error with swkbd
Posted: Sat May 29, 2021 3:35 am
I have an error when linking a library made with swkbd
Code:
I have attached an output image below
Code:
Code: Select all
const char *CMenuField::Key( int key, int down )
if ( key == K_ENTER )
{
Result rc=0;
char con_input[50] = {0};
SwkbdConfig kbd;
rc = swkbdCreate(&kbd, 0);
if (R_SUCCEEDED(rc)) {
swkbdConfigMakePresetDefault(&kbd);
rc = swkbdShow(&kbd, con_input, sizeof(con_input));
if (R_SUCCEEDED(rc)) {
Q_strncpy(szBuffer, con_input, sizeof(szBuffer));
}
swkbdClose(&kbd);
}
}
SetCvarString( szBuffer );
_Event( QM_CHANGED );
return uiSoundNull;
}