MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / GetMouseSourceName

Function GetMouseSourceName

include/imgui/imgui.cpp:10471–10478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10469 return input_source_names[source];
10470}
10471static const char* GetMouseSourceName(ImGuiMouseSource source)
10472{
10473 const char* mouse_source_names[] = { "Mouse", "TouchScreen", "Pen" };
10474 IM_ASSERT(IM_COUNTOF(mouse_source_names) == ImGuiMouseSource_COUNT);
10475 if (source < 0 || source >= ImGuiMouseSource_COUNT)
10476 return "Unknown";
10477 return mouse_source_names[source];
10478}
10479static void DebugPrintInputEvent(const char* prefix, const ImGuiInputEvent* e)
10480{
10481 ImGuiContext& g = *GImGui;

Callers 2

DebugPrintInputEventFunction · 0.85
ShowMetricsWindowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected