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
|
// 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(
|
||||||
|
|
Loading…
Reference in a new issue