mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-12 20:48:35 -07:00
fbt format
This commit is contained in:
@@ -84,7 +84,8 @@ bool desktop_main_input_callback(InputEvent* event, void* context) {
|
||||
} else if(event->key == InputKeyDown) {
|
||||
main_view->callback(DesktopMainEventOpenFavoriteSecondary, main_view->context);
|
||||
} else if(event->key == InputKeyLeft) {
|
||||
main_view->callback(DesktopMainEventOpenSubRemote, main_view->context); // OPENS SUBGHZ REMOTE
|
||||
main_view->callback(
|
||||
DesktopMainEventOpenSubRemote, main_view->context); // OPENS SUBGHZ REMOTE
|
||||
}
|
||||
}
|
||||
} else if(main_view->is_gamemode == true) {
|
||||
@@ -105,9 +106,11 @@ bool desktop_main_input_callback(InputEvent* event, void* context) {
|
||||
} else if(event->key == InputKeyUp) {
|
||||
main_view->callback(DesktopMainEventOpenDOOM, main_view->context); // OPENS DOOM
|
||||
} else if(event->key == InputKeyDown) {
|
||||
main_view->callback(DesktopMainEventOpenZombiez, main_view->context); // OPENS Zombiez
|
||||
main_view->callback(
|
||||
DesktopMainEventOpenZombiez, main_view->context); // OPENS Zombiez
|
||||
} else if(event->key == InputKeyLeft) {
|
||||
main_view->callback(DesktopMainEventOpenTetris, main_view->context); // OPENS TETRIS
|
||||
main_view->callback(
|
||||
DesktopMainEventOpenTetris, main_view->context); // OPENS TETRIS
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@@ -127,9 +130,11 @@ bool desktop_main_input_callback(InputEvent* event, void* context) {
|
||||
} else if(event->key == InputKeyUp) {
|
||||
main_view->callback(DesktopMainEventOpenSnake, main_view->context); // OPENS SNAKE
|
||||
} else if(event->key == InputKeyDown) {
|
||||
main_view->callback(DesktopMainEventOpenZombiez, main_view->context); // OPENS Zombiez
|
||||
main_view->callback(
|
||||
DesktopMainEventOpenZombiez, main_view->context); // OPENS Zombiez
|
||||
} else if(event->key == InputKeyLeft) {
|
||||
main_view->callback(DesktopMainEventOpenTetris, main_view->context); // OPENS TETRIS
|
||||
main_view->callback(
|
||||
DesktopMainEventOpenTetris, main_view->context); // OPENS TETRIS
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ static uint8_t dolphin_deed_limits[] = {
|
||||
100, // DolphinAppIr
|
||||
100, // DolphinAppIbutton
|
||||
100, // DolphinAppBadusb
|
||||
// 100, // DolphinAppU2f
|
||||
// 100, // DolphinAppU2f
|
||||
// 100, // DolphinAppGpio
|
||||
100, // DolphinAppPlugin
|
||||
};
|
||||
|
||||
@@ -113,7 +113,6 @@ static void gui_redraw_status_bar(Gui* gui, bool need_attention) {
|
||||
2,
|
||||
canvas_width(gui->canvas) - 1,
|
||||
canvas_height(gui->canvas) - 4);
|
||||
|
||||
}
|
||||
|
||||
// Left side
|
||||
@@ -128,7 +127,7 @@ static void gui_redraw_status_bar(Gui* gui, bool need_attention) {
|
||||
canvas_frame_set(
|
||||
gui->canvas,
|
||||
x - 1,
|
||||
// SASQUACH SAYS : This is the white box behind the left bar, move it 64 to hide it
|
||||
// SASQUACH SAYS : This is the white box behind the left bar, move it 64 to hide it
|
||||
GUI_STATUS_BAR_Y + 64,
|
||||
width + 2,
|
||||
GUI_STATUS_BAR_WORKAREA_HEIGHT + 2);
|
||||
@@ -138,8 +137,12 @@ static void gui_redraw_status_bar(Gui* gui, bool need_attention) {
|
||||
canvas_set_color(gui->canvas, ColorBlack);
|
||||
// ViewPort draw
|
||||
canvas_frame_set(
|
||||
// SASQUACH SAYS : This is where you move the Icons for the left bar, 64 to hide it
|
||||
gui->canvas, x, GUI_STATUS_BAR_Y + 64, width, GUI_STATUS_BAR_WORKAREA_HEIGHT);
|
||||
// SASQUACH SAYS : This is where you move the Icons for the left bar, 64 to hide it
|
||||
gui->canvas,
|
||||
x,
|
||||
GUI_STATUS_BAR_Y + 64,
|
||||
width,
|
||||
GUI_STATUS_BAR_WORKAREA_HEIGHT);
|
||||
view_port_draw(view_port, gui->canvas);
|
||||
// Recalculate next position
|
||||
left_used += (width + 2);
|
||||
|
||||
Reference in New Issue
Block a user