Add trailing commas to enum (to simplify the diff/patch of further additions) (#4537)

Possible since we are now C++11 + fix warning in GetNavInputAmount().
This commit is contained in:
ocornut
2022-07-06 20:39:39 +02:00
parent 90ef327882
commit 4711b9b05a
3 changed files with 76 additions and 76 deletions

View File

@ -10148,8 +10148,10 @@ float ImGui::GetNavInputAmount(ImGuiNavInput n, ImGuiNavReadMode mode)
return (float)CalcTypematicRepeatAmount(t - io.DeltaTime, t, io.KeyRepeatDelay * 1.25f, io.KeyRepeatRate * 2.00f);
case ImGuiNavReadMode_RepeatFast:
return (float)CalcTypematicRepeatAmount(t - io.DeltaTime, t, io.KeyRepeatDelay * 0.72f, io.KeyRepeatRate * 0.30f);
default:
IM_ASSERT(0);
return 0.0f;
}
return 0.0f;
}
ImVec2 ImGui::GetNavInputAmount2d(ImGuiNavDirSourceFlags dir_sources, ImGuiNavReadMode mode, float slow_factor, float fast_factor)