Maximum string length while typing.

This commit is contained in:
Maddox Werts 2024-09-08 21:45:33 -04:00
parent 3ce049aee1
commit 17fe106e2f

View file

@ -1,6 +1,9 @@
// Header
#include "type.h"
// Constants
#define KEYBOARD_STR_LEN 64
// Functions
void FP_Scene_Callback_Type(void* context) {
// Setting context
@ -25,7 +28,7 @@ void FP_Scene_Enter_Type(void* context) {
}
// Creating keyboard string
app->keyboard = malloc(sizeof(char*));
app->keyboard = malloc(sizeof(char*) * KEYBOARD_STR_LEN);
// Setting stuff
text_input_set_result_callback(