Add utility names to gamepad buttons doc and add usefull profiler event for mono

This commit is contained in:
Wojtek Figat
2025-07-26 00:12:10 +02:00
parent acc1777638
commit 2af266727f
2 changed files with 11 additions and 6 deletions

View File

@@ -150,32 +150,32 @@ API_ENUM() enum class GamepadButton
Back = 6,
/// <summary>
/// Left thumbstick button.
/// Left thumbstick button (L).
/// </summary>
LeftThumb = 7,
/// <summary>
/// Right thumbstick button.
/// Right thumbstick button (R).
/// </summary>
RightThumb = 8,
/// <summary>
/// Left shoulder button.
/// Left shoulder button (LB).
/// </summary>
LeftShoulder = 9,
/// <summary>
/// Right shoulder button.
/// Right shoulder button (RB).
/// </summary>
RightShoulder = 10,
/// <summary>
/// Left trigger button.
/// Left trigger button (LT).
/// </summary>
LeftTrigger = 11,
/// <summary>
/// Right trigger button.
/// Right trigger button (RT).
/// </summary>
RightTrigger = 12,

View File

@@ -2009,6 +2009,9 @@ void OnPrintErrorCallback(const char* string, mono_bool isStdout)
static MonoAssembly* OnMonoAssemblyLoad(const char* aname)
{
PROFILE_CPU();
ZoneText(aname, StringUtils::Length(aname));
// Find assembly file
const String name(aname);
#if DOTNET_HOST_MONO_DEBUG
@@ -2080,6 +2083,8 @@ static void OnMonoFreeAOT(MonoAssembly* assembly, int size, void* user_data, voi
static void* OnMonoDlFallbackLoad(const char* name, int flags, char** err, void* user_data)
{
PROFILE_CPU();
ZoneText(name, StringUtils::Length(name));
const String fileName = StringUtils::GetFileName(String(name));
#if DOTNET_HOST_MONO_DEBUG
LOG(Info, "Loading dynamic library {0}", fileName);