Trying to reduce memory footprint.
This commit is contained in:
@ -20,18 +20,18 @@
|
||||
#define MENU_HOLD_DURATION 1.0
|
||||
|
||||
typedef struct {
|
||||
int32_t x;
|
||||
int32_t y;
|
||||
int32_t width;
|
||||
int32_t height;
|
||||
uint8_t x;
|
||||
uint8_t y;
|
||||
uint8_t width;
|
||||
uint8_t height;
|
||||
} menuitem_t;
|
||||
|
||||
typedef struct {
|
||||
menuitem_t items[MENU_ITEMS_MAX];
|
||||
int32_t itemCount;
|
||||
int32_t selected;
|
||||
int32_t cursorX;
|
||||
int32_t cursorY;
|
||||
uint8_t itemCount;
|
||||
uint8_t selected;
|
||||
uint8_t cursorX;
|
||||
uint8_t cursorY;
|
||||
|
||||
// bool holdAllow;
|
||||
// float holdLast;
|
||||
|
Reference in New Issue
Block a user