MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / GetInputSourceName

Function GetInputSourceName

imgui_tiny_app/imgui/imgui.cpp:11039–11046  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11037
11038#ifndef IMGUI_DISABLE_DEBUG_TOOLS
11039static const char* GetInputSourceName(ImGuiInputSource source)
11040{
11041 const char* input_source_names[] = { "None", "Mouse", "Keyboard", "Gamepad" };
11042 IM_ASSERT(IM_COUNTOF(input_source_names) == ImGuiInputSource_COUNT);
11043 if (source < 0 || source >= ImGuiInputSource_COUNT)
11044 return "Unknown";
11045 return input_source_names[source];
11046}
11047static const char* GetMouseSourceName(ImGuiMouseSource source)
11048{
11049 const char* mouse_source_names[] = { "Mouse", "TouchScreen", "Pen" };

Callers 1

ShowMetricsWindowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected