MCPcopy Create free account
hub / github.com/RenderKit/embree / GetInputSourceName

Function GetInputSourceName

tutorials/common/imgui/imgui.cpp:8399–8404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8397
8398#ifndef IMGUI_DISABLE_DEBUG_TOOLS
8399static const char* GetInputSourceName(ImGuiInputSource source)
8400{
8401 const char* input_source_names[] = { "None", "Mouse", "Keyboard", "Gamepad", "Nav", "Clipboard" };
8402 IM_ASSERT(IM_ARRAYSIZE(input_source_names) == ImGuiInputSource_COUNT && source >= 0 && source < ImGuiInputSource_COUNT);
8403 return input_source_names[source];
8404}
8405static void DebugPrintInputEvent(const char* prefix, const ImGuiInputEvent* e)
8406{
8407 ImGuiContext& g = *GImGui;

Callers 1

ShowMetricsWindowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected