mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 18:32:44 +00:00
Add menu_mouse_enable to config file
This commit is contained in:
parent
4918381cfb
commit
921bcb6d2c
@ -533,6 +533,13 @@
|
||||
# Menu driver to use. "rgui", "lakka", etc.
|
||||
# menu_driver = "rgui"
|
||||
|
||||
# If enabled, the libretro core will keep running in the background when we
|
||||
# are in the menu.
|
||||
# menu_pause_libretro = false
|
||||
|
||||
# Enable mouse input inside the menu.
|
||||
# menu_mouse_enable = false
|
||||
|
||||
#### Camera
|
||||
|
||||
# Override the default camera device the camera driver uses. This is driver dependant.
|
||||
|
@ -427,6 +427,7 @@ static void config_set_defaults(void)
|
||||
#ifdef HAVE_MENU
|
||||
g_settings.menu_show_start_screen = menu_show_start_screen;
|
||||
g_settings.menu.pause_libretro = true;
|
||||
g_settings.menu.mouse_enable = false;
|
||||
#endif
|
||||
|
||||
g_settings.location.allow = false;
|
||||
@ -882,6 +883,7 @@ static bool config_load_file(const char *path, bool set_defaults)
|
||||
|
||||
#ifdef HAVE_MENU
|
||||
CONFIG_GET_BOOL(menu.pause_libretro, "menu_pause_libretro");
|
||||
CONFIG_GET_BOOL(menu.mouse_enable, "menu_mouse_enable");
|
||||
#endif
|
||||
|
||||
CONFIG_GET_INT(video.hard_sync_frames, "video_hard_sync_frames");
|
||||
@ -1570,6 +1572,7 @@ bool config_save_file(const char *path)
|
||||
#ifdef HAVE_MENU
|
||||
config_set_string(conf,"menu_driver", g_settings.menu.driver);
|
||||
config_set_bool(conf,"menu_pause_libretro", g_settings.menu.pause_libretro);
|
||||
config_set_bool(conf,"menu_mouse_enable", g_settings.menu.mouse_enable);
|
||||
#endif
|
||||
config_set_bool(conf, "video_vsync", g_settings.video.vsync);
|
||||
config_set_bool(conf, "video_hard_sync", g_settings.video.hard_sync);
|
||||
|
Loading…
x
Reference in New Issue
Block a user