mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-07-04 22:33:36 -07:00
Battery info check inputs for battery+about mode
This commit is contained in:
@@ -151,7 +151,10 @@ static bool battery_info_input_callback(InputEvent* event, void* context) {
|
||||
|
||||
BatteryInfo* battery_info = context;
|
||||
|
||||
if(event->type == InputTypeShort) {
|
||||
bool about_battery;
|
||||
with_view_model(
|
||||
battery_info->view, BatteryInfoModel * model, { about_battery = model->alt; }, false);
|
||||
if(about_battery && event->type == InputTypeShort) {
|
||||
if(event->key == InputKeyLeft) {
|
||||
event->key = InputKeyBack;
|
||||
} else if(event->key == InputKeyRight) {
|
||||
|
||||
Reference in New Issue
Block a user