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