17#ifndef BRICK_UI_SHORTCUTS_H
18#define BRICK_UI_SHORTCUTS_H
65 struct { uint8_t track; } mute;
66 struct { uint8_t
index; } track;
71 struct { uint16_t
mask; } seq_mask;
76#define UI_SHORTCUT_MAX_ACTIONS 6u
Contexte runtime partagé entre shortcuts/backend.
Definition ui_backend.h:116
Données associées à une action de shortcut.
Definition ui_shortcuts.h:62
ui_shortcut_action_type_t type
Definition ui_shortcuts.h:63
uint16_t mask
Definition ui_shortcuts.h:71
uint8_t index
Definition ui_shortcuts.h:66
bool long_press
Definition ui_shortcuts.h:69
Résultat produit par la couche de mapping.
Definition ui_shortcuts.h:81
uint8_t action_count
Definition ui_shortcuts.h:83
bool consumed
Definition ui_shortcuts.h:84
Pont neutre entre la couche UI (controller/model) et les couches basses (cart, UI interne,...
#define UI_SHORTCUT_MAX_ACTIONS
Definition ui_shortcuts.h:76
void ui_shortcut_map_reset(ui_mode_context_t *ctx)
Réinitialise le contexte runtime (alias de init).
Definition ui_shortcuts.c:366
void ui_shortcut_map_init(ui_mode_context_t *ctx)
Initialise le contexte runtime côté mapping.
Definition ui_shortcuts.c:338
ui_shortcut_map_result_t ui_shortcut_map_process(const ui_input_event_t *evt, ui_mode_context_t *ctx)
Map un évènement brut vers un ensemble d'actions.
Definition ui_shortcuts.c:371
ui_shortcut_action_type_t
Types d'actions générées par la couche de mapping.
Definition ui_shortcuts.h:32
@ UI_SHORTCUT_ACTION_SEQ_ENCODER_TOUCH
Definition ui_shortcuts.h:54
@ UI_SHORTCUT_ACTION_TRACK_SELECT
Definition ui_shortcuts.h:46
@ UI_SHORTCUT_ACTION_EXIT_TRACK_MODE
Definition ui_shortcuts.h:45
@ UI_SHORTCUT_ACTION_TRANSPORT_REC_TOGGLE
Definition ui_shortcuts.h:49
@ UI_SHORTCUT_ACTION_SEQ_PAGE_PREV
Definition ui_shortcuts.h:51
@ UI_SHORTCUT_ACTION_OPEN_SEQ_OVERLAY
Definition ui_shortcuts.h:40
@ UI_SHORTCUT_ACTION_NONE
Definition ui_shortcuts.h:33
@ UI_SHORTCUT_ACTION_ENTER_MUTE_QUICK
Definition ui_shortcuts.h:34
@ UI_SHORTCUT_ACTION_KEY_OCTAVE_DOWN
Definition ui_shortcuts.h:56
@ UI_SHORTCUT_ACTION_TOGGLE_MUTE_TRACK
Definition ui_shortcuts.h:37
@ UI_SHORTCUT_ACTION_COMMIT_PMUTE
Definition ui_shortcuts.h:39
@ UI_SHORTCUT_ACTION_TRANSPORT_STOP
Definition ui_shortcuts.h:48
@ UI_SHORTCUT_ACTION_OPEN_ARP_OVERLAY
Definition ui_shortcuts.h:41
@ UI_SHORTCUT_ACTION_KEY_OCTAVE_UP
Definition ui_shortcuts.h:55
@ UI_SHORTCUT_ACTION_TRANSPORT_PLAY
Definition ui_shortcuts.h:47
@ UI_SHORTCUT_ACTION_EXIT_MUTE
Definition ui_shortcuts.h:36
@ UI_SHORTCUT_ACTION_SEQ_STEP_HOLD
Definition ui_shortcuts.h:52
@ UI_SHORTCUT_ACTION_OPEN_KBD_OVERLAY
Definition ui_shortcuts.h:42
@ UI_SHORTCUT_ACTION_ENTER_TRACK_MODE
Definition ui_shortcuts.h:44
@ UI_SHORTCUT_ACTION_KEYBOARD_TOGGLE_SUBMENU
Definition ui_shortcuts.h:43
@ UI_SHORTCUT_ACTION_ENTER_MUTE_PMUTE
Definition ui_shortcuts.h:35
@ UI_SHORTCUT_ACTION_SEQ_PAGE_NEXT
Definition ui_shortcuts.h:50
@ UI_SHORTCUT_ACTION_SEQ_STEP_RELEASE
Definition ui_shortcuts.h:53
@ UI_SHORTCUT_ACTION_PREPARE_PMUTE_TRACK
Definition ui_shortcuts.h:38