mirror of
https://github.com/glfw/glfw.git
synced 2025-04-11 07:47:04 +00:00
Merge e54c704628
into e7ea71be03
This commit is contained in:
commit
aa19d92cea
1 changed files with 3 additions and 2 deletions
|
@ -1796,11 +1796,12 @@ static void keyboardHandleKey(void* userData,
|
|||
|
||||
timer.it_value.tv_sec = _glfw.wl.keyRepeatDelay / 1000;
|
||||
timer.it_value.tv_nsec = (_glfw.wl.keyRepeatDelay % 1000) * 1000000;
|
||||
timerfd_settime(_glfw.wl.keyRepeatTimerfd, 0, &timer, NULL);
|
||||
}
|
||||
} else if (scancode == _glfw.wl.keyRepeatScancode) {
|
||||
timerfd_settime(_glfw.wl.keyRepeatTimerfd, 0, &timer, NULL);
|
||||
}
|
||||
|
||||
timerfd_settime(_glfw.wl.keyRepeatTimerfd, 0, &timer, NULL);
|
||||
|
||||
_glfwInputKey(window, key, scancode, action, _glfw.wl.xkb.modifiers);
|
||||
|
||||
if (action == GLFW_PRESS)
|
||||
|
|
Loading…
Add table
Reference in a new issue