From c2ea095659dea04663b83fe5313173f209c9bb0b Mon Sep 17 00:00:00 2001 From: iamcheeseman Date: Sat, 23 May 2026 10:55:01 -0400 Subject: tyui text input boxes --- teensy/teensy_ui.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'teensy/teensy_ui.h') diff --git a/teensy/teensy_ui.h b/teensy/teensy_ui.h index 1e97376..5ceda30 100644 --- a/teensy/teensy_ui.h +++ b/teensy/teensy_ui.h @@ -68,6 +68,11 @@ typedef struct { uint32_t flags; } tyui_Window_Conf; +typedef struct { + char *chars; + int max_len; +} tyui_Text_Input; + void tyui_init(const ty_Font *font); void tyui_deinit(void); @@ -96,6 +101,7 @@ void tyui_slider_ex( bool show_value, tyui_Align value_align ); +void tyui_text_input(tyui_Text_Input *input); // Draws all accumulated draw commands and initializes the next frame. void tyui_draw(void); -- cgit v1.3-2-g0d8e