Extend glfwGetKeyboardRepeatDelay() to return both initial delay and repeat interval

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/bde9bf2e-a0dd-4ccd-8385-6a37be1e025f
This commit is contained in:
copilot-swe-agent[bot]
2026-03-23 11:58:48 +00:00
parent 998ee22ecb
commit 6b86e7db5d
9 changed files with 24 additions and 18 deletions

5
glfw/null_window.c vendored
View File

@@ -311,9 +311,10 @@ monotonic_t _glfwPlatformGetDoubleClickInterval(_GLFWwindow* window UNUSED)
return ms_to_monotonic_t(500ll);
}
monotonic_t _glfwPlatformGetKeyboardRepeatDelay(void)
void _glfwPlatformGetKeyboardRepeatDelay(monotonic_t *delay, monotonic_t *interval)
{
return ms_to_monotonic_t(500ll);
if (delay) *delay = ms_to_monotonic_t(500ll);
if (interval) *interval = ms_to_monotonic_t(30ll);
}
void _glfwPlatformIconifyWindow(_GLFWwindow* window)