From 10c6ef6f1aac13298c6769a80289ecae6a7266b3 Mon Sep 17 00:00:00 2001 From: Tatsuya79 Date: Mon, 1 Jan 2018 16:44:55 +0100 Subject: [PATCH] Hide mouse cursor after RETRO_ENVIRONMENT_SET_SYSTEM_AV_INFO in fullscreen --- driver.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/driver.c b/driver.c index 67b6dfbb2e..31cef63edc 100644 --- a/driver.c +++ b/driver.c @@ -304,6 +304,12 @@ static bool driver_update_system_av_info(const struct retro_system_av_info *info command_event(CMD_EVENT_RECORD_INIT, NULL); } + /* Hide mouse cursor in fullscreen after + * a RETRO_ENVIRONMENT_SET_SYSTEM_AV_INFO call. */ + settings_t *settings = config_get_ptr(); + if (settings->bools.video_fullscreen) + video_driver_hide_mouse(); + return true; }