MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / OnscreenTextChanged

Function OnscreenTextChanged

src/switch/Window_Switch.c:354–360  ·  view source on GitHub ↗

#######################################################################################################################* *------------------------------------------------------Soft keyboard------------------------------------------------------* *#########################################################################################################################*/

Source from the content-addressed store, hash-verified

352*------------------------------------------------------Soft keyboard------------------------------------------------------*
353*#########################################################################################################################*/
354static void OnscreenTextChanged(const char* text) {
355 char tmpBuffer[NATIVE_STR_LEN];
356 cc_string tmp = String_FromArray(tmpBuffer);
357 String_AppendUtf8(&tmp, text, String_Length(text));
358
359 Event_RaiseString(&InputEvents.TextChanged, &tmp);
360}
361
362void OnscreenKeyboard_Open(struct OpenKeyboardArgs* args) {
363 const char* btnText = args->type & KEYBOARD_FLAG_SEND ? "Send" : "Enter";

Callers 1

OnscreenKeyboard_OpenFunction · 0.85

Calls 3

String_AppendUtf8Function · 0.85
String_LengthFunction · 0.85
Event_RaiseStringFunction · 0.85

Tested by

no test coverage detected