Maximum string length while typing.
This commit is contained in:
parent
3ce049aee1
commit
17fe106e2f
1 changed files with 4 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue