Lines Matching refs:user_key_index
4030 bool ImGui::IsKeyDown(int user_key_index)
4032 if (user_key_index < 0) return false;
4033 IM_ASSERT(user_key_index >= 0 && user_key_index < IM_ARRAYSIZE(GImGui->IO.KeysDown));
4034 return GImGui->IO.KeysDown[user_key_index];
4057 bool ImGui::IsKeyPressed(int user_key_index, bool repeat)
4060 if (user_key_index < 0)
4062 IM_ASSERT(user_key_index >= 0 && user_key_index < IM_ARRAYSIZE(g.IO.KeysDown));
4063 const float t = g.IO.KeysDownDuration[user_key_index];
4067 return GetKeyPressedAmount(user_key_index, g.IO.KeyRepeatDelay, g.IO.KeyRepeatRate) > 0;
4071 bool ImGui::IsKeyReleased(int user_key_index)
4074 if (user_key_index < 0) return false;
4075 IM_ASSERT(user_key_index >= 0 && user_key_index < IM_ARRAYSIZE(g.IO.KeysDown));
4076 return g.IO.KeysDownDurationPrev[user_key_index] >= 0.0f && !g.IO.KeysDown[user_key_index];