mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-06-17 20:19:43 -07:00
Fix lefty inputs with vertical menu
This commit is contained in:
@@ -283,6 +283,14 @@ static void menu_draw_callback(Canvas* canvas, void* _model) {
|
||||
static bool menu_input_callback(InputEvent* event, void* context) {
|
||||
Menu* menu = context;
|
||||
bool consumed = true;
|
||||
if(XTREME_SETTINGS()->menu_style == MenuStyleVertical &&
|
||||
furi_hal_rtc_is_flag_set(FuriHalRtcFlagHandOrient)) {
|
||||
if(event->key == InputKeyLeft) {
|
||||
event->key = InputKeyRight;
|
||||
} else if(event->key == InputKeyRight) {
|
||||
event->key = InputKeyLeft;
|
||||
}
|
||||
}
|
||||
|
||||
if(event->type == InputTypeShort) {
|
||||
switch(event->key) {
|
||||
|
||||
Reference in New Issue
Block a user