Created cursor for viewer
This commit is contained in:
parent
ab35b7ec24
commit
b9a6338fa8
1 changed files with 7 additions and 0 deletions
|
@ -223,13 +223,20 @@ void ui_p_view(Canvas* canvas, UIManager* manager){
|
|||
}
|
||||
}
|
||||
|
||||
// Creating dot
|
||||
canvas_draw_box(canvas, 10, 18 + (manager->selection * 10), 2, 2);
|
||||
|
||||
if (manager->p_ready) {
|
||||
manager->p_ready = false;
|
||||
|
||||
switch (manager->input) {
|
||||
case Up:
|
||||
manager->selection--;
|
||||
if(manager->selection < 0) {manager->selection = 0;}
|
||||
break;
|
||||
case Down:
|
||||
manager->selection++;
|
||||
if(manager->selection > 3) {manager->selection = 3;}
|
||||
break;
|
||||
case Left:
|
||||
manager_switchpage(manager->manager, -1);
|
||||
|
|
Loading…
Reference in a new issue