tuxanci2-engine
Game engine for tuxanci2
Log | Files | Refs | README | LICENSE
commit 2eb259ee806e36af9112378351ec311c4af7a90b
parent 923ad7c80529690e659f8f2305519345a213c774
Author: GNUfault <connor@gnufault.org>
Date:   Fri, 30 Oct 2026 16:45:35 +0000

Make the buttons variable in the ta_buttons_list struct a dynamic array

Diffstat:
Mgame/src/ta_button.h | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/game/src/ta_button.h b/game/src/ta_button.h @@ -3,8 +3,6 @@ #include "tuxanci2.h" -#define TA_BUTTON_MAX 8 - typedef void (*ta_button_callback)(void); typedef struct { @@ -17,7 +15,9 @@ typedef struct { } ta_button; typedef struct { - ta_button buttons[TA_BUTTON_MAX]; + ta_button *buttons; + ta_size buttons_size; + ta_size buttons_capacity; ta_size size; ta_size selected; ta_bool up_was_down;