This repository has been archived on 2026-04-25. You can view files and clone it, but cannot push or open issues or pull requests.
FlippyPass/project/flippypass.c

36 lines
680 B
C
Raw Normal View History

2024-08-11 21:23:09 -05:00
// Libraries
#include <furi.h>
2024-08-27 00:11:56 -05:00
2024-08-27 03:12:39 -05:00
#include "backend/ui.h"
2024-08-11 21:23:09 -05:00
// Entry Point
int32_t flippypass_app(void* p) {
// Not using P Parameter
UNUSED(p);
2024-08-26 04:20:00 -05:00
// Creating the UI struct
2024-08-27 22:33:59 -05:00
UIManager* ui = ui_create();
2024-08-26 04:20:00 -05:00
// Drawwing the UI
while(ui->running) {
2024-08-26 23:48:45 -05:00
// Do we want to quit?
2024-08-27 00:11:56 -05:00
if (ui->press_used
&& ui->input == Back) {
if(ui->page == 0) {
ui->running = false;
} else {
ui->press_used = false;
ui->page = 0;
}
2024-08-26 23:37:32 -05:00
}
2024-08-26 04:20:00 -05:00
// Updating canvas
view_port_update(ui->canvas);
}
2024-08-26 23:37:32 -05:00
// Cleanup
ui_delete(ui);
2024-08-11 21:23:09 -05:00
// Exit App
return 0;
}