mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-27 03:49:58 -07:00
29 lines
799 B
C
29 lines
799 B
C
#pragma once
|
|
|
|
#include <furi/core/string.h>
|
|
#include <input/input.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);
|