MCPcopy Create free account
hub / github.com/cinder/Cinder / GetMouseSourceName

Function GetMouseSourceName

src/imgui/imgui.cpp:10226–10233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10224 return input_source_names[source];
10225}
10226static const char* GetMouseSourceName(ImGuiMouseSource source)
10227{
10228 const char* mouse_source_names[] = { "Mouse", "TouchScreen", "Pen" };
10229 IM_ASSERT(IM_ARRAYSIZE(mouse_source_names) == ImGuiMouseSource_COUNT);
10230 if (source < 0 || source >= ImGuiMouseSource_COUNT)
10231 return "Unknown";
10232 return mouse_source_names[source];
10233}
10234static void DebugPrintInputEvent(const char* prefix, const ImGuiInputEvent* e)
10235{
10236 ImGuiContext& g = *GImGui;

Callers 2

DebugPrintInputEventFunction · 0.85
ShowMetricsWindowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected