platform, fix kbd config save/load
authorkub <derkub@gmail.com>
Fri, 24 Jan 2025 08:58:26 +0000 (09:58 +0100)
committerkub <derkub@gmail.com>
Fri, 24 Jan 2025 09:24:37 +0000 (10:24 +0100)
platform/common/config_file.c

index 8d1d893..8cb8b98 100644 (file)
@@ -366,8 +366,10 @@ static int custom_read(menu_entry *me, const char *var, const char *val)
 
                case MA_CTRL_KEYBOARD:
                        currentConfig.keyboard = 0;
-                       if (strcasecmp(val, "virtual") == 0)
+                       if (strcasecmp(val, "physical") == 0)
                                currentConfig.keyboard = 1;
+                       else if (strcasecmp(val, "virtual") == 0)
+                               currentConfig.keyboard = 2;
                        return 1;
 
                /* PSP */