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;
}