mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 01:38:35 -07:00
Desktop settings merge and refactor, keybinds improvements
- Keybinds in own code helper files - Keybinds as flipper format, loaded only when ran, no limit on length - Migrate from old keybinds - Merge desktop settings refactors after LFS removal PR - Statusbar clock setting in desktop settings like OFW - Hand orient setting in system settings like OFW
This commit is contained in:
27
applications/services/desktop/desktop_keybinds.h
Normal file
27
applications/services/desktop/desktop_keybinds.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#pragma once
|
||||
|
||||
#include <furi/core/string.h>
|
||||
|
||||
#include "desktop.h"
|
||||
|
||||
typedef enum {
|
||||
DesktopKeybindTypePress,
|
||||
DesktopKeybindTypeHold,
|
||||
DesktopKeybindTypeMAX,
|
||||
} DesktopKeybindType;
|
||||
|
||||
typedef enum {
|
||||
DesktopKeybindKeyUp,
|
||||
DesktopKeybindKeyDown,
|
||||
DesktopKeybindKeyRight,
|
||||
DesktopKeybindKeyLeft,
|
||||
DesktopKeybindKeyMAX,
|
||||
} DesktopKeybindKey;
|
||||
|
||||
typedef FuriString* DesktopKeybinds[DesktopKeybindTypeMAX][DesktopKeybindKeyMAX];
|
||||
|
||||
void desktop_keybinds_migrate(Desktop* desktop);
|
||||
void desktop_keybinds_load(Desktop* desktop, DesktopKeybinds* keybinds);
|
||||
void desktop_keybinds_save(Desktop* desktop, const DesktopKeybinds* keybinds);
|
||||
void desktop_keybinds_free(DesktopKeybinds* keybinds);
|
||||
void desktop_run_keybind(Desktop* desktop, InputType _type, InputKey _key);
|
||||
Reference in New Issue
Block a user