-
Notifications
You must be signed in to change notification settings - Fork 578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Key repeat for nk_keys #639
base: master
Are you sure you want to change the base?
Conversation
Nice work! Looking good... Adding delta time to the renders will help too #628 |
I've reworked this patch to make the key repeat functionality more generic/reusable. After submitting this pull request I realized some backends have key repeat via their abstraction layer (SDL, X11, etc) so this functionality is also now opt-in and can be enabled by defining NK_KEY_REPEAT before including Nuklear ...
#define NK_KEY_REPEAT
#include "nuklear.h"
... |
Adds key repeat for nk_keys (Arrows, Home, End, Backspace, Delete, etc).
The default delay and interval can be changed, as well as updated at runtime.
Tested and working with the following render backends.
glfw_opengl2
glfw_opengl3
glfw_vulkan