Home
last modified time | relevance | path

Searched refs:repeat_rate (Results 1 - 4 of 4) sorted by relevance

/third_party/mesa3d/src/imgui/
H A Dimgui_internal.h1406 IMGUI_API int CalcTypematicPressedRepeatAmount(float t, float t_prev, float repeat_delay, float repeat_rate);
H A Dimgui.cpp4037 int ImGui::CalcTypematicPressedRepeatAmount(float t, float t_prev, float repeat_delay, float repeat_rate) in CalcTypematicPressedRepeatAmount() argument
4041 if (t <= repeat_delay || repeat_rate <= 0.0f) in CalcTypematicPressedRepeatAmount()
4043 const int count = (int)((t - repeat_delay) / repeat_rate) - (int)((t_prev - repeat_delay) / repeat_rate); in CalcTypematicPressedRepeatAmount()
4047 int ImGui::GetKeyPressedAmount(int key_index, float repeat_delay, float repeat_rate) in GetKeyPressedAmount() argument
4054 return CalcTypematicPressedRepeatAmount(t, t - g.IO.DeltaTime, repeat_delay, repeat_rate); in GetKeyPressedAmount()
/third_party/skia/third_party/externals/imgui/
H A Dimgui.cpp4685 // t = 0.0f t = repeat_delay, t = repeat_delay + repeat_rate*N
4686 int ImGui::CalcTypematicRepeatAmount(float t0, float t1, float repeat_delay, float repeat_rate) in CalcTypematicRepeatAmount() argument
4692 if (repeat_rate <= 0.0f) in CalcTypematicRepeatAmount()
4694 const int count_t0 = (t0 < repeat_delay) ? -1 : (int)((t0 - repeat_delay) / repeat_rate); in CalcTypematicRepeatAmount()
4695 const int count_t1 = (t1 < repeat_delay) ? -1 : (int)((t1 - repeat_delay) / repeat_rate); in CalcTypematicRepeatAmount()
4700 int ImGui::GetKeyPressedAmount(int key_index, float repeat_delay, float repeat_rate) in GetKeyPressedAmount() argument
4707 return CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, repeat_delay, repeat_rate); in GetKeyPressedAmount()
H A Dimgui_internal.h2532 IMGUI_API int CalcTypematicRepeatAmount(float t0, float t1, float repeat_delay, float repeat_rate);

Completed in 50 milliseconds