diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-11-17 09:42:11 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-11-17 09:42:11 +0100 |
commit | a14eb65e82d226fe8b33ca23d29eeba02066357d (patch) | |
tree | bbdb92dd8105e81a34fea601df851a3c25b03b76 /include | |
parent | ff24e4c604479fdcedfacca35af3bb4810683c68 (diff) |
Window: implement function to disable key repeat
Diffstat (limited to 'include')
-rw-r--r-- | include/mgl/window/window.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mgl/window/window.h b/include/mgl/window/window.h index 95e3273..2ce9a4b 100644 --- a/include/mgl/window/window.h +++ b/include/mgl/window/window.h @@ -31,6 +31,7 @@ struct mgl_window { mgl_view view; bool open; bool focused; + bool key_repeat_enabled; double frame_time_limit; mgl_clock frame_timer; char *clipboard_string; @@ -81,5 +82,6 @@ void mgl_window_set_size_limits(mgl_window *self, mgl_vec2i minimum, mgl_vec2i m void mgl_window_set_clipboard(mgl_window *self, const char *str, size_t size); /* A malloc'ed and null terminated string is returned in |str|, it should be deallocated with free */ bool mgl_window_get_clipboard(mgl_window *self, char **str, size_t *size); +void mgl_window_set_key_repeat_enabled(mgl_window *self, bool enabled); #endif /* MGL_WINDOW_H */ |