And "immersive", "audio_resetDevice"

This commit is contained in:
Henrik Rydgård
2023-03-22 23:15:08 +01:00
parent ac47476253
commit 4c99712b60
7 changed files with 24 additions and 22 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ bool AndroidVulkanContext::InitAPI() {
INFO_LOG(G3D, "Creating Vulkan device");
if (g_Vulkan->CreateDevice() != VK_SUCCESS) {
INFO_LOG(G3D, "Failed to create vulkan device: %s", g_Vulkan->InitError().c_str());
System_SendMessage("toast", "No Vulkan driver found. Using OpenGL instead.");
System_Toast("No Vulkan driver found. Using OpenGL instead.");
g_Vulkan->DestroyInstance();
delete g_Vulkan;
g_Vulkan = nullptr;
+7 -4
View File
@@ -1033,6 +1033,9 @@ void System_Notify(SystemNotification notification) {
case SystemNotification::FORCE_RECREATE_ACTIVITY:
PushCommand("recreate", "");
break;
case SystemNotification::IMMERSIVE_MODE_CHANGE:
PushCommand("immersive", "");
break;
}
}
@@ -1062,16 +1065,16 @@ bool System_MakeRequest(SystemRequestType type, int requestId, const std::string
case SystemRequestType::CAMERA_COMMAND:
PushCommand("camera_command", param1);
break;
return true;
case SystemRequestType::GPS_COMMAND:
PushCommand("gps_command", param1);
break;
return true;
case SystemRequestType::MICROPHONE_COMMAND:
PushCommand("microphone_command", param1);
break;
return true;
case SystemRequestType::SHARE_TEXT:
PushCommand("share_text", param1);
break;
return true;
default:
return false;
}