Fix lefty inputs with vertical menu

This commit is contained in:
Willy-JL
2023-08-03 03:21:24 +02:00
parent d87a6cffd1
commit edd708ca67
+8
View File
@@ -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) {