mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-14 12:58:36 -07:00
Temporarily backport app updates from apps repo
This commit is contained in:
@@ -6,6 +6,8 @@ App(
|
||||
cdefines=["APP_TAMA_P1"],
|
||||
requires=["gui", "storage"],
|
||||
stack_size=2 * 1024,
|
||||
fap_icon="tamaIcon.png",
|
||||
order=215,
|
||||
fap_file_assets="files"
|
||||
fap_icon="tamaIcon4.png",
|
||||
fap_category="Games",
|
||||
)
|
||||
|
||||
BIN
applications/external/tama_p1/files/rom.bin
vendored
Normal file
BIN
applications/external/tama_p1/files/rom.bin
vendored
Normal file
Binary file not shown.
2
applications/external/tama_p1/tama.h
vendored
2
applications/external/tama_p1/tama.h
vendored
@@ -4,7 +4,7 @@
|
||||
#include "tamalib/tamalib.h"
|
||||
|
||||
#define TAG "TamaP1"
|
||||
#define TAMA_ROM_PATH APP_DATA_PATH("rom.bin")
|
||||
#define TAMA_ROM_PATH APP_ASSETS_PATH("rom.bin")
|
||||
#define TAMA_SCREEN_SCALE_FACTOR 2
|
||||
#define TAMA_LCD_ICON_SIZE 14
|
||||
#define TAMA_LCD_ICON_MARGIN 1
|
||||
|
||||
BIN
applications/external/tama_p1/tamaIcon.png
vendored
BIN
applications/external/tama_p1/tamaIcon.png
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.9 KiB |
BIN
applications/external/tama_p1/tamaIcon1.png
vendored
Normal file
BIN
applications/external/tama_p1/tamaIcon1.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
BIN
applications/external/tama_p1/tamaIcon2.png
vendored
Normal file
BIN
applications/external/tama_p1/tamaIcon2.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
BIN
applications/external/tama_p1/tamaIcon3.png
vendored
Normal file
BIN
applications/external/tama_p1/tamaIcon3.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
BIN
applications/external/tama_p1/tamaIcon4.png
vendored
Normal file
BIN
applications/external/tama_p1/tamaIcon4.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
9
applications/external/tama_p1/tama_p1.c
vendored
9
applications/external/tama_p1/tama_p1.c
vendored
@@ -8,7 +8,6 @@
|
||||
#include "tamalib/tamalib.h"
|
||||
#include "tama.h"
|
||||
#include "compiled/assets_icons.h"
|
||||
#include <assets_icons.h>
|
||||
|
||||
TamaApp* g_ctx;
|
||||
FuriMutex* g_state_mutex;
|
||||
@@ -837,9 +836,9 @@ int32_t tama_p1_app(void* p) {
|
||||
btn_state_t tama_btn_state = 0; // BTN_STATE_RELEASED is 0
|
||||
|
||||
if(in_menu) {
|
||||
// if(menu_cursor == 2 &&
|
||||
// (event.input.key == InputKeyUp || event.input.key == InputKeyDown)) {
|
||||
// tama_btn_state = BTN_STATE_RELEASED;
|
||||
// if(menu_cursor >= 2 &&
|
||||
// (event.input.key == InputKeyUp || event.input.key == InputKeyDown)) {
|
||||
// tama_btn_state = BTN_STATE_RELEASED;
|
||||
// }
|
||||
if(event.input.key == InputKeyBack) {
|
||||
tama_btn_state = BTN_STATE_RELEASED;
|
||||
@@ -1135,7 +1134,7 @@ int32_t tama_p1_app(void* p) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else { // out of menu // TODO: clean up code -.-
|
||||
} else { // out of menu
|
||||
if(event.input.key == InputKeyBack && event.input.type == InputTypeLong) {
|
||||
if(speed != 1) {
|
||||
speed = 1;
|
||||
|
||||
Reference in New Issue
Block a user