Add utility names to gamepad buttons doc and add usefull profiler event for mono
This commit is contained in:
@@ -150,32 +150,32 @@ API_ENUM() enum class GamepadButton
|
|||||||
Back = 6,
|
Back = 6,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Left thumbstick button.
|
/// Left thumbstick button (L).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
LeftThumb = 7,
|
LeftThumb = 7,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Right thumbstick button.
|
/// Right thumbstick button (R).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
RightThumb = 8,
|
RightThumb = 8,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Left shoulder button.
|
/// Left shoulder button (LB).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
LeftShoulder = 9,
|
LeftShoulder = 9,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Right shoulder button.
|
/// Right shoulder button (RB).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
RightShoulder = 10,
|
RightShoulder = 10,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Left trigger button.
|
/// Left trigger button (LT).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
LeftTrigger = 11,
|
LeftTrigger = 11,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Right trigger button.
|
/// Right trigger button (RT).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
RightTrigger = 12,
|
RightTrigger = 12,
|
||||||
|
|
||||||
|
|||||||
@@ -2009,6 +2009,9 @@ void OnPrintErrorCallback(const char* string, mono_bool isStdout)
|
|||||||
|
|
||||||
static MonoAssembly* OnMonoAssemblyLoad(const char* aname)
|
static MonoAssembly* OnMonoAssemblyLoad(const char* aname)
|
||||||
{
|
{
|
||||||
|
PROFILE_CPU();
|
||||||
|
ZoneText(aname, StringUtils::Length(aname));
|
||||||
|
|
||||||
// Find assembly file
|
// Find assembly file
|
||||||
const String name(aname);
|
const String name(aname);
|
||||||
#if DOTNET_HOST_MONO_DEBUG
|
#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)
|
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));
|
const String fileName = StringUtils::GetFileName(String(name));
|
||||||
#if DOTNET_HOST_MONO_DEBUG
|
#if DOTNET_HOST_MONO_DEBUG
|
||||||
LOG(Info, "Loading dynamic library {0}", fileName);
|
LOG(Info, "Loading dynamic library {0}", fileName);
|
||||||
|
|||||||
Reference in New Issue
Block a user