mirror of
https://codeberg.org/mclemens/ubitxv6.git
synced 2024-11-09 13:27:34 -05:00
Add definition for movePuck
This commit is contained in:
parent
8faa9c58c7
commit
5fb47187a6
13
menu.cpp
13
menu.cpp
@ -1,4 +1,5 @@
|
|||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
|
#include "nano_gui.h"
|
||||||
|
|
||||||
bool runSubmenu(Menu_t* const current_menu,
|
bool runSubmenu(Menu_t* const current_menu,
|
||||||
void(*const redraw_callback)(),
|
void(*const redraw_callback)(),
|
||||||
@ -28,3 +29,15 @@ bool runSubmenu(Menu_t* const current_menu,
|
|||||||
}//end submenu
|
}//end submenu
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void movePuck(const Button *const b_old,
|
||||||
|
const Button *const b_new)
|
||||||
|
{
|
||||||
|
if(nullptr != b_old){
|
||||||
|
displayRect(b_old->x,b_old->y,b_old->w,b_old->h,COLOR_INACTIVE_BORDER);
|
||||||
|
}
|
||||||
|
if(nullptr != b_new){
|
||||||
|
displayRect(b_new->x,b_new->y,b_new->w,b_new->h,COLOR_ACTIVE_BORDER);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user