Function API
menu_addItem
Code:
void menu_addItem(char* item_text)
Description
Sets a new menu item.
Parameters
(char) item_text: Text to display.
menu_addItemNumber
Code:
void menu_addItemNumber(uint item_num, uint item_max)
Description
Adds a number selector to the last menu item set.
Parameters
(uint) item_num: Default number to start at.
(uint) item_max: Maximum number it can reach before it gets set to 1.
menu_addItemFloat
Code:
void menu_addItemFloat(float item_float, uint item_max)
Description
Adds a number selector to the last menu item set.
Parameters
(float) item_float: Default float to start at.
(uint) item_max: Maximum float it can reach before it gets set to 1.
menu_addItemBool
Code:
void menu_addItemBool(bool item_bool)
Description
Adds a On/Off toggle to the last menu item set.
Parameters
(bool) item_bool: Default value.
menu_addItemHash
Code:
void menu_addItemHash(char* item_text, uint item_hash)
Description
Sets a new menu item with a hash.
Parameters
(char) item_text: Text to display.
(uint) item_hash: Hash to store with the menu item.
menu_addItemGXTHash
Code:
void menu_addItemGXTHash(uint item_gxt_hash)
Description
Sets a new menu item with a GXT.
Parameters
(uint) item_gxt_hash: GXT.
menu_addAction
Code:
void menu_addAction(void)
Description
Adds the action flag to the last set item.
Parameters
None.
menu_clean
Code:
void menu_clean(void)
Description
Wipes the menu struct.
Parameters
None.
menu_draw
Code:
void menu_draw(void)
Description
Draws the menu on screen.
Parameters
None.
menu_up_pressed
Code:
bool menu_up_pressed(bool counter)
Description
Returns true when the up button is pressed.
Parameters
(bool) counter: Choose if to count this press towards the hold counter.
menu_down_pressed
Code:
bool menu_down_pressed(bool counter)
Description
Returns true when the down button is pressed.
Parameters
(bool) counter: Choose if to count this press towards the hold counter.
menu_left_pressed
Code:
bool menu_left_pressed(bool counter)
Description
Returns true when the left button is pressed.
Parameters
(bool) counter: Choose if to count this press towards the hold counter.
menu_right_pressed
Code:
bool menu_right_pressed(bool counter)
Description
Returns true when the right button is pressed.
Parameters
(bool) counter: Choose if to count this press towards the hold counter.
menu_forward_pressed
Code:
bool menu_forward_pressed()
Description
Returns true when the forward button is pressed.
Parameters
None.
menu_back_pressed
Code:
bool menu_back_pressed()
Description
Returns true when the back button is pressed.
Parameters
None.