MCPcopy Create free account
hub / github.com/crosire/reshade / convert_key

Function convert_key

source/imgui_function_table_18971.cpp:14–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12namespace
13{
14 auto convert_key(ImGuiKey old_value) -> ImGuiKey
15 {
16 if (old_value <= ImGuiKey_F12)
17 return old_value;
18 if (old_value <= (ImGuiKey_KeypadEqual - (ImGuiKey_F24 - ImGuiKey_F12)))
19 return static_cast<ImGuiKey>(old_value - (ImGuiKey_F24 - ImGuiKey_F12));
20 else
21 return static_cast<ImGuiKey>(old_value - (ImGuiKey_F24 - ImGuiKey_F12) - (ImGuiKey_AppForward - ImGuiKey_KeypadEqual));
22 }
23 auto convert_style_var(ImGuiStyleVar old_value) -> ImGuiStyleVar
24 {
25 if (old_value <= 22) // ImGuiStyleVar_TabRounding

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected